Wrong min/max and Crash in dynamic settings widget when opening an image with all pixels equal to zero
Mantis Issue 674, reported by mgrizonnet, assigned to msavinaud, created: 2013-03-11
Image in cc got 1 band (tiff format ; pixel type: uchar) with all pixels equal to zero.
In the Dynamic settings widget, at opening we've got "Min value" = "Max value" =-340282346638528859811704183484516925440
Clicking on Min/Max button triggers a core dump of the application.
Dynamics value in the xml values are all equal to 'nan'.
Something is wrong in the histogram building when min=max=0.
Note that the problem does not occurred if min=max=1 for example.
1401179612 - mickaelThe MVD2 application provide a clear message when we try to import an image with all its value to zero.
1429262644 - julienClosing resolved bugs.