Need help in analyzing image planes
Ältere Kommentare anzeigen
% 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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Red finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!