IMAGE PROCESSING USING MATLAB

%Matlab code for read  and display an image

a=imread(‘cameraman.tif’); % function to read a default  image in matlab

imshow(a); % Function to display an image

title(‘original image’);

[m n]=size(a);  %Size of row of an image stored in variable m and size of column of the image stored in variable.

%Matlab Code to read a color Image

a=imread(‘peppers.png’);  % Read a default color image present in the software

figure; %open a new figure window

b=rgb2gray(a);   % Convert the RGB color image into Gray scale image

figure;

imshow(b);

%For separating the color components of an image we have to use the following code :

R=a(:,:,1);           % Separate the Red  component of the  color image

G=a(:,:,2);           %Separate the Green component of a color image

B=a(:,:,3);           %Separate the Blue  component of a color image

imshow(R);         % Display  the Red Component of  the color image



Matlab code for Combining Red ,Green,Blue  Components to form a RGB image

bb(:,:,1)=R;

bb(:,:,2)=G;

bb(:,:,3)=B;

figure;

imshow(bb);


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *