Image Processing Toolbox
Image Processing Toolbox
● Reading an image from file● Main data classes used for image
representation and conversion between them● Image Display● Explore content of an image● Save image
imfinfo('tiger.jpg')
Reading and showing an image
Image Data Classes
● Most common data classes for images
– uint8: 1 byte per pixel, in the [0, 255] range
– double: 8 bytes per pixel, usually in the [0.0, 1.0] range
– logical: 1 byte per pixel, representing its value as true (1 or white) or false (0 or black)
Conversion between classes
im2singleim2doubleim2uint8im2uint16im2int16im2bwmat2gray
ind2graygray2indrgb2grayrgb2indind2rgb
Image conversion
vsType
conversion
Image Display Functions
imageimagescimshowimtool
imshow(...)
imtool(...)
imwrite(...)
Homework
● Problems in the end of Chapter 4 of textbook● Tutorials of Chapter 4
References
● Practical Image and Video Processing using Matlab, Oge Marques, 2011, Chapter 4