The ISIS project aims to provide a framework to access a large variety of image processing libraries written in different programming languages and environments.
aborts with the Assertion "minval < maxval" failing in isis::data::getNumericScaling.
This is actually more troublesome than it might look like. (And a little bit embarrassing - shame on me)
We need minval to be less than maxval to calculate the scaling. And we need the scaling, to make sure the data will fit into the target type (even if there is only one distinct value).
Calling isisconv at any image with only one value (mostly considered "empty" :-) ) and a scaling conversion into another type is done, it will crash.
Example:
aborts with the Assertion "minval < maxval" failing in
isis::data::getNumericScaling
.This is actually more troublesome than it might look like. (And a little bit embarrassing - shame on me)
We need minval to be less than maxval to calculate the scaling. And we need the scaling, to make sure the data will fit into the target type (even if there is only one distinct value).