Вопрос

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?

Это было полезно?

Решение

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.

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top