Need help in analyzing image planes
Show older comments
% CODE 1
% Read RGB image
x = imread('Lena.jpg');
rPlane = x(:,:,1);
imshow(rPlane) % Displays Red Plane in Lena.jpg image
%%%%%
% CODE 2
y = imread('Lena.jpg');
y(:,:,2) = 0;
y(:,:,3) = 0;
imshow(y);
% I need to know about this displayed
% image 'y' with 'G' and 'B' planes all zeros
Accepted Answer
More Answers (0)
Categories
Find more on Red in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!