
Histogram Processing É 383
Time for Practice 13.2
Pick a grayscale image, say “cameraman.tif”. Using the imwrite function, write it to files of
type JPEG, PNG, and BMP. What are the sizes of those files?
13.2 Histogram Processing
13.2.1 Creating and Displaying Image Histogram
A grayscale image consists of pixels of various intensities. One might ask the question, how
many pixels of this image fall in the intensity range x to y? What is the intensity range into
which the maximum numbers of pixels in this image fall? These questions can be answered
if one has a plot depicting the intensity range on x-axis and the number of pixels of the image
in that ...