Feature detection, Harris corners Flashcards
Formula for Harris cornerness score
a = eigenvalue 1
b = eigenvalue 2
R=ab + k(a + b)^2
k is a constant [0.04 0.06]
ab ~ det(M)
a+b ~ tr(M)
R ~ det(M) + k(tr(M)^2)
Invariance
If we shift an image geometrically, rotate it, or change the brightness/intensity, the features should stay in the same spot
Equivariance
If we have two transformed versions of the same image, features should be detected in the corresponding location
Automatic scale selection method
Perform the feature detection metric at varying window sizes, pick the one that detects the most corners
Gaussian pyramid
Instead of computing the corners at different window sizes, we can compute the corners at a fixed window size with varying sized images
What kernel can we use instead of doing Harris corner detection
Laplacian of Gaussian kernel (LoG)
How can we pick the size of the LoG kernel
Make another Gaussian pyramid, dilute the results by picking the local maximum in the image plane AND image scale plane
What kernel can we use instead of the Laplacian of Gaussian kernel
Difference of Gaussians kernel (DoG)
What criteria do we have for feature description
Invariance - descriptor shouldn’t change if image is translated
Discriminability - Descriptor should be highly unique
How do we find the dominant orientation of a feature
Direction of smoothed gradient
MOPS (Multiscale Oriented Patches Descriptor)
- Take 40x40 window around feature
- Scale to 1/5 size
- Rotate to horizontal
- Sample 8x8 window centered at feature
- Normalize intensity
SIFT (Shift Invariant Feature Transform)
- Take 16x16 window around feature
- Compute edge orientation (angle against gradient) of each pixel
- Throw out weak edges (thresholding)
- Plot edges on histogram
Given a feature in I1, how do we match in with features in I2
Using some distance function, we find the ratio distance function defined by
|| f1 - f2 ||
—————-
||f1 - f2’ ||
where f1 is the feature from I1, f2 and f2’ are the best and second best matched from I2, this will still give a high value for ambiguous matches