1

I run

imagesc(real(lena))
colormap(hsv)

where lena is a picture in 512x512 pixels.

I would like to get the special red-green-blue colormap like here discussed. A picture processed by it:

enter image description here

How can you get such a colors by the command colormap?

Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
  • 1
    If there aren't any predefined colour maps that you like, it's pretty easy to make your own: http://stackoverflow.com/questions/17230837/how-to-create-a-custom-colormap-programatically/17232355#17232355 – Dan Oct 21 '13 at 11:46
  • 1
    @Dan just tried the colormapeditor and was very happy to find such a nice tool. Thanks for the link! – Lucius II. Oct 21 '13 at 11:56

2 Answers2

1

Use colormap bone to get this gray-ish blue-ish tones for your medical images.
Here's an example of this colormap taken from Mathworks:

See manual for more examples and pre-defined color maps.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Shai
  • 111,146
  • 38
  • 238
  • 371
0

Note that the paper describes a way to combine two images, it does not use a color map.

If a is the gray-scale normal MRI image, and b is the gray-scale contrast-enhanced MRI image, the paper proposes to use cat(3,a,b,a) as an RGB image, where contrast-enhancement appears as a green overlay. What that statement does is use the normal image as the red and blue channel, and the contrast-enhanced image as the green channel.

Cris Luengo
  • 55,762
  • 10
  • 62
  • 120