37 lines
917 B
C++
37 lines
917 B
C++
/*
|
||
* ====================================================
|
||
|
||
* 功能:消除色散
|
||
* 作者:刘丁维
|
||
* 生成时间:2021/09/24
|
||
* 最近修改时间:2021/11/12 v1.1.0 重构算法
|
||
* 2022/04/21 v1.2.0 重构算法
|
||
* 2022/07/20 v1.3.0 开放构造函数参数列表
|
||
* 版本号:v1.3.0
|
||
|
||
* ====================================================
|
||
*/
|
||
|
||
#ifndef IMAGE_APPLY_DISPERSION_COLOR_H
|
||
#define IMAGE_APPLY_DISPERSION_COLOR_H
|
||
|
||
#include "ImageApply.h"
|
||
|
||
class GIMGPROC_LIBRARY_API CImageApplyDispersion : public CImageApply
|
||
{
|
||
public:
|
||
CImageApplyDispersion(float a = 0.15f, float b = 0.806f, float c = 0.484f, float sharpen = 0.3f);
|
||
|
||
virtual ~CImageApplyDispersion();
|
||
|
||
virtual void apply(cv::Mat& pDib, int side);
|
||
|
||
virtual void apply(std::vector<cv::Mat>& mats, bool isTwoSide);
|
||
|
||
private:
|
||
cv::Mat m_kernal_b;
|
||
cv::Mat m_kernal_g;
|
||
cv::Mat m_kernal_r;
|
||
};
|
||
#endif
|