AutoBinaryLevel

Calculates automatic binary level

int AutoBinaryLevel(
        const int               *histgram,
        const int               num
)

Parameters
*histgram
Histogram
num
Number of histogram arrays

Return Value
Calculated automatic binary level
ERROR(-1): Unsuccessful completion

Description
Calculates the automatic binary level from the histogram array.
For the automatic binary level calculation, use the Ohtsu method.
The histogram array is a single dimensional array consisting of the numbers specified by "num".

Notes