Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Commit cce84ac

Browse files
committed
fixed hdriedit.py
1 parent 83f42c0 commit cce84ac

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

hdriedit.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
4848
The first and second of the above output an image named 'out-24bit.png'
4949
-----------
50-
""" % image.gamma
50+
""" % image.settings.gamma
5151

5252
while True:
5353

@@ -56,7 +56,7 @@
5656

5757
if cmd == "sweep" or cmd == "s":
5858

59-
bright0 = image.brightness
59+
bright0 = image.settings.brightness
6060

6161
Nsteps = 200
6262
log_min = -5
@@ -66,20 +66,20 @@
6666

6767
for v in vals:
6868
print v
69-
image.brightness = v
69+
image.settings.brightness = v
7070
image.show(data)
7171
time.sleep(0.01)
7272

73-
image.brightness = bright0
73+
image.settings.brightness = bright0
7474
else:
7575
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
7878
elif cmd == "gamma" or cmd == "g":
79-
image.gamma = float(line[1])
79+
image.settings.gamma = float(line[1])
8080
elif cmd == "brightness" or cmd == "b":
81-
image.brightness = float(line[1])
81+
image.settings.brightness = float(line[1])
8282
else:
83-
image.brightness = float(cmd)
83+
image.settings.brightness = float(cmd)
8484
image.show(data)
8585
image.save_png('hdriedit-out.png')

imgutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class ColorEncodingSettings:
77
def __init__(self):
88

9-
## Color endcoding pipeline
9+
## Color encoding pipeline
1010

1111
# First the intensity values are shifted downwards so that this
1212
# reference point has zero brightness = (r+g+b)/3

0 commit comments

Comments
 (0)