Histgram

Histogram

int Histgram(
        const IMAGE     *image,
        const BYTE      *model,
        const int       *num,
        int             *nep,
        int             **histgram
)

Parameters
*image
Image data structure address
*model
Model data
*num
Plane number
*nep
Number of valid pixels (measurement result)
**histgram
Histogram storage space (measurement result)

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion

Description
Performs the histogram measurement of an arbitrary area with the specified parameters.
For the histogram storage space, you need to allocate a space where the frequencies for 256 shades can be stored.
(example: for RGB color int histgram[3][num];)
For monochrome
histgram[0][]
Monochrome histogram
For RGB color
histgram[0][]
R density histogram
histgram[1][]
G density histogram
histgram[2][]
B density histogram

Notes