kidanger / vpv

Image viewer for image processing experts
GNU General Public License v3.0
125 stars 18 forks source link

alt-a is scared of nans #38

Closed chlsl closed 5 years ago

chlsl commented 5 years ago

The attached image is a tif with floating point data containing a lot of nans. As I wanted to automatically adjust the contrast of this image with alt-a, I was surprised to get a full black image, even after cycling with more alt-a (the displayed range was consistently 3.4e+38..-3.4e+38). Shift-a handles them nicely though. Get the image at: https://www.dropbox.com/s/qlg4thnlpbejkl2/test_image.tif?dl=0

kidanger commented 5 years ago

Fixed in 2eb5bc6d6983a62c966ae4d9548fc0e6d7947a69. Thanks for the bug report!

chlsl commented 5 years ago

It works like a charm now. Thanks for the fix!