![]() |
![]() |
Functions | |
void | IMG_histogram_8 (const unsigned char *restrict image, int n, short accumulate, short *restrict t_hist, short *restrict hist) |
void IMG_histogram_8 | ( | const unsigned char *restrict | image, | |
int | n, | |||
short | accumulate, | |||
short *restrict | t_hist, | |||
short *restrict | hist | |||
) |
image | Input image pointer containing "n" unsigned 8-bit pixels | |
n | Size of image in pixels | |
accumulate | Control to add or subtract from the running histogram. This control is only defined for the values 1 and -1 for ADD and SUBTRACT respectively | |
t_hist | Scratch buffer for temporary histogram storage (1024 bytes) | |
hist | Running histogram bins (256) |
0 1 2 3 4 5 6 ... | hst 0 | hst 1 | hst 2 | hst 3 | hst 0 | hst 1 | ... ... | bin 0 | bin 0 | bin 0 | bin 0 | bin 1 | bin 1 | ... ...