You have no items in your shopping cart.

Subtotal:Rs.0.00
Matlab Tips and Tracks

Matlab Code for Displaying Red,Green and Blue Component of an Colour Image

matlab-code-for-displaying-redgreen-and-blue-component-of-an-colour-image

Matlab Code for Displaying Red,Green and Blue Component of an Colour Image

 

 %Simulation Results

%Read Input Image

a=imread('flowers.tif');

%Display  Input Image

subplot(2,2,1); imshow(a);

R=a;

G=a;

B=a;

R(:,:,2:3)=0;

%RED Component

subplot(2,2,2);imshow(R);

G(:,:,1)=0;

G(:,:,3)=0;

%GREEN Component

subplot(2,2,3);imshow(G);

B(:,:,1)=0;

B(:,:,2)=0;

%BLUE Component

subplot(2,2,4);imshow(B);
matlab-code-for-seperating-red-component

 

Tags : matlab code for image processingmatlab code for seperating red component
Pantech

The author Pantech