CSE559A Lecture 17
Local Features
Types of local features
Edge
Goal: Identify sudden changes in image intensity
Generate edge map as human artists.
An edge is a place of rapid change in the image intensity function.
Take the absolute value of the first derivative of the image intensity function.
For 2d functions,
For discrete images data,
Run convolution with kernel to get the first derivative in the x direction, without shifting. (generic kernel is )
Prewitt operator:
Sobel operator:
Roberts operator:
Image gradient:
Gradient magnitude:
Gradient direction:
The gradient points in the direction of the most rapid increase in intensity.
Application: Gradient-domain image editing
Goal: solve for pixel values in the target region to match gradients of the source region while keeping the rest of the image unchanged.
Noisy edge detection:
When the intensity function is very noisy, we can use a Gaussian smoothing filter to reduce the noise before taking the gradient.
Suppose pixels of the true image are corrupted by Gaussian noise with mean 0 and variance . Then the noisy image is
To find edges, look for peaks in where is the Gaussian smoothing filter.
or we can directly use the Derivative of Gaussian (DoG) filter:
Separability of Gaussian filter
A Gaussian filter is separable if it can be written as a product of two 1D filters.
Separable Derivative of Gaussian (DoG) filter
Derivative of Gaussian: Scale
Using Gaussian derivatives with different values of 𝜎 finds structures at different scales or frequencies
(Take the hybrid image as an example)
Canny edge detector
- Smooth the image with a Gaussian filter
- Compute the gradient magnitude and direction of the smoothed image
- Thresholding gradient magnitude
- Non-maxima suppression
- For each location
qabove the threshold, check that the gradient magnitude is higher than at adjacent pointspandrin the direction of the gradient
- For each location
- Thresholding the non-maxima suppressed gradient magnitude
- Hysteresis thresholding
- Use two thresholds: high and low
- Start with a seed edge pixel with a gradient magnitude greater than the high threshold
- Follow the gradient direction to find all connected pixels with a gradient magnitude greater than the low threshold
Top-down segmentation
Data-driven top-down segmentation:
Interest point
Key point matching:
- Find a set of distinctive keypoints in the image
- Define a region of interest around each keypoint
- Compute a local descriptor from the normalized region
- Match local descriptors between images
Characteristic of good features:
- Repeatability
- The same feature can be found in several images despite geometric and photometric transformations
- Saliency
- Each feature is distinctive
- Compactness and efficiency
- Many fewer features than image pixels
- Locality
- A feature occupies a relatively small area of the image; robust to clutter and occlusion