twain2/hugaotwainds/ImageApplyThreshold.h

15 lines
396 B
C
Raw Permalink Normal View History

2020-03-11 02:53:30 +00:00
#ifndef IMAGE_APPLY_THRESHOLD_H
#define IMAGE_APPLY_THRESHOLD_H
#include "ImageApply.h"
class CImageApplyThreshold :public CImageApply {
public:
CImageApplyThreshold(float thre=128.0);
virtual ~CImageApplyThreshold();
virtual void apply(std::vector<cv::Mat>& mats, bool isTwoSide);
virtual void apply(cv::Mat& pDib, int side);
private:
float m_thresh;
};
#endif // !IMAGE_APPLY_THRESHOLD_H