code_device/hgdriver/ImageProcess/ImageApplySplit.h

39 lines
832 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/4/21
* 最近修改时间2020/4/21
* 版本号v1.0
* ====================================================
*/
#ifndef IMAGE_APPLY_SPLIT_H
#define IMAGE_APPLY_SPLIT_H
#include "MatEx.h"
#include <vector>
#include "imgprocdefs.h"
class CImageApplySplit
{
public:
CImageApplySplit(int multitype=-1,bool split=false,bool ismulti_filter_red=false,int colormode=1);//默认不多流输出 不多流除红 灰度
~CImageApplySplit(void);
std::vector<MatEx> SplitMats(std::vector<cv::Mat>& mats, bool isTwoSide);
//private:
std::vector<cv::Mat> apply(cv::Mat& pDib);
int getBpp(int matIndex);
private://field
bool m_bmulti_filter_red;
int m_multitype;
int m_colormode;
bool m_split;
};
#endif // !IMAGE_APPLY_SPLIT_H