-
Notifications
You must be signed in to change notification settings - Fork 3
/
properties.kv
225 lines (211 loc) · 5.4 KB
/
properties.kv
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
#.:kivy 1.10.0
#:import properties properties
<TransformProperties>:
const_text_input: _constTextInput
gama_text_input: _gamaTextInput
offset_text_input: _offsetTextInput
transform_button: _transformButton
id: _transform
orientation: 'vertical'
padding: 10
BoxLayout:
orientation:'horizontal'
padding: 10, 6, 6, 5
size_hint: (1, None)
height: 50
Label:
id: _constlabel
text: 'Constante: '
size_hint: (0.3, 1)
font_size: '14sp'
TextInput:
id: _constTextInput
size_hint: (0.7, 1)
background_color: [0.3,0.3,0.3,1]
foreground_color: [0.9,0.9,0.9,1]
BoxLayout:
orientation:'horizontal'
padding: 10, 6, 6, 5
size_hint: (1, None)
height: 50
Label:
id: _gamaLabel
text: 'Gama: '
size_hint: (0.3, 1)
font_size: '14sp'
TextInput:
id: _gamaTextInput
size_hint: (0.7, 1)
background_color: [0.3,0.3,0.3,1]
foreground_color: [0.9,0.9,0.9,1]
BoxLayout:
orientation:'horizontal'
padding: 10, 6, 6, 5
size_hint: (1, None)
height: 50
Label:
id: _offsetLabel
text: 'Offset: '
size_hint: (0.3, 1)
font_size: '14sp'
TextInput:
id: _offsetTextInput
size_hint: (0.7, 1)
background_color: [0.3,0.3,0.3,1]
foreground_color: [0.9,0.9,0.9,1]
BoxLayout:
orientation:'horizontal'
padding: 10, 6, 6, 5
size_hint: (1, None)
height: 50
Button:
id: _transformButton
size_hint:(1, None)
height: 40
text: 'Aplicar Transformação de Potência'
on_press: _transform.on_press()
<HistogramProperties@BoxLayout>:
id : _histo
hist: _hist
orientation: 'vertical'
Image:
id: _hist
Button:
size_hint: (1, 0.3)
text: 'Equalizar Histograma'
on_press: _histo.equalizar()
<BitProperties@BoxLayout>:
id: _bit
um: _um
dois: _dois
tres: _tres
quatro: _quatro
cinco: _cinco
seis: _seis
sete: _sete
oito: _oito
BoxLayout:
orientation: 'vertical'
GridLayout:
cols: 2
CheckBox:
id: _um
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 1'
CheckBox:
id: _dois
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 2'
CheckBox:
id: _tres
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 3'
CheckBox:
id: _quatro
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 4'
CheckBox:
id: _cinco
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 5'
CheckBox:
id: _seis
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 6'
CheckBox:
id: _sete
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 7'
CheckBox:
id: _oito
#group: 'bits'
Label:
halign: 'left'
text: 'Plano 8'
Button:
text: 'Fatiar'
on_press: _bit.show_planes()
<FilterProperties@BoxLayout>:
id: _filter
kernel_text_input: _kernel
mediana: _mediana
media: _media
max: _max
min: _min
BoxLayout:
orientation: 'vertical'
GridLayout:
cols: 2
CheckBox:
id: _max
group: 'filter'
Label:
halign: 'left'
text: 'Max'
CheckBox:
id: _min
group: 'filter'
Label:
halign: 'left'
text: 'Min'
CheckBox:
id: _media
group: 'filter'
Label:
halign: 'left'
text: 'Media'
CheckBox:
id: _mediana
group: 'filter'
Label:
halign: 'left'
text: 'Mediana'
Label:
text: 'Kernel: (entrada, entrada)'
TextInput:
id: _kernel
size_hint: (1, None)
height: 90
Button:
text: 'Aplicar Filtro'
on_press: _filter.on_press()
<DetectionProperties@BoxLayout>:
id: _detec
Button:
text: 'Detectar bordas'
on_press: _detec.detectar()
<FatColorProperties>:
id: _fat
slices: _slices
cor_input: _corInput
color_wheel: _colorwheel
orientation: 'vertical'
ColorP:
id: _colorwheel
fat: _fat
Label:
id: _corInput
text: _colorwheel.cor
Label:
text: 'Inserir slices de cores: '
TextInput:
id: _slices
Button:
size_hint: 1, None
height: 50
text: 'Aplicar Fatiamento'
on_press: _fat.fatia()