www.pudn.com > several_kinds_Histogram.rar > CCVHistogram.H
#ifndef CCVHistogram_H
#define CCVHistogram_H
#if _MSG_VER>1000
#define pragma once
#endif
#include"Histogram.h" //include the base class
#define PIXEL_PROCESSED_MASK (1<< (sizeof(unsigned short)*8-1)) // highest bit of unsigned int
#define PIXEL_DATA_MASK (~PIXEL_PROCESSED_MASK)
class CCVHistogram:public Histogram
{
public:
CCVHistogram(double threshold=0.05):dRatiponTh(threshold) {}
~CCVHistogram(){}
private:
//over write the two virtual functions
bool ApplySpace();
bool ExtractHistogram();
private:
//additional the member value
//the value of the threshold
double dRatiponTh;
};
#endif