code_device/hgdriver/ImageProcess/ImageMultiOutputRed.h

30 lines
696 B
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.

/*
* ====================================================
* 功能:多流除红
* 作者:刘丁维
* 生成时间2023/12/02
* 最近修改时间v1.0 2023/12/02
* 版本号v1.0
* ====================================================
*/
#ifndef IMAGE_MULTI_OUTPUT_RED_H
#define IMAGE_MULTI_OUTPUT_RED_H
#include "IMulti.h"
class GIMGPROC_LIBRARY_API ImageMultiOutputRed
:public IMulti
{
public:
ImageMultiOutputRed(short channelIndex);
virtual ~ImageMultiOutputRed(void);
virtual std::vector<cv::Mat> apply(cv::Mat& pDib) override;
private:
void filterColor(cv::Mat& image, short channel);
private:
short m_channelIndex;
};
#endif //!IMAGE_MULTI_OUTPUT_RED_H