Midterm782 2003
Midterm782 2003
1. The diagram at the right contains several curves that could be used
to transform the brightness values of a monochrome image by the
operation B = T [A] where A and B are image arrays. Shown below
are four pairs of histograms. Identify the transformation curve best
associated with each pair and write the letter in the space in the
center column.
(a) Shown below are two tables with expressions that relate to binary morphological image processing. Associate each
expression in the left table with one from the right table.
(b) A well-known morphological algorithm uses the following iteration with a structuring element B.
An original set A is shown in (A) and an initial pixel p ∈ A is shown in (B). The result after one iteration of the
algorithm with structuring element
0 1 0
B= 1 1 1
0 1 0
is shown in (C).
Fill in the result of the next two iterations by marking the appropriate pixels for the set Y in (D) and (E).
In frame (F) show the result for Y that would be reached after a large number of iterations.
4. A certain inspection application gathers black &
white images of parts as they travel along a con-
veyor belt. It is necessary to sort the parts into
two categories: parts with holes and parts with-
out holes. An example of an image that might be
taken by the inspection camera is shown at the
right.
A=Read_Image(fname,rr,gg,bb)
sa=Size(A,/dimensions)
Window,1,xsize=sa[0],ysize=sa[1]
Device,Decomposed=0
TVLCT,rr,gg,bb
TV,A
(a) A person wants to see the image as a grayscale display, and does the following:
Device,Decomposed=0
Loadct,0
TV,B
(b) Another person wants to display the image in color using a true color display. Devise a method to use the available
information to construct an array C that will display correctly in true color when the following commands are
issued.