mat2gray
Convert matrix to grayscale image
Description
converts the matrix I
= mat2gray(A
,[amin amax]
)A
to a grayscale image
I
that contains values in the range 0 (black) to 1 (white).
amin
and amax
are the values in
A
that correspond to 0 and 1 in I
.
Values less than amin
are clipped to 0, and values greater than
amax
are clipped to 1.