-
Notifications
You must be signed in to change notification settings - Fork 3
/
binarization.ui
157 lines (157 loc) · 4.11 KB
/
binarization.ui
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>binarization_operation_dialog</class>
<widget class="QDialog" name="binarization_operation_dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>二值化</string>
</property>
<layout class="QGridLayout" name="binarization_dialog_main_grid_layout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QTabWidget" name="ops_tab_widget">
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="global_binarization_tab">
<attribute name="title">
<string>全局阈值方法</string>
</attribute>
<widget class="QLineEdit" name="fixed_threshold_line_edit">
<property name="geometry">
<rect>
<x>150</x>
<y>50</y>
<width>113</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QRadioButton" name="fixed_threshold_radio_button">
<property name="geometry">
<rect>
<x>60</x>
<y>50</y>
<width>72</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>固定阈值方法</string>
</property>
</widget>
<widget class="QRadioButton" name="otsu_radio_button">
<property name="geometry">
<rect>
<x>60</x>
<y>100</y>
<width>126</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>最大类间方差方法(Otsu)</string>
</property>
</widget>
<widget class="QPushButton" name="global_binarization_push_button">
<property name="geometry">
<rect>
<x>160</x>
<y>210</y>
<width>56</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>计算</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="local_binarization_tab">
<attribute name="title">
<string>局部阈值方法</string>
</attribute>
<widget class="QRadioButton" name="adaptive_threshold_radio_button">
<property name="geometry">
<rect>
<x>50</x>
<y>40</y>
<width>68</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>自适应阈值</string>
</property>
</widget>
<widget class="QRadioButton" name="niblack_radio_button">
<property name="geometry">
<rect>
<x>50</x>
<y>100</y>
<width>68</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Niblack算法</string>
</property>
</widget>
<widget class="QRadioButton" name="sauvola_radio_button">
<property name="geometry">
<rect>
<x>50</x>
<y>160</y>
<width>68</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Sauvola算法</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="local_binarization_push_button">
<property name="geometry">
<rect>
<x>160</x>
<y>210</y>
<width>56</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>计算</string>
</property>
</widget>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>