P. 1
jevin

jevin

|Views: 0|Likes:

More info:

Published by: Binesh Ellupurayil Balachandran on Aug 14, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

04/16/2013

pdf

text

original

1)Convert label matrix into RGB image I = imread('rice.

png'); figure, imshow(I) 2)Convert grayscale image to indexed image using multilevel thresholding I = imread('snowflakes.png'); X = grayslice(I,16); imshow(I) figure, imshow(X,jet(16)) 3)Convert image to Java buffered image I = imread('moon.tif'); javaImage = im2java2d(I); frame = javax.swing.JFrame; icon = javax.swing.ImageIcon(javaImage); label = javax.swing.JLabel(icon); frame.getContentPane.add(label); frame.pack frame.show 4)Convert an RGB image to a grayscale image I = imread('board.tif'); J = rgb2gray(I); figure, imshow(I), figure, imshow(J); 5)Convert the colormap to a grayscale colormap. [X,map] = imread('trees.tif'); gmap = rgb2gray(map); figure, imshow(X,map), figure, imshow(X,gmap);

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->