CSE4227 Solns Chapter10
CSE4227 Solns Chapter10
Origin42
Enigma41
Non-Maximum Suppression:
This step aims at reducing the duplicate merging pixels along the edges to make them uneven.
For each pixel find two neighbors in the positive and negative gradient directions, supposing
that each neighbor occupies the angle of pi/4, and 0 is the direction straight to the right. If the
magnitude of the current pixel is greater than the magnitude of the neighbors, nothing changes,
otherwise, the magnitude of the current pixel is set to zero.
False Positive: If the threshold is set too low, there will still be some false edge which is called
false positive.
False Negative: If the threshold is set too high, then actual valid edge points will be eliminated
which is called false negative.
m = tan theta = -1
=> theta = arctan(-1) = -45 degrees
Region Growing: In this technique, a starting pixel is selected and is grown by adding adjacent pixels
that have values very close to it and leaving the rest.
Region Splitting & Merging: In this technique, the image starts as a single region and then
subdivided into regions until a condition is satisfied. Then, the adjacent regions are merged if that
condition is satisfied.
3.a. Solution:
ch3
3.b. Solution:
2.a. Solution:
given
Prototype39
2.
Solution:
(i)
Limitations of this algorithm is that it does not work for vertical lines i.e. lines that are parallel to
the y-axis.
(ii)
The equation of line is, y = mx + c.
To perform Hough transform we need to convert image space (x, y) to parameter space (m, c).
So, y = mx + c => c = -mx + y
(ii)
False Positive: If the threshold is set too low, there will still be some false edge which is called
false positive.
False Negative: If the threshold is set too high, then actual valid edge points will be eliminated
which is called false negative.
Return38
1.
6.
Solution:
COREi36
5.
Solution:
Solution: 024
SOBEL OPERATOR ULTA NEYA HOISE
Position (2, 2) pixel values,
1 2 3
1 4 6 1
2 7 2 5
3 0 6 2
7 2 5 X 0 0 0 = 0 0 0
0 6 2 1 2 1 0 12 2
Gx = -4-12-1+0+0+0+0+12+2 = -3
7 2 5 X -2 0 2 = -14 0 10
0 6 2 -1 0 1 0 0 2
Gy = -4+0+1-14+0+10+0+0+2 = -5
G = |Gx| + |Gy| = 8
Theta = tan-1(Gy/Gx) = 59.036
4.
Solution:
Solution:
Solution:
Assuming 0 padding,
203 34 59
150 0 200
37 0 23
🔗 Part A