Review Problems for Midterm Examination: CS474/674
1. Draw a piecewise linear transformation that takes [0,39] to 0,
[40,200] to [0,255] and [201, 255] to 255.
2. How can the contrast of an image that does not use the full range of
the gray scale be increased withXView or LView Pro or Matlab? Give
complete directions.
3. If we wanted high compression to yield a much smaller image file, and the
image consisted of smooth changes such as a photograph rather than sharp
lines, what format should we use to save an image? What are its
advantages and disadvantages?
4. If we wanted to compress an image but wanted to keep the same level of
detail, what formats could we use for saving an image?
5. What determines the resolution of an image when a very high resolution
image is scanned into digital form with diodes of lower resolution? What
does the value of each pixel represent in terms of the original high
resolution image?
6. If we use 8-bits for each pixel value for a color image, then what
do the pixel values represent in terms of R, G and B values for the
color guns for displaying the image on a video monitor?
7. Why is it so convenient to process gray scale images in the PGM format?
8. What does a histogram of a gray scale image tell us about an image that
has a bad distribution of gray levels? Explain.
9. What is the purpose of histogram equalization? Explain.
10. Suppose that you want to use LView Pro to filter an image with a
convolution mask. Describe how to do it, once the image is loaded
into LView Pro's workspace.
11. What is the JPEG image format good for? When should it not be used?
12. Derive a mask for unsharp masking by adding two masks and give the
purpose of each of the two masks.
13. Design a 5x5 mask that detects edge pixels going in a diagonal
direction from the lower left to the upper right (but not in the
opposite direction).
14. Design a 5x5 mask that will detect edge or line pixels moving in
either direction along a line from the upper right to the lower
left corners.
15. Draw a 3x3 mask and a 3x3 nbhd of a pixel. Give the mathematical
equation for the mask convolution of these two 3x3 blocks.
16. Design an algorithm that smooths pixels that have very different
values compared to the average value of the other nbhd pixels, but
does not change the pixel value if it is not sufficiently different.
17. Design a blurring mask that blurs moderately but not strongly.
18. Suppose we want to use the Laplacian convolution mask on an image
(all values are -1 except for the value 8 in the center). What could
we do to the image first to help keep it from accentuating the noise
so much?
19. Describe how to do unsharp masking on the image "shuttle.pgm" by
use of either the tool LView Pro or Matlab. Give the
mask used.
20. If we load a PGM image into a text editor, how can we tell if it
is in packed format or not?
21. Draw a thresholding graph for a transformation that will segment
an image into regions of 5 separate gray scales.
22. Describe an algorithm in psuedo-code that will do the thresholding
of an image into 5 separate gray levels (show only the critical
part where the thresholding is done).
23. Describe an algorithm that selects a pixel at random, and then
grows a connected region around it consisting of all pixel values
that are quite close to its value.
24. In Problem 23 above, what would cause the region to quit growing?
25. Write the pseudo-code for an algorithm that examines each pixel
in an image and computes the 8 differences from it of the other
8 pixels in its 3x3 nbhd. If the average difference magnitude is
greater than 12, then change output center pixel value to have a
greater difference, else put the output center pixel value to be
equal to the average value of the nbhd.
26. Does the process in Problem 25 above smooth or sharpen an image,
or what?
27. What is the net result if an image is converted to its negative
and then added to the original image (addition is on each pixel)?
28. What is the net result if an image is added to itself and truncated
so that the output sum pixel values are truncated to [0, 255]?
29. Give examples of 3x3 convolution masks that smooth and sharpen.
30. Give examples of 3x3 convolution masks that detect edges moving
along horizontal and vertical lines, moving left or right, or
moving up or down (both directions on each line). Give an example
of a mask that will detect edges in all directions (there are 8
directions, total).