You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the document , the normalization seems not correct.
extrema = [im.getextrema() for im in rgbf]
darkest = min([lo for (lo,hi) in extrema])
lighest = max([hi for (lo,hi) in extrema])
scale = 255 / (lighest - darkest)
def normalize_0_255(v):
return (v * scale) + darkest
rgb8 = [im.point(normalize_0_255).convert("L") for im in rgbf]
it might be
extrema = [im.getextrema() for im in rgbf]
darkest = min([lo for (lo,hi) in extrema])
lighest = max([hi for (lo,hi) in extrema])
scale = 255 / (lighest - darkest)
def normalize_0_255(v):
return (v - darkest) * scale
rgb8 = [im.point(normalize_0_255).convert("L") for im in rgbf]
I am not sure whether it is a bug. If not, I feel sorry to bother you.
Best,
The text was updated successfully, but these errors were encountered:
The python "OpenEXR" module, and its documentation, is not part of this OpenEXR project: it is an independent effort. You could follow up with the developers here: https://pypi.org/project/OpenEXR/
For what it's worth, I agree with you that your proposed normalization seems more correct (issue #421 also discusses normalization of OpenEXR images)
Hi,
In the document , the normalization seems not correct.
it might be
I am not sure whether it is a bug. If not, I feel sorry to bother you.
Best,
The text was updated successfully, but these errors were encountered: