-
Notifications
You must be signed in to change notification settings - Fork 30
/
GraphCutSegmentationWidget.ui
407 lines (407 loc) · 11.7 KB
/
GraphCutSegmentationWidget.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GraphCutSegmentationWidget</class>
<widget class="QMainWindow" name="GraphCutSegmentationWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>900</width>
<height>900</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>900</width>
<height>900</height>
</size>
</property>
<property name="windowTitle">
<string>Interactive Graph Cut Segmentation</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout" rowstretch="1,17,6,0" columnstretch="1,1">
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Original Image</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Segmented Image</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QVTKWidget" name="qvtkWidgetLeft"/>
</item>
<item row="1" column="1">
<widget class="QVTKWidget" name="qvtkWidgetRight"/>
</item>
<item row="3" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="radForeground">
<property name="text">
<string>Foreground</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radBackground">
<property name="text">
<string>Background</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="1">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>LambdaMax</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="txtLambdaMax">
<property name="toolTip">
<string>The value of Lambda if the slider is set to 100%</string>
</property>
<property name="text">
<string>.001</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>% of LambdaMax</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>0%</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="sldLambda">
<property name="toolTip">
<string>The percentage of LambdaMax to use as Lambda</string>
</property>
<property name="value">
<number>50</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>100%</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblLambda">
<property name="toolTip">
<string>The final value of Labmda to use. When Lambda is high, there is no regularization. That is, each pixel decides its label independently (does not care about the labeling of its neighbors).</string>
</property>
<property name="text">
<string>.025</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Histogram Bins Per Dimension:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="sldHistogramBins">
<property name="toolTip">
<string>The higher this value, the more discriminative the regional term will be.</string>
</property>
<property name="value">
<number>40</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>99</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblHistogramBins">
<property name="text">
<string>20</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QPushButton" name="btnCut">
<property name="text">
<string>Cut Graph</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="btnShowStrokesLeft">
<property name="text">
<string>Show Strokes</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnHideStrokesLeft">
<property name="text">
<string>Hide Strokes</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="btnShowStrokesRight">
<property name="text">
<string>Show Strokes</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnHideStrokesRight">
<property name="text">
<string>Hide Strokes</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>900</width>
<height>28</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionOpenImage"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>View</string>
</property>
<addaction name="actionFlipImageVertically"/>
<addaction name="actionFlipImageHorizontally"/>
</widget>
<widget class="QMenu" name="menuSelections">
<property name="title">
<string>Selections</string>
</property>
<addaction name="actionClearForegroundSelection"/>
<addaction name="actionClearBackgroundSelection"/>
<addaction name="actionClearAll"/>
<addaction name="separator"/>
<addaction name="actionSaveForegroundSelection"/>
<addaction name="actionSaveBackgroundSelection"/>
<addaction name="separator"/>
<addaction name="actionLoadForeground"/>
<addaction name="actionLoadBackground"/>
</widget>
<widget class="QMenu" name="menuExport">
<property name="title">
<string>Export</string>
</property>
<addaction name="actionExportSegmentedImage"/>
<addaction name="actionExportSegmentMask"/>
<addaction name="actionExportScreenshotLeft"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuSelections"/>
<addaction name="menuExport"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<action name="actionOpenImage">
<property name="text">
<string>Open Image</string>
</property>
</action>
<action name="actionOpen_Grayscale_Image">
<property name="text">
<string>Open As Grayscale Image</string>
</property>
</action>
<action name="actionOpen_RGBDI_Image">
<property name="text">
<string>Open As RGBDI Image</string>
</property>
</action>
<action name="actionSaveSegmentation">
<property name="text">
<string>Save Segmentation</string>
</property>
</action>
<action name="actionFlipImageVertically">
<property name="text">
<string>Flip Image Vertically</string>
</property>
</action>
<action name="actionExit">
<property name="text">
<string>Exit</string>
</property>
</action>
<action name="actionFlipImageHorizontally">
<property name="text">
<string>Flip Image Horizontally</string>
</property>
</action>
<action name="actionClearForegroundSelection">
<property name="text">
<string>Clear Foreground</string>
</property>
</action>
<action name="actionClearBackgroundSelection">
<property name="text">
<string>Clear Background</string>
</property>
</action>
<action name="actionSaveForegroundSelection">
<property name="text">
<string>Save Foreground</string>
</property>
</action>
<action name="actionSaveBackgroundSelection">
<property name="text">
<string>Save Background</string>
</property>
</action>
<action name="actionExportSegmentedImage">
<property name="text">
<string>Segmented Image</string>
</property>
</action>
<action name="actionExportSegmentMask">
<property name="text">
<string>Segment Mask</string>
</property>
</action>
<action name="actionLoadForeground">
<property name="text">
<string>Load Foreground</string>
</property>
</action>
<action name="actionLoadBackground">
<property name="text">
<string>Load Background</string>
</property>
</action>
<action name="actionClearAll">
<property name="text">
<string>Clear All</string>
</property>
</action>
<action name="actionExportScreenshotLeft">
<property name="text">
<string>Screenshot Left</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>QVTKWidget</class>
<extends>QWidget</extends>
<header>QVTKWidget.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>sldHistogramBins</sender>
<signal>valueChanged(int)</signal>
<receiver>lblHistogramBins</receiver>
<slot>setNum(int)</slot>
<hints>
<hint type="sourcelabel">
<x>786</x>
<y>765</y>
</hint>
<hint type="destinationlabel">
<x>881</x>
<y>765</y>
</hint>
</hints>
</connection>
</connections>
</ui>