VLIB是TI提供的针对C6x优化过的视觉库,下载地址:
http://software-dl.ti.com/libs/vlib/latest/index_FDS.html
提供40多个核心函数,主要实现以下功能:
- Background Modeling & Subtraction
- Object Feature Extraction
- Tracking & Recognition
- Low-level Pixel Processing
下载后,导入C: ivlib_c66x_3_2_1_0examples目录下的demo
- HoughLinesDemo
- Regression
以下是(1)HoughLinesDemo的测试数据(暂时Load Program失败)
以下是(2)Regression的测试数据(测试平台6657evm)
[C66xx_0]
+---------------------------------------+
| TESTING: VLIB_afast12_detectCorners |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_afast12_detectCorners testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 76800 | 29.49 | 29.52 | 0.00 | 29.49 | Statically generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 2876,
| | | | | | | | realistic data, sort
| 1 | PASS | 19200 | 43.85 | 43.83 | 0.00 | 43.85 | Statically generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 891,
| | | | | | | | realistic data, sort
| 2 | PASS | 76800 | 3.70 | 3.69 | 0.00 | 3.70 | Constant generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 0, flat
| | | | | | | | image, sort
| 3 | PASS | 19200 | 3.72 | 3.68 | 0.00 | 3.72 | Constant generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 0, flat
| | | | | | | | image, sort
| 4 | PASS | 76800 | 198.54 | 198.54 | 0.00 | 198.54 | Custom generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 9996,
| | | | | | | | checkerboard image, sort
| 5 | PASS | 19200 | 146.10 | 146.10 | 0.00 | 146.10 | Custom generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 3350,
| | | | | | | | checkerboard image, sort
| 6 | PASS | 76800 | 21.04 | 21.07 | 0.00 | 21.04 | Statically generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 2876,
| | | | | | | | realistic data, no sort
| 7 | PASS | 19200 | 35.91 | 36.00 | 0.00 | 35.91 | Statically generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 891,
| | | | | | | | realistic data, no sort
| 8 | PASS | 76800 | 3.64 | 3.63 | 0.00 | 3.64 | Constant generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 0, flat
| | | | | | | | image, no sort
| 9 | PASS | 19200 | 3.63 | 3.56 | 0.00 | 3.63 | Constant generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 0, flat
| | | | | | | | image, no sort
| 10 | PASS | 76800 | 28.98 | 28.98 | 0.00 | 28.98 | Custom generated input | Opt and NatC results compared |
| | | | | | | | img_width= 320, img_height= 240, n_features found= 9996,
| | | | | | | | checkerboard image, no sort
| 11 | PASS | 19200 | 39.36 | 39.28 | 0.00 | 39.36 | Custom generated input | Opt and NatC results compared |
| | | | | | | | img_width= 160, img_height= 120, n_features found= 3350,
| | | | | | | | checkerboard image, no sort
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 12
Range:
Min: 3.63 cycles/pt Avg: 46.50 cycles/pt
Max: 198.54 cycles/pt Med: 28.98 cycles/pt
Num pt = number of input pixels (img_width*img_height); Performance is data dependent.
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 376 bytes
+---------------------------------------+
| TESTING: VLIB_afast9_detectCorners |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_afast9_detectCorners testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 16384 | 10.23 | 111.31 | 0.00 | 10.23 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width= 134, height= 134, n_features found= 1060, constant
| | | | | | | | data
| 1 | PASS | 71136 | 10.03 | 86.02 | 0.00 | 10.03 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 6337, realistic
| | | | | | | | data
| 2 | PASS | 16416 | 10.28 | 123.32 | 0.00 | 10.28 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 4215, realistic
| | | | | | | | data
| 3 | PASS | 71136 | 10.03 | 56.52 | 0.00 | 10.03 | Constant generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 0, flat image
| 4 | PASS | 16416 | 10.31 | 56.68 | 0.00 | 10.31 | Constant generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 0, flat image
| 5 | PASS | 71136 | 10.05 | 97.88 | 0.00 | 10.05 | Custom generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 17901,
| | | | | | | | checkerboard image
| 6 | PASS | 16416 | 10.55 | 98.43 | 0.00 | 10.55 | Custom generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 4104,
| | | | | | | | checkerboard image
| 7 | PASS | 71136 | 10.51 | 86.53 | 0.00 | 10.51 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 6337, realistic
| | | | | | | | data
| 8 | PASS | 16416 | 10.26 | 71.78 | 0.00 | 10.26 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 41, realistic
| | | | | | | | data
| 9 | PASS | 71136 | 10.06 | 56.51 | 0.00 | 10.06 | Constant generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 0, flat image
| 10 | PASS | 16416 | 10.32 | 56.68 | 0.00 | 10.32 | Constant generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 0, flat image
| 11 | PASS | 71136 | 10.04 | 56.51 | 0.00 | 10.04 | Custom generated input | Opt and NatC results compared |
| | | | | | | | width= 320, height= 240, n_features found= 0, checkerboard
| | | | | | | | image
| 12 | PASS | 16416 | 10.31 | 98.04 | 0.00 | 10.31 | Custom generated input | Opt and NatC results compared |
| | | | | | | | width= 160, height= 120, n_features found= 4104,
| | | | | | | | checkerboard image
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 13
Formula:
Cycles: 10.34385*N - 131.53547*M + 14898
Where: N = ((width-6)&0xFFF0) * (height-6), M=height-6
Range:
Min: 10.03 cycles/pt Avg: 10.23 cycles/pt
Max: 10.55 cycles/pt Med: 10.23 cycles/pt
Num pt = ((width-6)&0xFFF0) * (height-6)
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 124 bytes
+---------------------------------------+
| TESTING: VLIB_aFast_nonmaxSuppression |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_aFast_nonmaxSuppression testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 2872 | 29.68 | 120.67 | 0.00 | 29.68 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 2876, output features= 1290, realistic data
| 1 | PASS | 888 | 35.13 | 127.32 | 0.00 | 35.13 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 891, output features= 609, realistic data
| 2 | PASS | 208 | 55.61 | 144.00 | 0.00 | 55.61 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 210, output features= 157, fits in 32k
| 3 | PASS | 176 | 61.61 | 146.03 | 0.00 | 61.61 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 180, output features= 132, fits in 32k
| 4 | PASS | 120 | 74.56 | 150.83 | 0.00 | 74.56 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 120, output features= 90, fits in 32k
| 5 | PASS | 1288 | 37.41 | 132.10 | 0.00 | 37.41 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 1292, output features= 1288, realistic data,
| | | | | | | | already suppressed
| 6 | PASS | 608 | 40.26 | 134.01 | 0.00 | 40.26 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 612, output features= 608, realistic data,
| | | | | | | | already suppressed
| 7 | PASS | 208 | 57.68 | 145.82 | 0.00 | 57.68 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 210, output features= 208, fits in 32k,
| | | | | | | | already suppressed
| 8 | PASS | 176 | 62.86 | 148.91 | 0.00 | 62.86 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 180, output features= 176, fits in 32k,
| | | | | | | | already suppressed
| 9 | PASS | 120 | 75.49 | 153.42 | 0.00 | 75.49 | Statically generated input | Opt and NatC results compared |
| | | | | | | | inNumScores = 120, output features= 120, fits in 32k,
| | | | | | | | already suppressed
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 10
Formula:
Cycles: 28.23980*N + 6439
Where: N = inNumScores
Range:
Min: 29.68 cycles/pt Avg: 53.03 cycles/pt
Max: 75.49 cycles/pt Med: 55.61 cycles/pt
Num pt = inNumScores
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 16 bytes
+---------------------------------------+
| TESTING: VLIB_bhattacharyaDistance_F32 |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_bhattacharyaDistance_F32 testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 512 | 20.95 | 65.80 | 0.00 | 20.95 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | N=512
| 1 | PASS | 32 | 84.66 | 192.50 | 0.00 | 84.66 | Constant generated input | Opt results compared to NatC
| | | | | | | | results | N=32
| 2 | PASS | 64 | 50.20 | 154.11 | 0.00 | 50.20 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=64
| 3 | PASS | 128 | 32.98 | 142.40 | 0.00 | 32.98 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=128
| 4 | PASS | 256 | 26.52 | 136.54 | 0.00 | 26.52 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=256
| 5 | PASS | 1024 | 18.02 | 132.78 | 0.00 | 18.02 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=1024
| 6 | PASS | 4096 | 16.75 | 131.94 | 0.00 | 16.75 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=4096
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 7
Formula:
Cycles: 16.18650*N + 2255
Where: N = N
Range:
Min: 16.75 cycles/pt Avg: 35.72 cycles/pt
Max: 84.66 cycles/pt Med: 20.95 cycles/pt
Num pt = N
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 16 bytes
+---------------------------------------+
| TESTING: VLIB_bhattacharyaDistance_U32 |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_bhattacharyaDistance_U32 testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 512 | 144.55 | 143.74 | 0.00 | 144.55 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | N=512
| 1 | PASS | 32 | 171.00 | 175.06 | 0.00 | 171.00 | Constant generated input | Opt results compared to NatC
| | | | | | | | results | N=32
| 2 | PASS | 64 | 154.50 | 156.53 | 0.00 | 154.50 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=64
| 3 | PASS | 128 | 148.17 | 149.19 | 0.00 | 148.17 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=128
| 4 | PASS | 256 | 145.05 | 145.63 | 0.00 | 145.05 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=256
| 5 | PASS | 1024 | 143.30 | 142.93 | 0.00 | 143.30 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=1024
| 6 | PASS | 4096 | 142.57 | 142.67 | 0.00 | 142.57 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | N=4096
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 7
Formula:
Cycles: 142.37362*N + 857
Where: N = N
Range:
Min: 142.57 cycles/pt Avg: 149.88 cycles/pt
Max: 171.00 cycles/pt Med: 144.55 cycles/pt
Num pt = N
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 16 bytes
+---------------------------------------+
| TESTING: VLIB_binarySkeleton |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_binarySkeleton testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 4032 | 3.17 | 3.43 | 0.00 | 3.17 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width=32, height=16, num_st=3, iters=3
| 1 | PASS | 8640 | 2.30 | 2.42 | 0.00 | 2.30 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width=32, height=32, num_st=3, iters=3
| 2 | PASS | 28800 | 1.80 | 1.90 | 0.00 | 1.80 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width=64, height=32, num_st=3, iters=5
| 3 | PASS | 2688 | 3.71 | 3.92 | 0.00 | 3.71 | Statically generated input | Opt and NatC results compared |
| | | | | | | | width=32, height=16, num_st=2, iters=3
| 4 | PASS | 304640 | 1.64 | 1.64 | 0.00 | 1.64 | Constant generated input | Opt and NatC results compared |
| | | | | | | | width=320, height=240, num_st=2, iters=2
| 5 | PASS | 380800 | 1.61 | 1.61 | 0.00 | 1.61 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | width=320, height=240, num_st=1, iters=5
| 6 | PASS | 4894720 | 1.75 | 1.76 | 0.00 | 1.75 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | width=640, height=480, num_st=2, iters=8
| 7 | PASS | 5506560 | 1.75 | 1.75 | 0.00 | 1.75 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | width=640, height=480, num_st=3, iters=6
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 8
Formula:
Cycles: 1.75362*N - 10912
Where: N = width * (height - 2) * num_st * iters
Range:
Min: 1.61 cycles/pt Avg: 2.22 cycles/pt
Max: 3.71 cycles/pt Med: 1.75 cycles/pt
Num pt = width * (height - 2) * num_st * iters
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 80 bytes
+---------------------------------------+
| TESTING: VLIB_blobAnalysis |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_blobAnalysis testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
num of blobs, scratch buffer size (in bytes) for
CCL, Create Blob list, Blob analysis
| 0 | PASS | 640 | 117.26 | 308.77 | 0.00 | 117.26 | 7 blobs, 26776 bytes, 224 bytes, 1464 bytes
| 1 | PASS | 64000 | 22.83 | 126.55 | 0.00 | 22.83 | 80 blobs, 2021688 bytes, 2560 bytes, 8012 bytes
| 2 | PASS | 8192 | 27.95 | 30.57 | 0.00 | 27.95 | 13 blobs, 255528 bytes, 416 bytes, 23312 bytes
| 3 | PASS | 8192 | 27.98 | 30.70 | 0.00 | 27.98 | 13 blobs, 255528 bytes, 416 bytes, 23312 bytes
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 4
Range:
Min: 22.83 cycles/pt Avg: 49.01 cycles/pt
Max: 117.26 cycles/pt Med: 27.95 cycles/pt
Num pt = imageWidth * imageHeight
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 108 bytes
+---------------------------------------+
| TESTING: VLIB_blockMedian |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_blockMedian testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 128 | 96.03 | 53.04 | 0.00 | 96.03 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=11, imageHeight=6, blockWidth=4,
| | | | | | | | blockHeight=4, stepSizeHorz=2, stepSizeVert=2, out size=8
| 1 | PASS | 3849120 | 2.85 | 7.81 | 0.00 | 2.85 | Constant generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=640, imageHeight=480, blockWidth=66,
| | | | | | | | blockHeight=60, stepSizeHorz=16, stepSizeVert=16, out size=972
| 2 | PASS | 1546380 | 2.25 | 7.50 | 0.00 | 2.25 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=640, imageHeight=480, blockWidth=121,
| | | | | | | | blockHeight=71, stepSizeHorz=35, stepSizeVert=35, out size=180
| 3 | PASS | 307200 | 2.78 | 8.40 | 0.00 | 2.78 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=640, imageHeight=480, blockWidth=640,
| | | | | | | | blockHeight=480, stepSizeHorz=100, stepSizeVert=100, out size=1
| 4 | PASS | 204800 | 2.86 | 8.40 | 0.00 | 2.86 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=640, imageHeight=480, blockWidth=320,
| | | | | | | | blockHeight=320, stepSizeHorz=320, stepSizeVert=320, out size=2
| 5 | PASS | 19076 | 3.84 | 9.04 | 0.00 | 3.84 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=633, imageHeight=477, blockWidth=251,
| | | | | | | | blockHeight=19, stepSizeHorz=311, stepSizeVert=311, out size=4
| 6 | PASS | 387904 | 5.53 | 10.00 | 0.00 | 5.53 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=633, imageHeight=477, blockWidth=32,
| | | | | | | | blockHeight=19, stepSizeHorz=21, stepSizeVert=21, out size=638
| 7 | PASS | 9216 | 7.17 | 11.42 | 0.00 | 7.17 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=203, imageHeight=101, blockWidth=32,
| | | | | | | | blockHeight=32, stepSizeHorz=64, stepSizeVert=32, out size=9
| 8 | PASS | 9744 | 3.99 | 9.02 | 0.00 | 3.99 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=203, imageHeight=101, blockWidth=203,
| | | | | | | | blockHeight=16, stepSizeHorz=64, stepSizeVert=32, out size=3
| 9 | PASS | 16000 | 3.11 | 8.57 | 0.00 | 3.11 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | imageWidth=2000, imageHeight=10, blockWidth=2000,
| | | | | | | | blockHeight=8, stepSizeHorz=200, stepSizeVert=32, out size=1
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 10
Formula:
Cycles: 2.76691*N + 71705
Where: N = ((imageHeight - blockHeight)/stepSizeVert + 1) * ((imageWidth - blockWidth)/stepSizeHorz + 1) * blockHeight*blockWidth
Range:
Min: 2.25 cycles/pt Avg: 13.04 cycles/pt
Max: 96.03 cycles/pt Med: 3.11 cycles/pt
Num pt = ((imageHeight - blockHeight)/stepSizeVert + 1) * ((imageWidth - blockWidth)/stepSizeHorz + 1) * blockHeight*blockWidth; Cycles/pt get smaller as the blockWidth gets larger.
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 88 bytes
+---------------------------------------+
| TESTING: VLIB_blockStatistics |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_blockStatistics testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 4096 | 23.42 | 56.89 | 0.00 | 23.42 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 1, mode = 0
| 1 | PASS | 4096 | 51.76 | 56.76 | 0.00 | 51.76 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 1, mode = 1
| 2 | PASS | 4096 | 4.25 | 11.91 | 0.00 | 4.25 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 5,
| | | | | | | | statBlockHeight= 5, mode = 0
| 3 | PASS | 4096 | 7.93 | 12.18 | 0.00 | 7.93 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 5,
| | | | | | | | statBlockHeight= 5, mode = 1
| 4 | PASS | 4096 | 4.43 | 12.84 | 0.00 | 4.43 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 5, mode = 0
| 5 | PASS | 4096 | 3.05 | 8.37 | 0.00 | 3.05 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 64, imageHeight= 64, statBlockWidth= 5,
| | | | | | | | statBlockHeight= 11, mode = 0
| 6 | PASS | 16384 | 8.47 | 21.51 | 0.00 | 8.47 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 128, imageHeight= 128, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 3, mode = 0
| 7 | PASS | 32768 | 14.61 | 44.38 | 0.00 | 14.61 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 128, imageHeight= 256, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 1, mode = 0
| 8 | PASS | 32768 | 2.29 | 8.60 | 0.00 | 2.29 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 128, imageHeight= 256, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 32, mode = 0
| 9 | PASS | 16384 | 27.45 | 8.59 | 0.00 | 27.45 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 128, imageHeight= 128, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 32, mode = 1
| 10 | PASS | 32768 | 13.04 | 40.52 | 0.00 | 13.04 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 128, imageHeight= 256, statBlockWidth= 32,
| | | | | | | | statBlockHeight= 1, mode = 0
| 11 | PASS | 16384 | 4.86 | 40.44 | 0.00 | 4.86 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 128, imageHeight= 128, statBlockWidth= 32,
| | | | | | | | statBlockHeight= 1, mode = 1
| 12 | PASS | 76800 | 2.47 | 9.21 | 0.00 | 2.47 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 21,
| | | | | | | | statBlockHeight= 11, mode = 0
| 13 | PASS | 76800 | 3.70 | 9.20 | 0.00 | 3.70 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 21,
| | | | | | | | statBlockHeight= 11, mode = 1
| 14 | PASS | 77361 | 6.21 | 18.09 | 0.00 | 6.21 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 321, imageHeight= 241, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 0
| 15 | PASS | 77924 | 5.79 | 17.62 | 0.00 | 5.79 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 322, imageHeight= 242, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 0
| 16 | PASS | 78489 | 5.82 | 17.78 | 0.00 | 5.82 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 323, imageHeight= 243, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 0
| 17 | PASS | 79056 | 5.85 | 17.76 | 0.00 | 5.85 | Randomly generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 324, imageHeight= 244, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 0
| 18 | PASS | 76800 | 5.75 | 17.70 | 0.00 | 5.75 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 0
| 19 | PASS | 76800 | 12.43 | 17.74 | 0.00 | 12.43 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 3,
| | | | | | | | statBlockHeight= 3, mode = 1
| 20 | PASS | 76800 | 2.63 | 9.39 | 0.00 | 2.63 | Sequentially generated input | Opt and NatC results compared
| | | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 1,
| | | | | | | | statBlockHeight= 18, mode = 0
| 21 | PASS | 76800 | 12.96 | 38.58 | 0.00 | 12.96 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 18,
| | | | | | | | statBlockHeight= 1, mode = 0
| 22 | PASS | 76800 | 2.29 | 8.95 | 0.00 | 2.29 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 16,
| | | | | | | | statBlockHeight= 16, mode = 0
| 23 | PASS | 76800 | 4.27 | 8.97 | 0.00 | 4.27 | Constant generated input | Opt and NatC results compared |
| | | | | | | | imageWidth= 320, imageHeight= 240, statBlockWidth= 16,
| | | | | | | | statBlockHeight= 16, mode = 1
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 24
Range:
Min: 2.29 cycles/pt Avg: 9.82 cycles/pt
Max: 51.76 cycles/pt Med: 5.79 cycles/pt
Num pt = imageWidth*imageHeight
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 56 bytes
+---------------------------------------+
| TESTING: VLIB_Canny_Edge_Detection |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_Canny_Edge_Detection testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 4096 | 30.14 | 102.04 | 0.00 | 30.14 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | width=64, height=64
| 1 | PASS | 480 | 33.85 | 71.30 | 0.00 | 33.85 | Constant generated input | Opt results compared to NatC
| | | | | | | | results | width=32, height=15
| 2 | PASS | 216 | 53.51 | 75.99 | 0.00 | 53.51 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=18, height=12
| 3 | PASS | 360 | 36.17 | 65.60 | 0.00 | 36.17 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=30, height=12
| 4 | PASS | 3600 | 35.94 | 106.06 | 0.00 | 35.94 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=36, height=100
| 5 | PASS | 4180 | 36.04 | 107.29 | 0.00 | 36.04 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=38, height=110
| 6 | PASS | 19200 | 38.63 | 114.90 | 0.00 | 38.63 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=160, height=120
| 7 | PASS | 39042 | 41.81 | 120.27 | 0.00 | 41.81 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=162, height=241
| 8 | PASS | 76800 | 58.30 | 137.49 | 0.00 | 58.30 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, height=240
| 9 | PASS | 307200 | 65.16 | 143.96 | 0.00 | 65.16 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=640, height=480
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 10
Range:
Min: 30.14 cycles/pt Avg: 42.95 cycles/pt
Max: 65.16 cycles/pt Med: 36.17 cycles/pt
Num pt = width * height
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 140 bytes
+---------------------------------------+
| TESTING: VLIB_Connected_Components_Labeling |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_Connected_Components_Labeling testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 256 | 93.37 | 0.00 | 0.00 | 93.37 | Statically generated input | Opt results compared to static
| | | | | | | | results | width=32, height=8, minBlobArea=7,
| | | | | | | | connected8Flag=1, numCCs=2
| 1 | PASS | 512 | 85.71 | 0.00 | 0.00 | 85.71 | Statically generated input | Opt results compared to static
| | | | | | | | results | width=64, height=8, minBlobArea=7,
| | | | | | | | connected8Flag=0, numCCs=8
| 2 | PASS | 512 | 75.88 | 0.00 | 0.00 | 75.88 | Statically generated input | Opt results compared to static
| | | | | | | | results | width=64, height=8, minBlobArea=7,
| | | | | | | | connected8Flag=1, numCCs=7
| 3 | PASS | 64000 | 13.15 | 0.00 | 0.00 | 13.15 | Statically generated input | Opt results compared to static
| | | | | | | | results | width=256, height=250, minBlobArea=7,
| | | | | | | | connected8Flag=1, numCCs=78
| 4 | PASS | 8192 | 104.93 | 0.00 | 0.00 | 104.93 | Statically generated input | Opt results compared to static
| | | | | | | | results | width=128, height=64, minBlobArea=7,
| | | | | | | | connected8Flag=1, numCCs=1
| 5 | PASS | 76800 | 235.96 | 0.00 | 0.00 | 235.96 | Randomly generated input | Opt results compared to static
| | | | | | | | results | width=320, height=240, minBlobArea=7,
| | | | | | | | connected8Flag=1, numCCs=18
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 6
Range:
Min: 13.15 cycles/pt Avg: 101.50 cycles/pt
Max: 235.96 cycles/pt Med: 85.71 cycles/pt
Num pt = CELING(width,32) * height
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 300 bytes
+---------------------------------------+
| TESTING: VLIB_convertUYVYint_to_HSLpl |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_convertUYVYint_to_HSLpl testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 32 | 391.91 | 241.66 | 0.00 | 391.91 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | width=16, pitch=16, height=2, num_pts=32
| 1 | PASS | 512 | 115.25 | 113.97 | 0.00 | 115.25 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=32, pitch=32, height=16, num_pts=512
| 2 | PASS | 2688 | 101.27 | 105.90 | 0.00 | 101.27 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=64, pitch=64, height=42, num_pts=2688
| 3 | PASS | 7040 | 98.70 | 104.53 | 0.00 | 98.70 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=128, pitch=128, height=55, num_pts=7040
| 4 | PASS | 76800 | 98.69 | 104.67 | 0.00 | 98.69 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, pitch=320, height=240, num_pts=76800
| 5 | PASS | 307200 | 99.42 | 104.68 | 0.00 | 99.42 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=640, pitch=640, height=480, num_pts=307200
| 6 | PASS | 32 | 377.16 | 235.38 | 0.00 | 377.16 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=16, pitch=20, height=2, num_pts=32
| 7 | PASS | 2688 | 100.68 | 106.86 | 0.00 | 100.68 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=64, pitch=84, height=42, num_pts=2688
| 8 | PASS | 7040 | 98.67 | 105.29 | 0.00 | 98.67 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=128, pitch=136, height=55, num_pts=7040
| 9 | PASS | 76800 | 97.61 | 104.62 | 0.00 | 97.61 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, pitch=324, height=240, num_pts=76800
| 10 | PASS | 307200 | 97.82 | 104.76 | 0.00 | 97.82 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=640, pitch=644, height=480, num_pts=307200
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 11
Range:
Min: 97.61 cycles/pt Avg: 152.47 cycles/pt
Max: 391.91 cycles/pt Med: 98.70 cycles/pt
Num pt = width * height
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 16 bytes
+---------------------------------------+
| TESTING: VLIB_convertUYVYint_to_LABpl |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_convertUYVYint_to_LABpl testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 32 | 6558.50 | 5723.91 | 0.00 | 6558.50 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | width=16, pitch=16, height=2, num_pts=32
| 1 | PASS | 512 | 6024.64 | 5277.42 | 0.00 | 6024.64 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=32, pitch=32, height=16, num_pts=512
| 2 | PASS | 2688 | 5927.80 | 5188.16 | 0.00 | 5927.80 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=64, pitch=64, height=42, num_pts=2688
| 3 | PASS | 7040 | 5872.00 | 5133.73 | 0.00 | 5872.00 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=128, pitch=128, height=55, num_pts=7040
| 4 | PASS | 32 | 6309.88 | 5501.00 | 0.00 | 6309.88 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=16, pitch=20, height=2, num_pts=32
| 5 | PASS | 2688 | 5920.68 | 5181.16 | 0.00 | 5920.68 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=64, pitch=84, height=42, num_pts=2688
| 6 | PASS | 7040 | 5900.05 | 5160.99 | 0.00 | 5900.05 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=128, pitch=136, height=55, num_pts=7040
| 7 | PASS | 76800 | 5898.14 | 5159.19 | 0.00 | 5898.14 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, pitch=320, height=240, num_pts=76800
| 8 | PASS | 76800 | 5890.23 | 5151.66 | 0.00 | 5890.23 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, pitch=324, height=240, num_pts=76800
---------------------------------------------------------------------------------------------------------------------------------------------
Test vectors run: 9
Range:
Min: 5872.00 cycles/pt Avg: 6033.55 cycles/pt
Max: 6558.50 cycles/pt Med: 5900.05 cycles/pt
Num pt = width * height
---------------------------------------------------------------------------------------------------------------------------------------------
Stack usage: 428 bytes
+---------------------------------------+
| TESTING: VLIB_convertUYVYint_to_LABpl_LUT |
+---------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------
VLIB_convertUYVYint_to_LABpl_LUT testing starts.
---------------------------------------------------------------------------------------------------------------------------------------------
| No | Status | Num pt | Opt Compute | NatC Compute |I/O | Opt Comp || IO | Description
| | | | cyc/pt | cyc/pt | cyc/pt | Total cyc/pt |
---------------------------------------------------------------------------------------------------------------------------------------------
| 0 | PASS | 32 | 586.88 | 589.00 | 0.00 | 586.88 | Statically generated input | Opt results compared to NatC
| | | | | | | | results | width=16, pitch=16, height=2, num_pts=32
| 1 | PASS | 512 | 395.81 | 409.11 | 0.00 | 395.81 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=32, pitch=32, height=16, num_pts=512
| 2 | PASS | 2688 | 80.60 | 88.36 | 0.00 | 80.60 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=64, pitch=64, height=42, num_pts=2688
| 3 | PASS | 7040 | 73.03 | 80.79 | 0.00 | 73.03 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=128, pitch=128, height=55, num_pts=7040
| 4 | PASS | 76800 | 70.90 | 77.18 | 0.00 | 70.90 | Randomly generated input | Opt results compared to NatC
| | | | | | | | results | width=320, pitch=320, height=240, num_pts=76800
| 5 | PASS