-
Notifications
You must be signed in to change notification settings - Fork 1
/
Filter.h
48 lines (35 loc) · 1.06 KB
/
Filter.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
38
39
40
41
42
43
44
45
46
47
48
//
// Created by @mathermann on 23/01/2019.
//
#ifndef IMAGES_PROCESSING_FILTER_H
#define IMAGES_PROCESSING_FILTER_H
class Filter
{
private:
int size;
double** matrix;
static Filter MAKE_2(int matrix[2][2]);
static Filter MAKE_3(int matrix[3][3]);
public:
Filter();
Filter(int size);
Filter(const Filter& filter);
~Filter();
int getSize();
double** getMatrix();
std::string toString();
double* operator[](int i); // returns matrix[i]
friend std::ostream& operator<<(std::ostream &out, Filter& filter); // out << filter
static Filter GAUSS(int size, float sigma);
static Filter GAUSS(int size);
static Filter AVERAGING(int size);
static Filter ROBERT_X();
static Filter ROBERT_Y();
static Filter PREWITT_X();
static Filter PREWITT_Y();
static Filter SOBEL_X();
static Filter SOBEL_Y();
static Filter LAPLACE1();
static Filter LAPLACE2();
};
#endif //IMAGES_PROCESSING_FILTER_H