$24
Consider the Circles image, which is centered at (101, 101) and the radii are 20, 40, 60 and 80 pixels. Use an edge detector performance measure, EP; where means that there is an edge found on the ground-truth location, and signifies that the edge experimental is offset by at most two pixels from the corresponding ground-truth edge location. is the number of ground-truth edge pixels:
EP=
a) Compare the performances of the (a) Sobel, (b) Laplacian of Gaussian (LoG), (c) Canny edge detectors.
b) Add Gaussian noise N(0, 484) to the Circles image and compare edge detectors
Edge Linking and Completion
Consider the Building image:
a) Filter the image with a small Gaussian filter, e.g., = 1. Find the gradient field and obtain its histogram. Establish the 95, 80 and 70 percentile points for high-thresholding and two low-thresholding cases, respectively.
b) Find first the edge candidates using the high-threshold, which will hopefully yield strong edges.
c) Use low-thresholding output to continue these edges, that is, apply hysteresis thresholding to connect the edges. Simply continue edges in the high-threshold image if there are overlapping or 8-neighbor edges in the low-threshold image. Discard all other low-threshold edge candidates (Read the textbook!).
Note: The resulting edges are thick. Normally you would have followed the step above with a thinning algorithms, e.g., using some morphological operator.
Segmentation by Region Growing:
Consider the Berkeley_Deer image. The original contour images and their contour maps are given. You can access the ground-truth boundary images by using the following Matlab codes.
load 113016
ground1=groundTruth{1,1}.Boundaries;
figure,imshow(ground1)
ground1=groundTruth{1,2}.Boundaries;
figure,imshow(ground1)
Use the simpler boundary map.
a) Use seeded region growing on these images; in other words, you plant region seeds appropriately, say two on the background, one on the deer. Label each seed with a different (positive) number (this will be the label of the corresponding regions). Apply the procedure to Berkeley_deer image for N=3.
b) Centroidal growing: Let the regions grow according to the color predicate. For each unlabeled pixel p, use Euclidean distance from the test pixel to the region centroid. The distance must be compared with the threshold Th. The centroid is simply the average of the region pixels, that is, , where is the cardinal of Reg, the number of pixels in a region at that stage of growth and the predicate is: . If the pixel does not satisfy the predicate, then leave p unlabeled.
c) Recursively repeat b) until no change occurs in the labels (i.e. regions do not grow further).
d) Use the threshold Th = Th + t, repeat b-c until no pixels are left unlabeled. You have to decide for the threshold: Try thresholds starting with Th = 10 and t = 10
e) Finally, compare the resulting segmentation map with the ground truth map. One goodness criterion could be (G: ground-truth region set, S: segmented region set) , one for each region. For example, obtain the goodness of segmentation score for the raindeer.
Segmentation by Clustering:
Consider the Gauss_rgb1 128x128 image painted by three noisy color tones. Try the two feature vectors: and , where (x,y) are the relative coordinates vis-à-vis the image center, and are the respective variances computed from a 3x3 neighborhood, e.g., .
• Randomly select C seed points from the image within what you judge to be a potential segment, consider their intensity values as the initial region centroids (means) n=1,2,…C.
• Label each pixel in the image with the index of the center to which it is closer to:
▪ ), where L = 1, ... C is the label of the pixel at coordinates (i,j)
• Compute new means M(c) from the intensity values of the pixels labeled with L = c, for each one of the segments.
• Repeat (ii) and (iii) until M(c)’s start to remain constant, e.g., or
a) Obtain the image , which is the segmented image and plot it.
b) To compare the resulting segmentation map with the ground truth map, use the goodness criterion , where G: ground-truth region set, S: segmented region set, for each region. The weighted sum of g scores, where the weight is the percentage of the ground truth area, is the goodness score for the whole image.
c) Compare the performances of the two feature vectors. How much improvement does the choice of the f2 feature vector bring with respect to f1?