Matlab - Image Manipulation                                                      Home : www.sharetechnote.com

 

 

 

Basic Commands

    imread(filename)

    rgb2gray(imgMatrix)

    imshow(imgMatrix)

 

Examples

 

Example 1 >

    img=imread('Lena.png');

    imshow(img);

     

 

Example 2 >

    img=imread('Lena.png');

    imgBW = rgb2gray(img);

    imshow(imgBW);