Firstly, to read an image to Matlab:
>>image = imread('imagename.jpg');
and to display the image loaded to the Matlab:
>>figure,imshow(image)
for color image, the image will be store in 3 array which is R, G, B.
we can show this RGB in 3 different image but must define the array first,
Red_Array = image (:,:,1);
Green_Array = image (:,:,2);
Blue_Array = image (:,:,3);
to display,
>>figureR,imshow(Red_Array)
>>figureG,imshow(Green_Array)
>>figureB,imshow(Blue_Array)
that all for today.
Wednesday, December 16, 2009
Monday, December 14, 2009
Subscribe to:
Posts (Atom)