-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbloom.kv
70 lines (69 loc) · 2.28 KB
/
bloom.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
#:kivy 1.11.1
<ImgView>:
BoxLayout:
orientation: 'horizontal'
BoxLayout:
orientation: 'vertical'
Label:
text: 'Image name'
TextInput:
id: imgname
text: ""
Label:
text: 'List of EVs (e.g. "-1, 0, 1")'
TextInput:
id: evs
text: ""
Label:
text: 'Image extension (e.g. "jpg")'
TextInput:
id: ext
text: ""
Label:
text: 'Kernel name (e.g. "kernel.png")'
TextInput:
id: kernname
text: ""
Label:
text: 'Exposure fusion parameters (e.g. "1.0, 1.0, 1.0")'
TextInput:
id: tonemap
text: ""
Label:
text: 'Bloom kernel size (e.g. "15, 15")'
TextInput:
id: kernsize
text: ""
Label:
text: 'Smoothing factor'
TextInput:
id: smoothing
text: ""
Label:
text: 'Bloom intensity'
TextInput:
id: intensity
text: ""
Button:
text: 'Generate'
on_release:
app.run_process(root.ids.imgname.text, root.ids.evs.text, root.ids.ext.text, root.ids.kernname.text, root.ids.tonemap.text, root.ids.kernsize.text, root.ids.smoothing.text, root.ids.intensity.text)
root.ids.main_img.reload()
root.ids.bloom_overlay.reload()
root.ids.tone_mapped.reload()
BoxLayout:
orientation: 'vertical'
BoxLayout:
orientation: 'horizontal'
Image:
id: tone_mapped
source: "img/app_output/tone_mapped.png"
size: self.texture_size
Image:
id: bloom_overlay
source: "img/app_output/bloom_overlay.png"
size: self.texture_size
Image:
id: main_img
source: "img/app_output/final.png"
size: self.texture_size