Assignment-4 Segmentation
Assignment-4 Segmentation
Q(1) Apply Horizontal and Vertical line detection mask on the following image.
Use appropriate threshold value. Assume virtual Rows and Columns by
repeating border pixel values.
é 6 5 10 ù
F = êê 100 100 100úú
êë 4 20 10 úû
Q(2) Calculate the direction of edge at the center location of the image.
é 50 60 70 ù
F = êê 5 50 80 úú
êë 7 9 50 úû
Q(3) Assume that the edge in the gray level image starts in the first 1 6 5
row and ends in the last row. Find the cost of all possible edges 0 7 6
using the following cost function. Find the edge corresponding 3 1 7
to minimum cost path:
Cost( p,q)= Imax - | f(p) – f(q) | where Imax is the maximum intensity in
the image and f(p) and f(q) are pixel values at point p and q respectively.
Plot the Graph.
Q(4) For the image given below perform segmentation using Region Growing
by Pixel Aggregation. Choose appropriate threshold and seed points.
é7 5 6 4 5ù
ê7 4 5 7 4ú
ê ú
F = ê5 5 6 2 3ú
ê ú
ê0 3 1 0 4ú
ê
ë2 1 0 2 3ú
û
0
Q(5) Segment the following given image such that the difference between maximum
intensity value and minimum intensity value in the segmented region is less
than 30 using Split and Merge technique.
é 10 9 30 4 ù
ê 7 6 33 37 úú
R=ê
ê 51 52 54 53 ú
ê ú
ë 55 57 56 58 û