19#ifndef TESSERACT_CCMAIN_OTSUTHR_H_
20#define TESSERACT_CCMAIN_OTSUTHR_H_
41 std::vector<int> &thresholds,
42 std::vector<int> &hi_values);
48void HistogramRect(
Image src_pix,
int channel,
int left,
int top,
int width,
int height,
54int OtsuStats(
const int *histogram,
int *H_out,
int *omega0_out);
void HistogramRect(Image src_pix, int channel, int left, int top, int width, int height, int *histogram)
int OtsuStats(const int *histogram, int *H_out, int *omega0_out)
int OtsuThreshold(Image src_pix, int left, int top, int width, int height, std::vector< int > &thresholds, std::vector< int > &hi_values)