![]() |
![]() |
Functions | |
void | IMG_thr_gt2thr_8 (const unsigned char *in_data, unsigned char *restrict out_data, short cols, short rows, unsigned char threshold) |
void IMG_thr_gt2thr_8 | ( | const unsigned char * | in_data, | |
unsigned char *restrict | out_data, | |||
short | cols, | |||
short | rows, | |||
unsigned char | threshold | |||
) |
in_data | Input image pointer | |
out_data | Output image pointer | |
cols | Number of columns in the image | |
rows | Number of rows in the image | |
threshold | The (unsigned 8-bit) threshold |
255_| | | O | U | T th _|. . . . . _________ P | /. U | / . T | / . | / . 0_|/________.__________ | | | 0 th 255 INPUT
31 24 16 8 0 +----+----+----+----+ p3p2p1p0 | p3 | p2 | p1 | p0 | +----+----+----+----+
31 24 16 8 0 +----+----+----+----+ thththth | th | th | th | th | +----+----+----+----+