Top Banner
İmage enhancement Prepare image for further processing steps for specific applications
79

İmage enhancement Prepare image for further processing steps for specific applications.

Jan 17, 2018

Download

Documents

Julia McDaniel

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
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: İmage enhancement Prepare image for further processing steps for specific applications.

İmage enhancement

Prepare image for further processing steps for specific applications

Page 2: İ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) F-1F T

T

Page 3: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement in spatial domain

• Brightness Transform: 1. Position Dependent

f(i,j)= g(i,j). e(i,j)g:Clean imagee:position dependent noise

2. Gray scale Transform

Page 4: İmage enhancement Prepare image for further processing steps for specific applications.

Gray scale transform: s=T(r)

• r original color, s transformed color

L-1

L-1 r

sS=r

S=r

S=r

Page 5: İmage enhancement Prepare image for further processing steps for specific applications.

Gray Scale Transformq=T(p)

Binarize and contrast streching

Page 6: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement THRESHOLDING

Page 7: İmage enhancement Prepare image for further processing steps for specific applications.

Log Transform:q= clog (1+p)

Page 8: İmage enhancement Prepare image for further processing steps for specific applications.

Negation

Page 9: İmage enhancement Prepare image for further processing steps for specific applications.

Power law transform

Page 10: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement by Gray scale transform

Page 11: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement by Gray scale transform

Page 12: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement by Gray Scale Transform

Page 13: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement by Gray scale transform

Page 14: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement by Gray scale transform

Page 15: İmage enhancement Prepare image for further processing steps for specific applications.

Bit plane slicing• Soppose each pixel is represented by n-bits.• Represent each bit by a plane

Page 16: İmage enhancement Prepare image for further processing steps for specific applications.

Bit-plane slicingImage Enhancement in the

Spatial Domain

Page 17: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 18: İmage enhancement Prepare image for further processing steps for specific applications.

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 histogramP(rk) = nk/NN:total number of pixels

Page 19: İmage enhancement Prepare image for further processing steps for specific applications.

Histograms of various image

Page 20: İmage enhancement Prepare image for further processing steps for specific applications.

Histogram Equalization

Find a transformation which yields a histogram with uniform density

?

Page 21: İmage enhancement Prepare image for further processing steps for specific applications.

Histogram of a dark image

Page 22: İmage enhancement Prepare image for further processing steps for specific applications.

Equalized Histogram

Page 23: İmage enhancement Prepare image for further processing steps for specific applications.

Specified Histogram

Page 24: İmage enhancement Prepare image for further processing steps for specific applications.

Local Histogram Equalization

Page 25: İmage enhancement Prepare image for further processing steps for specific applications.

Local ProcessingConvolution or Correlation: f*h

Page 26: İmage enhancement Prepare image for further processing steps for specific applications.

Define a mask and correlate it with the image

Page 27: İmage enhancement Prepare image for further processing steps for specific applications.

SMOOTHING

Page 28: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement WITH SMOOTING

Page 29: İmage enhancement Prepare image for further processing steps for specific applications.

Averaging blurrs the image

Page 30: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement WITH AVERAGING AND THRESHOLDING

Page 31: İmage enhancement Prepare image for further processing steps for specific applications.

Restricted Averaging

• Apply averaging to only pixels with brightness value outside a predefined interval.

Mask h(i,j) = 1 For g(m+i,n+j)€ [min, max]

0 otherwise

Q: Study edge strenght smoothing, inverse gradient and rotating mask

Page 32: İmage enhancement Prepare image for further processing steps for specific applications.

Median Filtering

• Find a median value of a given neighborhood.

• Removes sand like noise

0 2 12 1 23 3 2

0 2 12 2 23 3 2

0 1 1 2 2 2 2 3 3

Page 33: İmage enhancement Prepare image for further processing steps for specific applications.

Median filtering breaks the straight lines

5 5 5 5 55 5 5 5 50 0 0 0 05 5 5 5 55 5 5 5 5

Square filter:0 0 0 5 5 5 5 5 5

Cross filter0 0 0 5 5

Page 34: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement with averaging and median filtering

