470 likes | 632 Views
Computer Vision – Enhancement(Part II). Hanyang University Jong-Il Park. Local Enhancement. Global enhancement The same operation for all pixels Local enhancement Different operation for each pixel According to the statistics of local support. Local Histogram Equalization.
E N D
Computer Vision – Enhancement(Part II) Hanyang University Jong-Il Park
Local Enhancement • Global enhancement • The same operation for all pixels • Local enhancement • Different operation for each pixel • According to the statistics of local support
Local Histogram Equalization • Using a fixed window at each point • Computationally expensive • Histogram equalization at each point
Use of statistics of local support • Eg. m s E Enhanced image Original image
Input image output * Spatial mask ( 33, 55, ) Spatial Operations • Spatial averaging and spatial LPF for noise smoothing
Spatial Averaging • Mean-filtering • Noise reduction
Spatial Averaging Mask • Spatial averaging masks a(k,l) • Disadvantage : blurring
Eg. Spatial Averaging(2) Original image Averaging 후의 image
Spatial Operations - Filtering • Parametric Low Pass Filter • but to preserve the mean
Spatial LPF, BPF, HPF Spatial averaging LPF + (a) Spatial low-pass filter (b) Spatial high-pass filter LPF + LPF (c) Spatial band-pass filter
Eg. Spatial LPF Original image Lowpass Filter된 후의 image
Eg. Spatial HPF Original image Highpass filtered image
Spatial Band-Pass Filtering Original image Lowpass Filter(Short Term) =A Bandpass Filter된 후의 Image =B-A Lowpass Filter(Long Term) =B
Denoising by LPF Noisy! Blurred! Trade-off?
l k Directional Smoothing • Directional Smoothing • to protect the edges from blurring while smoothing
Eg. Directional Smoothing Original image LowpassFilter(LongTerm) Direc.Smoothing (대각선) Direc. Smoothing (수 직)
Median Filtering • Median Filter • Properties • nonlinear filter • Example
Discussion – Median filter 1) median filter preserve discontinuities in a step function 2) smooth a few pixels whose values differ significantly from the surrounding, without affecting the other pixels. 3) pulse function, whose width is less than one half the filter length, are suppressed
2D Median Filtering Filter Filtered Image Original Image Filter Filtered Image
Eg. Median Filtering Salt-and-pepper noise(=impulsive noise) 7x7 Median filtered image Original Excellent performance!
Eg. Median Filter – Gaussian Noise Moderate performance
Various patterns for median filter Neighborhood patterns used for median filtering
Eg. Median filter – Square pattern Original image 10% black, 10% white Median filtering using 5 by 5 square region Median filtering using 3 by 3 square region
Eg. Median filter – Octagon pattern Original image 5 by 5 octagonal median filter
Eg. Median filter – Reconstruction Original image Median filtering and color compensation
Sharpening Images • Emphasis of high-frequency components • Usually exploiting 1st order derivative and 2nd order derivatives • 1D derivatives • 1st order derivative: • 2nd order derivative:
Observation on derivatives • 2nd order derivative • Thinner edges • Stronger response to fine details • Weaker response to a gray-level step • Double response at step changes • Intensity of response: point > line > step • The 2nd order derivative is better suited than the 1st order derivative for image enhancement.
Laplacian Operator – Derivation • The simplest isotropic derivative operator
Eg. Sharpening Subtraction of the Laplacian from the original Original SEM image Laplacian operator Subtraction of the Laplacian from the original Original image Laplacian operator
(3) (1) Signal High-pass (2) (1)+(3) Low-pass Unsharp masking and Crispening
Unsharp mask application Original image Processed image
High-boost filtering Let g(n1, n2) = u(n1, n2) - uL(n1, n2) v(n1, n2) = u(n1, n2) + k g(n1, n2) • k=1: Unsharp Masking • Crispening an image • k>1: High-boost filtering • edge or line details to be emphasized
1 1 1 1 Zoom(1:2 magnification) revisited • Nearest neighbor=Replication = zero - order hold column, row zero-padding
Zoom revisited(cont.) • Linear Interpolation : first - order hold