This post is about how to generate a pseudo color image from a grey scale image.
1.) You have to read the grey scale image (e.g. a bitmap or jpeg) with the function imgIn = imread('ImageName.bmp').
2.) Then convert the image to double with imgD = im2double(img).
3.) Call the function hPCImg = pcolor(imgD).
4.) Remove the Edges with set(hPCImg, 'EdgeColor', 'none')
5.) Set the colormap, e.g. colormap( jet(8) )) for a view with 8 different color.
Thursday, 4 March 2010
Subscribe to:
Post Comments (Atom)
Herzlichen Dank Frau S. Schmitt;-)
ReplyDeleteWenn ich in Köln bin gibts dafür ein großes Kölsch!
LG
Kirstin