im2uint8 - Convert image to 8-bit unsigned integers
im2uint8 convert intensity or RGB images to 8-bit unsigned integers. If the input is of class uint8, the output image is identical to it. Otherwise, im2uint8 rescales or offsets the data, and returns the equivalent image of class uint8.
im2bw, im2int8, im2uint16, im2int16, im2int32, im2double, mat2gray,