Page 35: İmage enhancement Prepare image for further processing steps for specific applications.

Image sharpening filters

Edge detectors

Page 36: İmage enhancement Prepare image for further processing steps for specific applications.

What is edge?

• Edges are the pixels where the brightness changes abrubtly.

• It is a vector variable with magnitude and direction

Page 37: İmage enhancement Prepare image for further processing steps for specific applications.

EDGE PROFILES

Page 38: İmage enhancement Prepare image for further processing steps for specific applications.

Continuous world first derivativeGradient

• Δg(x,y) = ∂g/ ∂x + ∂g/ ∂y• Magnitude: |Δg(x,y) | = √ (∂g/ ∂x)2 + (∂g/ ∂y) 2 • Phase : Ψ = arg (∂g/ ∂x , ∂g/ ∂y) radians

Page 39: İmage enhancement Prepare image for further processing steps for specific applications.

Discrete world derivatives: Gradient

• 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) |

Page 40: İmage enhancement Prepare image for further processing steps for specific applications.

Continuous world second derivativeLaplacian

• Δ2g(x,y) = ∂2g/ ∂2 x + ∂2 g/ ∂2 y

Page 41: İmage enhancement Prepare image for further processing steps for specific applications.

EDGES, GRADIENT AND LAPLACIAN

Page 42: İmage enhancement Prepare image for further processing steps for specific applications.

GRADİENT AND LAPLACIEN OF SMOOT EDGES, NOISY EDGES

Page 43: İmage enhancement Prepare image for further processing steps for specific applications.

GRADIENT EDGE MASKSApproximation in discrete grid

Page 44: İmage enhancement Prepare image for further processing steps for specific applications.

GRADIENT EDGE MASKS

Page 45: İmage enhancement Prepare image for further processing steps for specific applications.

Edge detection

Page 46: İmage enhancement Prepare image for further processing steps for specific applications.

Edge detection

Page 47: İmage enhancement Prepare image for further processing steps for specific applications.

Edge detection

Page 48: İmage enhancement Prepare image for further processing steps for specific applications.

LAPLACIAN MASKS

Page 49: İmage enhancement Prepare image for further processing steps for specific applications.

LAPLACIAN of GAUSSIAN EDGE MASKS

Page 50: İmage enhancement Prepare image for further processing steps for specific applications.

EDGE DETECTION

Page 51: İmage enhancement Prepare image for further processing steps for specific applications.

EDGE DETECTION

Page 52: İmage enhancement Prepare image for further processing steps for specific applications.

EDGE DETECTION

Page 53: İmage enhancement Prepare image for further processing steps for specific applications.

HOUGH TRANSFORM

Page 54: İmage enhancement Prepare image for further processing steps for specific applications.

PARAMETER PLANE OF HOUGH TRANSFORM

Page 55: İmage enhancement Prepare image for further processing steps for specific applications.

HOUGH TRANSFORM IN POLAR FORM

Page 56: İmage enhancement Prepare image for further processing steps for specific applications.

HOUGH TRANSFORM OF POINTS IN POLAR FORM

Page 57: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 10Image Segmentation

Page 58: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 10Image Segmentation

Page 59: İmage enhancement Prepare image for further processing steps for specific applications.

GRADIENT OPERATIONS

Page 60: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement WITH LAPLACIAN AND SOBEL

Page 61: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement (cont.)

Page 62: İmage enhancement Prepare image for further processing steps for specific applications.

Edg Detection with Laplacian

Page 63: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement with high pass filter

Page 64: İmage enhancement Prepare image for further processing steps for specific applications.

Edge Detection with High Boost

Page 65: İmage enhancement Prepare image for further processing steps for specific applications.

Laplacian Operator

Page 66: İmage enhancement Prepare image for further processing steps for specific applications.

Image Enhancement with Laplacian

Page 67: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 68: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 69: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 70: İmage enhancement Prepare image for further processing steps for specific applications.

Histogram Equalization

Page 71: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 72: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 73: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 74: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 75: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 76: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 77: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 78: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain

Page 79: İmage enhancement Prepare image for further processing steps for specific applications.

Chapter 3Image Enhancement in the

Spatial Domain