Login  Register

Convert matrix to colormap

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

Convert matrix to colormap

alex1604
1 post
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
| More
Print post
Permalink

Re: Convert matrix to colormap

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