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