Login  Register

Re: Convert matrix to colormap

Posted by Jameswalter on Apr 14, 2023; 8:59am
URL: http://imagej.273.s1.nabble.com/Convert-matrix-to-colormap-tp5009606p5024870.html

I = mat2gray( A , [amin amax] ) converts the matrix 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.