800 likes | 1.21k Views
İmage enhancement. Prepare image for further processing steps for specific applications. Image enhancement: Pre-processing. Spatial domain techniques: Find a transformation T f(x,y) g(x,y) Frequency domain techniques
E N D
İmage enhancement Prepare image for further processing steps for specific applications
Image enhancement: Pre-processing • Spatial domain techniques: Find a transformation T f(x,y) g(x,y) • Frequency domain techniques • f(x,y) F(u,v) G(u,v) g(x,y) T F-1 F T
Image Enhancement in spatial domain • Brightness Transform: 1. Position Dependent f(i,j)= g(i,j). e(i,j) g:Clean image e:position dependent noise 2. Gray scale Transform
Gray scale transform: s=T(r) • r original color, s transformed color s S=r S=r L-1 S=r r L-1
Bit plane slicing • Soppose each pixel is represented by n-bits. • Represent each bit by a plane
Bit-plane slicing Image Enhancement in the Spatial Domain
Chapter 3 Image Enhancement in the Spatial Domain
Histogram processing • Given an image with L gray levels • h(rk) = nk • rk: kth gray level • nk: number of pixels with gray level rk • Normalized histogram P(rk) = nk/N N:total number of pixels
Histogram Equalization Find a transformation which yields a histogram with uniform density ?
Image Enhancement WITH AVERAGING AND THRESHOLDING
Apply averaging to only pixels with brightness value outside a predefined interval. Mask h(i,j) = Restricted Averaging • For g(m+i,n+j)€ [min, max] • 0 otherwise Q: Study edge strenght smoothing, inverse gradient and rotating mask
Median Filtering • Find a median value of a given neighborhood. • Removes sand like noise 0 1 1 2 2 2 2 3 3
Median filtering breaks the straight lines Square filter: 0 0 0 5 5 5 5 5 5 Cross filter 0 0 0 5 5
Image sharpening filters Edge detectors
What is edge? • Edges are the pixels where the brightness changes abrubtly. • It is a vector variable with magnitude and direction
Δg(x,y) = ∂g/ ∂x + ∂g/ ∂y Magnitude: |Δg(x,y) | = √ (∂g/ ∂x)2 + (∂g/ ∂y) 2 Phase : Ψ = arg (∂g/ ∂x , ∂g/ ∂y) radians Continuous world first derivativeGradient
Use difference in various directions Δi g(i,j) = g(i,j) - g(i+1,j) or Δj g(i,j) = g(i,j) - g(i,j+1) or Δij g(i,j) = g(i,j)- g(i+1,j+1) or |Δ g(i,j) | = |g(i,j)- g(i+1,j+1) | + |g(i,j+1)- g(i+1,j) | Discrete world derivatives: Gradient
Continuous world second derivativeLaplacian • Δ2g(x,y) = ∂2g/ ∂2 x + ∂2 g/ ∂2 y
GRADIENT EDGE MASKS Approximation in discrete grid