Can you try to find at what line from the script you get the error?
(use some print instructions)
Hello a1ex,
I inserted some print commands. I'm not sure if this is how you would have done it but here it is. This is what I get when I execute:
PS D:\pictures\dualiso> python uniform_exposure.py
0.1
Qt: Untested Windows version 6.2 detected!
Warning: could not create output dir 'jpg'
Warning: could not create working dir 'tmp'
1
2
3
4
5
6
9
10 (this is around line 188)
raw\D77B4190.DNG:
Invalid Parameter - -type
m1 (line 112)
D:\Install Folder\Anaconda\lib\site-packages\numpy\core\_methods.py:57: RuntimeWarning: invalid value encountered in dou
ble_scalars
ret = ret / float(rcount)
m1.1
9
10
raw\D77B4191.DNG:
Invalid Parameter - -type
m1
m1.1
PS D:\pictures\dualiso>
print "4"
def get_medians(file):
X = get_raw_data_for_median(file)
print "m1"
# for midtones
m = median(X)
mm = float(m)
print "m1.1"
# for highlights
m = median(X) # 50%
m = median(X[X > m]) # 75%
m = median(X[X > m]) # 87.5%
m = median(X[X > m]) # 93.75%
m = median(X[X > m]) # 96.875%
m = median(X[X > m]) # 98.4375%
m = median(X[X > m])
m = median(X[X > m])
m = median(X[X > m])
m = median(X[X > m])
mh = float(m) if isfinite(m) else float(max(X))
print "m2"