im2uint8
Convert image to 8-bit unsigned integers
Description
converts the grayscale, RGB, or binary image J = im2uint8(I)I to data type
uint8, rescaling or offsetting the data as
necessary.
If the input image is of data type uint8, then the output
image is identical. If the input image is of data type
logical, then the im2uint8 function
changes true-valued elements to 255.