1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# ifndef BM_GRAY_HISTO_H
# define BM_GRAY_HISTO_H
/************************************************************************/
/* */
/* Thresholding implementations. */
/* */
/************************************************************************/
typedef struct ThresholderHistogram
{
long thHistogram[256];
int thHistogramSize;
int thPixelCount;
int thThreshold;
} ThresholderHistogram;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void bmInitThresholderHistogram( ThresholderHistogram * th );
extern void bmThresholdMean( ThresholderHistogram * th );
extern void bmThresholdQuantile( ThresholderHistogram * th,
double frac );
extern void bmThreshold2Peaks( ThresholderHistogram * th );
extern void bmThresholdRidler( ThresholderHistogram * th );
extern void bmThresholdVariance( ThresholderHistogram * th );
extern void bmThresholdMinimumError( ThresholderHistogram * th );
extern void bmThresholdKapur( ThresholderHistogram * th );
extern void bmThresholdJohannsen( ThresholderHistogram * th );
# endif /* BM_GRAY_HISTO_H */
|