speedcontroller/imageprocess/ImageApplyFadeBackGroundCol...

39 lines
843 B
C++
Raw 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/11/30
* 最近修改时间2020/11/30 v1.0
* 版本号v1.0
* ====================================================
*/
#ifndef IMAGE_APPLY_FADE_BACKGROUND_COLOR_H
#define IMAGE_APPLY_FADE_BACKGROUND_COLOR_H
#include "ImageApply.h"
class CImageApplyAdjustColors;
class CImageApplyFadeBackGroudColor : public CImageApply
{
public:
CImageApplyFadeBackGroudColor();
CImageApplyFadeBackGroudColor(int brightness, int contrast);
virtual ~CImageApplyFadeBackGroudColor();
virtual void apply(cv::Mat& pDib, int side);
virtual void apply(std::vector<cv::Mat>& mats, bool isTwoSide);
private:
CImageApplyAdjustColors* m_adjustColors;
};
#endif // !IMAGE_APPLY_FADE_BACKGROUND_COLOR_H