twain3.0/huagao/ImageProcess/ImageMulti.h

27 lines
519 B
C
Raw Normal View History

2022-06-29 12:24:24 +00:00
#ifndef IMAGE_MULTI_H
#define IMAGE_MULTI_H
#include <vector>
#include <opencv2/opencv.hpp>
class IMageMulti
{
public:
enum MultiOutput
{
NONE=-1,
ALL,
COLORGRAY,
COLORBW,
GRAYBW
};
public:
IMageMulti(int multiType = 0,int thre = 128);
~IMageMulti();
std::vector<cv::Mat> apply(cv::Mat& pDib);
std::vector<cv::Mat> apply(cv::Mat& pDib, int multitype);
std::vector<cv::Mat> apply(std::vector<cv::Mat>& pDib, int multitype);
private:
int m_multiType;
int m_thre;
};
#endif // !IMAGE_MULTI_H