The return value is the new image buffer. This routine transfers one image into another, converting the sample type of the input image to that of the output image in the process. The images must be the same size. No range clamping is performed, so overflow errors are possible when converting from a larger to a smaller sample type. The return value is the output image buffer.
Appropriate range clamping is performed when using byte or short-sampled images.
The rest of the arguments are the same as before. It remaps the pixel values in the input image and places the result in the output image. For example, to remap all pixels which have the value 3 to have the new value 159, remapaddr should have the value 159 at index 3. You can create this array using the utilities in the memory manipulation library. The return value in all cases is the output image buffer.