-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathwindowParam.h
54 lines (41 loc) · 1.41 KB
/
windowParam.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
49
50
51
52
53
54
#ifndef WINDOWPARAM_H
#define WINDOWPARAM_H
#include <gtk/gtk.h>
/*
ZerResult CalDistanceSquare(Mat& matRoi, double rto = MMPERPIXEL,
int drawColor = WHITE, bool ifmedianBlur=YESMEDIANBLUR,
int cannyL = 150, int cannyH = 200, int cannyCore = 3,
int nbsize = N, Point2i VHtime = Point2i(4, 4),
int ZerBgrL = 10, int ZerBgrH = 50
);
ZerResultCir CalDistanceCircle(Mat& matRoi, double rto = MMPERPIXEL,
int drawColor = WHITE, bool ifmedianBlur = YESMEDIANBLUR,
int cannyL = 150, int cannyH = 200, int cannyCore = 3,
int nbsize = N, Point2i VHtime = Point2i(4, 4),
int ZerBgrL = 10, int ZerBgrH = 50
);
*/
typedef struct tag_paramSet{
int cannyL;
int cannyH;
int cannyCore;
int ZerBgrL;
int ZerBgrH;
int DrawColor;
int neighborSize;
bool useMedium;
int VScale;
int HScale;
}ParamSet;
void Initial_WindowParam(ParamSet *ext_params);
void Show_WindowParam();
void Hide_WindowParam();
void Fill_DefaultParams();
void Use_DefaultParams(ParamSet* params);
void SetParamsFromView(ParamSet* params);
void FillParamsToView(ParamSet *params);
void on_btn_apply_clicked(GtkWidget* button,gpointer userdata);
void on_btn_cancel_clicked(GtkWidget* button,gpointer userdata);
void on_btn_default_clicked(GtkWidget* button,gpointer userdata);
void on_checkBox_meida_toggle(GtkWidget *check_button, gpointer data);
#endif // WINDOWPARAM_H