C Image Processing Library
Low-level implementation of power of 2 reduction. More...
|void||reduceBinary2Low (l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 hs, l_int32 wpls, l_uint8 *tab)|
|void||reduceRankBinary2Low (l_uint32 *datad, l_int32 wpld, l_uint32 *datas, l_int32 hs, l_int32 wpls, l_uint8 *tab, l_int32 level)|
|l_uint8 *||makeSubsampleTab2x (void)|
Low-level implementation of power of 2 reduction.
Low-level subsampled reduction void reduceBinary2Low() Low-level threshold reduction void reduceRankBinary2Low() l_uint8 *makeSubsampleTab2x()
Definition in file binreducelow.c.
|void reduceBinary2Low||(||l_uint32 *||datad,|
After folding, the data is in bytes 0 and 2 of the word, and the bits in each byte are in the following order (with 0 being the leftmost originating pair and 7 being the rightmost originating pair):
0 4 1 5 2 6 3 7
These need to be permuted to
0 1 2 3 4 5 6 7
which is done with an 8-bit table generated by makeSubsampleTab2x().
Referenced by pixReduceBinary2().
|void reduceRankBinary2Low||(||l_uint32 *||datad,|
Rank filtering is done to the UL corner of each 2x2 pixel block, using only logical operations.
Then these pixels are chosen in the 2x subsampling process, subsampled, as described above in reduceBinary2Low().
Referenced by pixReduceRankBinary2().