opencv/opencv_test.h

54 lines
1.2 KiB
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.

#pragma once
#ifndef OPENCV_test
#define OPENCV_test
#include<opencv2/opencv.hpp>
#include<iostream>
#include<windows.h>
using namespace cv;
using namespace std;
class opencv_t
{
public:
opencv_t();
~opencv_t();
static opencv_t* create_new();
void visit_xiangsu(Mat& temp);//MatĎńËŘśÁĐ´ˇĂÎĘ
void visit_xiangsu(Mat& temp,int a);//MatĎńËŘśÁĐ´ˇĂÎĘ,
Mat operter_zuo(Mat& temp);
void tar_bar(Mat& temp);
void bar_demo(Mat& temp);
void color_sectect(Mat& temp);
Mat operter_chen(Mat& temp);
private:
std::vector<int> colormaps = {
cv::COLORMAP_AUTUMN,
cv::COLORMAP_BONE,
cv::COLORMAP_JET,
cv::COLORMAP_WINTER,
cv::COLORMAP_RAINBOW,
cv::COLORMAP_OCEAN,
cv::COLORMAP_SUMMER,
cv::COLORMAP_SPRING,
cv::COLORMAP_COOL,
cv::COLORMAP_HSV,
cv::COLORMAP_PINK,
cv::COLORMAP_HOT,
cv::COLORMAP_PARULA,
cv::COLORMAP_MAGMA,
cv::COLORMAP_INFERNO,
cv::COLORMAP_PLASMA,
cv::COLORMAP_VIRIDIS,
cv::COLORMAP_CIVIDIS,
cv::COLORMAP_TWILIGHT,
cv::COLORMAP_TWILIGHT_SHIFTED,
cv::COLORMAP_TURBO,
cv::COLORMAP_DEEPGREEN
};
};
#endif