MatlabIntroduction_06
MatlabIntroduction_06
Digital Image
Processing I – 2006
Esin Guldogan
Matlab Basics
Workspace Variables
(memory)
Commands are
entered here
Command History
z Grayscale Image
(row x col)
z Binary Image
(row x col)
z Intensity Image
z RGB Image
(row X col X 3)
z Indexed Image
(2 matrices:
colormap and
index)
z The numbers in
the first matrix is
an instruction of
what number to
use in the color
map
z Adding
– ‘imadd’: Brighten an image
z Subtracting
– ‘imsubtract’
z Multiplying
– ‘immultiply’:
z Multiply two images
z multiply image by constant: brightens > 1, darkens < 1
z Dividing
– ‘imdivide’
16 Digital Image Processing I - 2006
Spatial Transformations
z Resizing
– ‘imresize’: changes the size of the image
z Rotation
– ‘imrotate’: rotates the image by given angle
z Cropping
– ‘imcrop’: Extract a rectangular part of the image