MATLAB provides very powerful tools to work with graphics and image files, as well as for manipulating sounds, audio, and video files. This chapter deals with different topics related to image processing. At the beginning, I present the types of images. That is followed by discussions on converting image types and formats, operations on images, image enhancement, image restoration, color processing, image segmentation, and mathematical morphology.
Image Types
In MATLAB, most images are represented by two-dimensional matrices. In a matrix, every element corresponds to a pixel. If an image is composed of