![]() |
![]() |
Functions | |
void | IMG_histogram_16 (unsigned short *restrict image, int n, int accumulate, short *restrict t_hist, short *restrict hist, int img_bits) |
void IMG_histogram_16 | ( | unsigned short *restrict | image, | |
int | n, | |||
int | accumulate, | |||
short *restrict | t_hist, | |||
short *restrict | hist, | |||
int | img_bits | |||
) |
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 (SIZE: 2^(img_bits+2)) | |
hist | Running histogram bins (SIZE: 2^img_bits) | |
img_bits | Number of valid data bits per pixel |
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 | ... ...