Edge Detection and Convolution - Lecture 5 - Week 2 Flashcards

1
Q

What three factors that cause edges to appear in images?

A

Depth discontinuity
Surface colour discontinuity
Illumination discontinuity

Represented as a rapid change in the image intensity function

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

In the 1D example what kernel is used to get the first derivative?

A

0, 0, 0, -1, 1, 0, 0, 0

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

In the 1D example what kernel is used to get the second derivative?

A

0, 0, 0, 1, -2, 1, 0, 0, 0

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

What is the problem with using convolution to get the derivative?

A

It amplifies noise, which means that the derivative ends up a complete mess

The solution is to smooth first, e.g. with a gaussian kernel

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

Why is d/dx(If) = I(df/dx)

A

Because differentiation is a convolution and convolutions are associative

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

What is the Prewitt kernel?

A

Detecting in x-direction (vertical edges)
-1 0 1
-1 0 1
-1 0 1

Detecting in y-direction (horizontal edges)
-1 -1 -1
0 0 0
1 1 1

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

What is the sobel kernel?

A

Detecting in x-direction (vertical edges)
-1 0 1
-2 0 2
-1 0 1

Detecting in y-direction (horizontal edges)
-1 -2 -1
0 0 0
1 2 1

Apply both filters for I’x and I’y
Edge magnitude |I| = sqrt(I’x^2 + I’y^2) (euclidean distance between pixels)

Edge direction = tan^-1(I’y/I’x)

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

What detector is the most widely used “simple” edge detector?

A

Sobel

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

In what direction does the image gradient point?

A

The direction of most rapid increase in intensity

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

How is the edge strength of a pixel calculated?

A

Using the euclidean distance between its x and y derivative

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

How can some kernels be made more efficient?

A

If they are decomposable, say for
-1 0 1
-2 0 2
-1 0 1
Can be decomposed to
1
2 -1 0 1
1

Processing a 1xn then a nx1 kernel is computationally cheaper than an nxn one

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

Are gaussian kernels decomposable?

A

Yes

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

What is gaussian weighting?

A

Normal distribution
Spread controlled by sigma

G(x,y) = e^-[(x^2+y^2)/2sigma^2]

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

Is scale important in edge detection?

A

Edge filters enhance noise, edges exist at many different scales, what scales matter depend on application
Need to incorporate scale into edge detection
Gaussian gives scale & smoothing separable filter

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

At what point does the gaussian approximate 0

A

beyond 3sigma

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

What properties of gaussian are good?

A

Anti-aliasing
It’s separable

17
Q

Why does scale selection help?

A

Fine-scale edges may be just “noise” (irrelevant small-scale structure)

Detection of edges at larger scales is more reliable because there is less confusing detail

Location of edges at coarse scale can direct the search for finer-scale edges. Faster and more robust.

18
Q

What is the canny edge detector?

A

Gaussian smoothing to select scale
Edge Detection
- Differencing convolution or convolve with derivative of Gaussian
- Edge magnitude and direction

19
Q

What is the 2D laplacian kernel?

A

Second derivative kernel
Negative centre, positive surround

Isotropic response (invariant in regards to direction)
- One filter
- No edge direction
- Indirect edge magnitude

20
Q

What is the laplacian of the gaussian?

A

Second derivative of the 2D gaussian

21
Q

What is the Marr-Hildreth Edge Detector?

A

Second derivative of 2D gaussian / laplacian of the gaussian