Reference no: EM132169204
Using the imfinfo function for some selected image (page 22).
(a) what is the height and width in pixels?,
(b) what is the color type?
(c) how many levels does each pixel have?
(d) was any compression used?
Define the image as a matrix a using the imread function.
Create images by dividing the pixel level by 2 and 4, e.g., a4 = a/4;, then imshow(a4); or alternatively just imshow(a/4);
Create images by multiplying the image pixel level by 2 and 4.
Explain why the picture looks underexposed in the first instance, and overexposed in the second instance.
Create a binary image of with a threshold value of 120 (see pages 28/29).
Create the eight bitplane images (0 through 7) as per Figure 1.27 for the camera man. Explain what these images are. Note that in the example on pages 30/31, the matrix representing the image has been first converted to ‘double' precision, i.e., each pixel is represented by two bytes, instead of the normal one byte.