Docsity

Image Processing: Manipulating RGB Planes in MATLAB, Slides of Computer Science

Partial preview of the text

Download Image Processing: Manipulating RGB Planes in MATLAB and more Slides Computer Science in PDF only on Docsity!

Loading an image:

a = imread(‘picture.jpg’);

imshow(a);

Image (=matrix) size:

size(a): 384 512 3

R G B 384 512

Show RED plane: a(:,:,2:3) = 0; imshow(a);

Show GREEN plane: a(:,:,[1 3]) = 0; imshow(a);

Advanced: Shuffling columns

rn = rand(1,512); [rn1,i] = sort(rn); b = a(:,i,:); imshow(b);