Derivatives & Edges Flashcards

1
Q

How do you calculate the 1st derivative?

A

First derivative can be calculated by taking the 2nd value - 1st value in the raw data e.g. 5 is the 1st, 4 is the 2nd, so 1st derivative would be -1.
Can also be approximated by (2nd value - 1st value)*2

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

How do you calculate the 2nd derivative?

A

(Value before number + value after number) - 2(current value)
Also can be derived by estimating the 1st derivative at x + 0.5 and x-0.5 and computing the derivative of the resulting area.

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

Give some examples of 1st derivative filters?

A

Roberts’ Cross Operators
Sobel Operators

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

What are the 4 different steps when enhancing edges?

A

Take the original image
Gaussian smooth it
Subtract the smoothed version from the original to make an unsharp mask
Add the mask to the original to make the edge appear more obvious

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

How can you enhance edges using derivative filters, and which one is better at it?

A

2nd Derivative is more useful for image enhancement than 1st derivative - stronger response to fine detail, and simpler implementation
Using derivatives, you can use a Laplacian

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

What are the benefits of using a Laplacian?

A

Isotropic
One of the simplest image sharpening filters
Straightforward digital implementation via convolution

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

What is the Laplacian’s grid made up of?

A

3x3
Top Row - 0, 1, 0
Middle Row - 1, -4, 1
Bottom Row - 0, 1, 0

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

What is the aim when using a Laplacian?

A

Highlights edges and other discontinuities

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

What can you do with a Laplacian to produce a sharpened image?

A

Subtract the Laplacian result from the original image to generate the final sharpened enhanced image

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

What does single operator mean with regards to image enhancement?

A

Using a single operator with convolution performs image sharpening in a single step

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

What is the goal of edge detection?

A

Mark points at which image intensity changes sharply, which are edges of objects.

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

How do you detect edges (theory)?

A

To detect edges, you find peaks in the 1st derivative of intensity or zero-crossings in the 2nd derivative

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

How can you combine edge detection with thresholding?

A

Significant peaks in magnitude of 1st derivative are high
Apply a threshold, all peaks higher than the threshold value are significant, all others are ignored.

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

What are the properties of Roberts’ Cross Operator?

A

Very quick to compute - 4 pixels, only subtractions and additions, but is very sensitive to noise and only gives a strong response to very sharp edges

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

What are the differences between Roberts’ Cross and Sobel?

A

Both use a user-supplied threshold, however, Sobel is still in use, but Roberts’ is less common.
Larger Sobel operators are also more stable in noise

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

What does Marr-Hildreth imply?

A

Gaussian smooth, compute Laplacian
OR
Convolve with the Laplacian of a Gaussian

17
Q

What does LoG and DoG mean?

A

LoG - Laplacian of Gaussian
DoG - Difference of Gaussians

18
Q

What are the differences and similarities between 1st Derivative and 2nd Derivative methods?

A

Peaks in 1st derivative:
Strong response at edges, but also responds to noise
Peak detection and threshold selection need care
Zero crossing in 2nd Derivative:
Well-defined, easy to detect
Must form smooth, connected contours
Tend to round off corners

1st Derivative methods are much more common in practical applications

19
Q

What does an optimal edge detector require to be optimal?

A

Good Detection - it should mark all the edges and only all the edges
Good localisation - the points marked should be as close to the real edge as possible
Minimal response - each edge should be reported only once

20
Q

What was the Canny operator made up of?

A

A sum of 4 exponential terms, but is very closely approximated by the 1st Derivative of a Gaussian i.e. 1st derivative of a Gaussian smoothed image
Gives a cleaner response to a noisy edge than square operators

21
Q

What is Non-Maximal Suppression?

A

Check if pixel is a local maximum along the gradient direction
Select a single maximum across the width of the edge

22
Q

What does the industry standard thresholding method contain?

A

Allows a band of variation, but assumes continuous edges
User still selects parameters, but its easier and less precise

23
Q

What is thresholding with hysteresis, and what does it aim to do?

A

The effect is to keep weak edges if they connect strong edges, as long as the strong edges are really strong, and the weak edges aren’t really weak.

24
Q

What was it that Canny had done?

A

Showed that 1st Derivative of a Gaussian smoothed image is the optimal way to detect step edges in noise - explained why 1st Derivates are a good idea
Designed the industry standard thresholding method - Non-Maximal suppression, and thresholding with Hysteresis
Effectively solved the edge detection problem