forked from larrylindsey/imageprocessing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMserParameters.h
41 lines (29 loc) · 882 Bytes
/
MserParameters.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
#ifndef IMAGEPROCESSING_MSER_PARAMETERS_H__
#define IMAGEPROCESSING_MSER_PARAMETERS_H__
struct MserParameters : public pipeline::Data {
MserParameters() :
delta(1),
minArea(0),
maxArea(100000),
maxVariation(100),
minDiversity(0.0),
darkToBright(true),
brightToDark(false),
sameIntensityComponents(false) {}
// increase of the intensity level to check for stability
int delta;
// minimum and maximum size of connected components
int minArea;
int maxArea;
// maximum variation for a stable region
double maxVariation;
// minumum diversity for a stable region
double minDiversity;
// perform processing from dark to bright pixels
bool darkToBright;
// perform processing from bright to dark pixels
bool brightToDark;
// extract only components of same intensity
bool sameIntensityComponents;
};
#endif // IMAGEPROCESSING_MSER_PARAMETERS_H__