Professional Documents
Culture Documents
Image Processing
What is an image ?
Discrete representation of data Both spatial (layout) and intensity (color) information
Binary images: 2D arrays with each pixel having value 0 or 1. Intensity or gray scale images: 2D arrays with each pixel having numerical value representing intensity at that point RGB images: 2D arrays with each pixel three numerical values corresponding to red, green and blue channels
imread( ) imwrite( ) imshow( ) imfinfo( ) Showing multiple images subplot RGB value display Set pixel value to 1
rgb2gray( ) R, G and B channels extract imadd( ) imsubtract( ) imabsdiff( ) immultiply( ) imdivide( ) Multiplying or dividing images by each other does not make sense
Other operations
imcomplement( ) im2bw( ) Thresholding in binary conversion imhist( ) graythresh( ) imnoise( ) salt and pepper, gaussian
Morphological processing
Morphological processing
Morphological processing
Structuring element
Morphological processing
Erosion: Center pixel of structuring element placed on each foreground pixel. If any of neighboring pixels are background, center pixel is switched.
Morphological processing