mat2gray
Convert matrix to grayscale image
Description
converts the matrixI
= mat2gray(A
,[amin amax]
)A
to a grayscale imageI
包含值range 0 (black) to 1 (white).amin
andamax
are the values inA
that correspond to 0 and 1 inI
. Values less thanamin
are clipped to 0, and values greater thanamax
are clipped to 1.