Friday, May 5, 2017

Image processing with Matlab : (1) (Read,Size,Display,Write,Clear)

  Basic image processing functions:  
  • Read an Image : imread() 
The 'imread()' command will read an image into a matrix:
example:
 img = imread(abc.jpg); 


  • Size of an Image :  size() 

example:    size(img) 
It's a 340x650 matrix with 3 RGB channels.


  • Display a image : imshow()
To show our image, we will use imshow() command.
example :   imshow(img) 

  • Export an Image : imwrite()

imwrite(img,'s.png','png');



  • Clear the 'command window' in MATLAB?
we can clear our MATLAB's 'command window' by using this command

 clc 

No comments:

Post a Comment