If the raster accessor decides to expand the data it might do so using a data type other than the source one, in particular, MultiPixelPackedSampleModel is always expanded towards integers.
The code should not check the source image data type, but the accessor data types, to decide which loop to use.
If the raster accessor decides to expand the data it might do so using a data type other than the source one, in particular, MultiPixelPackedSampleModel is always expanded towards integers. The code should not check the source image data type, but the accessor data types, to decide which loop to use.