Convert an image to another datatype with optional scaling.
First overload stores the resulting image into destination object. It returns the destination image.
Second overload updates the current image. It returns itself.
Parameter
Description
dest
Container used to store results
scale
Scale factor (1.0 = no scale)
shift
Delta added to the scaled values
channelFormat
Used to change the channel format
Note: You should allocate the destination image to the same size as the source image