Edge detection Flashcards

1
Q

What is an edge in Computer Vision?

A

A place in the image where the pixel value changes sharply and has discontinuities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name two derivative filters

A

Prewitt ([1, 0, -1], [1, 0, -1], [1, 0, -1]) and

Sobel ([1, 0, -1], [2, 0, -2], [1, 0, -1]).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you calculate the gradient direction?

A

arctan(g_y, g_x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the Sobel filter as 2 1D filters

A

[1,2,1], smoothing and [1, 0, -1], derivative.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why do we use the derivate of Gaussians

A

To remove noise before derivation and detect structures at different scales.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does sigma affect the results when we take the derivative of Gaussians?

A

Larger sigma removes more noise and detects larger structures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the formula for the Laplacian?

A

Lap = d^2f/d^2x + d^2f/d^2y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why do we use the Guassian before laplacian (LoG)

A

The Laplacian is even more sensitive to noise than the derivatives.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the “Mexican hat” function

A

A flipped LOG (negative LoG)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name the three conditions Canny proposed for a good edge detector

A

1) Good detection; should detect all edges
2) Good localization; should detect edges where they are
3) A single response, should only detect edges where they are

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe Canny’s algorithm for edge detection

A

1) Gaussian filtering
2) Calculate gradient magnitude and direction
3) Perform non-maximum repression
4) Perform hysteresis thresholding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What its NMR, non-maximum repression in Canny’s?

A

For each pixel, we set the pixel to zero if it isn’t the maxima along the gradient direction in a neighborhood.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What its hysteresis thresholding in Canny’s?

A

Use two thresholds. The pixels above the upper threshold are always considered edges, pixels below the lower threshold are never considered edges.

Pixels between the thresholds are considered edges if they are connected to an edge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does the choice of sigma affect the found edges in Canny’s?

A

Small sima will detect small structures, large sigma will detect larger structures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can NMS be used in object detection?

A

If object regions have significant overlap only the strongest response is kept.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is data-driven edge detection

A

Training machine learning algorithms to detect edges

17
Q

What is the main disadvantage of data-driven edge detection?

A

It requires ground truth for all training data.

18
Q

Name one advantage of data-driven edge detection over Canny´s.

A

It can detect structures over several scales at once, while the scale for canny is determined by sigma.

19
Q

What is the double intercept form for a line?

A

x/a + y/b = 0, a is x-intercept, b is y-intercept.

20
Q

What is the normal form for a line

A

xcos(theta) + ysin(theta) = p

21
Q

What is the idea of hough-transform

A

We transform from the image space to parameter space (n,m or a,b or theta,p). The intercept points of lines in this space describe lines in the normal space.

22
Q

What is the main advantage of the normal form over the slope and double intercept forms?

A

theta is limited to [0, pi] while the other parameters might be in the range [-inf, inf].