In case the input type is not one of these, the conversion used to fail due to inability to instantiate an ImagePlus of the requested type. To solve this, the converter now maps other types to these supported types. It also validates if the output type can indeed store all data values and fails if it's not possible (for example, int64 needs to be saved as GRAY16).
ImagePlus
supports only three types:In case the input type is not one of these, the conversion used to fail due to inability to instantiate an
ImagePlus
of the requested type. To solve this, the converter now maps other types to these supported types. It also validates if the output type can indeed store all data values and fails if it's not possible (for example, int64 needs to be saved as GRAY16).