This repository was archived by the owner on Jan 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 47
47
48
48
The first and second of the above output an image named 'out-24bit.png'
49
49
-----------
50
- """ % image .gamma
50
+ """ % image .settings . gamma
51
51
52
52
while True :
53
53
56
56
57
57
if cmd == "sweep" or cmd == "s" :
58
58
59
- bright0 = image .brightness
59
+ bright0 = image .settings . brightness
60
60
61
61
Nsteps = 200
62
62
log_min = - 5
66
66
67
67
for v in vals :
68
68
print v
69
- image .brightness = v
69
+ image .settings . brightness = v
70
70
image .show (data )
71
71
time .sleep (0.01 )
72
72
73
- image .brightness = bright0
73
+ image .settings . brightness = bright0
74
74
else :
75
75
if cmd == "flares" or cmd == "f" :
76
- image .flares = image .flares == False
77
- print "flares %s" % image .flares
76
+ image .settings . flares = image . settings .flares == False
77
+ print "flares %s" % image .settings . flares
78
78
elif cmd == "gamma" or cmd == "g" :
79
- image .gamma = float (line [1 ])
79
+ image .settings . gamma = float (line [1 ])
80
80
elif cmd == "brightness" or cmd == "b" :
81
- image .brightness = float (line [1 ])
81
+ image .settings . brightness = float (line [1 ])
82
82
else :
83
- image .brightness = float (cmd )
83
+ image .settings . brightness = float (cmd )
84
84
image .show (data )
85
85
image .save_png ('hdriedit-out.png' )
Original file line number Diff line number Diff line change 6
6
class ColorEncodingSettings :
7
7
def __init__ (self ):
8
8
9
- ## Color endcoding pipeline
9
+ ## Color encoding pipeline
10
10
11
11
# First the intensity values are shifted downwards so that this
12
12
# reference point has zero brightness = (r+g+b)/3
You can’t perform that action at this time.
0 commit comments