-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volumes with extremely large values cannot be displayed properly #6
Comments
Original Redmine Comment Actually I used solution 2 to fix #13582. Right now solution 2 would be enough I think: we are not using so huge double values, and using double allows to safely represent max-min for all float values. |
Original Redmine Comment Hm, in the case of your example image, solution 2 cannot work actually: even double precision cannot represent a difference between (-10+3e38)/3e38 and (+10+3e38)/3e38: both relative numbers are set to 1., and are actually equal. |
Author Name: Leprince, Yann (@ylep)
Original Redmine Issue: 13588, https://bioproj.extra.cea.fr/redmine/issues/13588
Original Date: 2015-10-20
Original Assignee: Riviere, Denis
Volumes with extremely large values (on the order of @1e37@, near @FLT_MAX@) cannot be displayed properly in Anatomist.
How to reproduce this bug:
The cause of this bug is that the bounds of the color map are handled internally as relative to the range [min, max] of values of the image. If max – min is too large, the scaling factor goes to zero, so the color map bounds cannot be represented. Fixing that bug is not trivial, here are a few possible solutions, in decreasing order of quality:
I personally think that we should rule out solution 3, because altering the images’ contents can confuse the users.
The text was updated successfully, but these errors were encountered: