-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageManipulation.h
37 lines (30 loc) · 997 Bytes
/
ImageManipulation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Created by johanna on 19.09.20.
//
#ifndef FILTERAPPLICATION_IMAGEMANIPULATION_H
#define FILTERAPPLICATION_IMAGEMANIPULATION_H
#include <iostream>
#include <opencv2/video/tracking.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
using namespace cv;
namespace IM {
class ImageManipulation {
public:
Mat original_image;
Mat canny_image;
Mat histogram_image;
Mat templ;
Mat templ_result;
ImageManipulation();
ImageManipulation(const Mat* data);
~ImageManipulation();
Mat* CannyThreshold(const int blur_filter_size, const int low_threshold, const int ratio, const int kernel_size);
Mat* Histogram();
double SimpleTemplateMatch(int match_method, Point &result, std::vector<double> &scales);
void AdvancedTemplateMatch();
void set_original_image(const Mat &original_image);
};
}
#endif //FILTERAPPLICATION_IMAGEMANIPULATION_H