Derivatives & Edges Flashcards
How do you calculate the 1st derivative?
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 do you calculate the 2nd derivative?
(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.
Give some examples of 1st derivative filters?
Roberts’ Cross Operators
Sobel Operators
What are the 4 different steps when enhancing edges?
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 can you enhance edges using derivative filters, and which one is better at it?
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
What are the benefits of using a Laplacian?
Isotropic
One of the simplest image sharpening filters
Straightforward digital implementation via convolution
What is the Laplacian’s grid made up of?
3x3
Top Row - 0, 1, 0
Middle Row - 1, -4, 1
Bottom Row - 0, 1, 0
What is the aim when using a Laplacian?
Highlights edges and other discontinuities
What can you do with a Laplacian to produce a sharpened image?
Subtract the Laplacian result from the original image to generate the final sharpened enhanced image
What does single operator mean with regards to image enhancement?
Using a single operator with convolution performs image sharpening in a single step
What is the goal of edge detection?
Mark points at which image intensity changes sharply, which are edges of objects.
How do you detect edges (theory)?
To detect edges, you find peaks in the 1st derivative of intensity or zero-crossings in the 2nd derivative
How can you combine edge detection with thresholding?
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.
What are the properties of Roberts’ Cross Operator?
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
What are the differences between Roberts’ Cross and Sobel?
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