Description: // OTSU.h: interface for the COTSU class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_)
#define AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//---OpenCV Lib file-----------
#pragma comment (lib,"cv")
#pragma comment (lib,"highgui")
#pragma comment (lib, "cxcore")
//---gsl Lib file-----------
//#pragma comment (lib, "libgsl.a")
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
class COTSU
{
public:
IplImage* Binarize( IplImage* pImg, int nThreshold )
int Threshold()
void CalculateThresh( double* pHist, double dMean )
void GetThreshold( IplImage* pImg, CRect Rect )
COTSU()
virtual ~COTSU()
protected:
bool m_bDone
int m_nThreshold
}
#endif // !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_)
File list (Check if you may need any files):
OTSU
....\OTSU.cpp
....\OTSU.h