twain3/ImageProcess/ImageApplyTextureRemoval.h

51 lines
1.0 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ====================================================
* 功能:去除网纹
* 作者:刘丁维
* 生成时间2020/4/21
* 最近修改时间2020/4/21
* 版本号v1.0
* ====================================================
*/
#ifndef IMAGE_APPLY_TEXTURE_REMOVAL_H
#define IMAGE_APPLY_TEXTURE_REMOVAL_H
#include "ImageApply.h"
class CImageApplyTextureRemoval : public CImageApply
{
public:
CImageApplyTextureRemoval(void);
/*
* dilateSize [in]:膨胀像素
* erodeSize [in]:腐蚀像素
*/
CImageApplyTextureRemoval(int dilateSize, int erodeSize);
virtual ~CImageApplyTextureRemoval(void);
virtual void apply(cv::Mat& pDib,int side);
virtual void apply(std::vector<cv::Mat>& mats, bool isTwoSide);
int getDilateSize() {return m_dilateSize;}
int getErodeSize() {return m_erodeSize;}
void setDilateSize(int size) {m_dilateSize = size;}
void setErodeSize(int size) {m_erodeSize = size;}
private:
void textureRemovalGray(cv::Mat& img);
private:
int m_dilateSize;
int m_erodeSize;
};
#endif