Need a explanation for the matlab code snippet
Posted
by Mask
on Stack Overflow
See other posts from Stack Overflow
or by Mask
Published on 2010-04-08T17:02:18Z
Indexed on
2010/04/08
17:03 UTC
Read the original article
Hit count: 322
matlab
|image-manipulation
%# load a grayscale image
img = imread('coins.png');
%# display the image
figure
imshow(img,[]);
%# false-color
colormap('hot')
The above code is from here:
http://stackoverflow.com/questions/2592755/infrared-image-processing-in-matlab/2592793#2592793
But I don't understand how figure
(What's the difference with/without it?) and colormap
(How does it affect the already shown img?) work?
© Stack Overflow or respective owner