Convert matrix to colormap

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert matrix to colormap

alex1604
Hey!

I'm an imageJ beginner and I was wondering if there is any possibility to convert a matrix to a colormap?
If so, how can I do it?

Thanks in advance,
Alex
Reply | Threaded
Open this post in threaded view
|

Re: Convert matrix to colormap

Jameswalter
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.