Professional Documents
Culture Documents
Image Filtering 1
Image Filtering 1
Image Filtering 1
Spatial domain
Spatial Filtering
• Main idea
• Define a neighborhood of a pixel
• Define an operation on pixels in the neighborhood
• Output pixel value = result of the operation
• Topics
• Linear filtering
• Correlation, convolution
• Normalized cross correlation for recognizing objects
• Important examples
• Smoothing filters (box, average, Gaussian)
• Sharpening filters (Laplacian, Sobel)
• Non-linear filters
• Order-statistics filters (primarily median filter)
Linear Spatial Filtering
• Create a filter or mask w, size m × 𝑛
• Apply to image f, size M × 𝑁
• Compute the sum of products of mask coefficient with corresponding
pixels under mask
• Slide mask over image, apply at each point
• It is a linear operation
Spatial Filtering
• Different types:
• Smoothing filter
• Sharpening filter
• Smoothing filter
• Smoothing High frequency signal
• Noise (high frequency signal) reduction
• Disadvantage: edge blurring
Sharpening Spatial Filters
• The concept of sharpening filter
• First and second order derivatives
• Laplace filter
• Unsharp mask
• High boost filter
• Gradient mask
Smoothing
• Smoothing is often used to reduce noise within an image
• Drawback:
• Smoothing reduces fine image detail
Smoothing Filter
• The threshold as a multiple of the standard deviation of brightness
within the template window
Gaussian Filter
•
Gaussian Filter
•
Gaussian Filter
•
Gaussian Filter
•
Smoothing Non Linear Filters
•
Min and Max Filter
•
Median Filter
•
Comparison of Median and Box Filter
•
Midpoint Filter
•
Smoothing Filter
• Edge preserving smoothing:
Sharpening Spatial Filters
Sharpening Spatial Filters
• To highlight fine detail in an image or to enhance detail that has been
blurred either in error or as a natural effect of a particular method of
image acquisition.
• Blurring vs Sharpening
• Blurring/smooth is done in spatial domain by pixel averaging in a neighbors, it
is a process of integration
• Sharpening is an inverse process, to find the difference by the neighborhood,
done by spatial differentiation.
Gradient
• Image differentiation
• enhances edges and other discontinuities (noise)
• reduce the importance area with slowly varying gray-level values.
• Note that