Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Spatial Filtering (Chapter 3)
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Spatial Filtering.
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
CS 4487/9587 Algorithms for Image Analysis
EE 4780 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing
Histogram Processing The histogram of a digital image with gray levels from 0 to L-1 is a discrete function h(rk)=nk, where: rk is the kth gray level nk.
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Intensity Transformations
Digital Image Processing
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing
Chapter 3: Image Enhancement in the Spatial Domain
Face Recognition and Biometric Systems 2005/2006 Filters.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Machine Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 6&7: Image Enhancement Professor Heikki Kälviäinen Machine Vision and.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
Image Enhancement.
2-D, 2nd Order Derivatives for Image Enhancement
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Chap2 Image enhancement (Spatial domain)
Presentation Image Filters
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing
Spatial Filtering: Basics
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Image Restoration Chapter 5.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 10: Image Restoration
Spatial Filtering.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Sharpening Filters To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation Categories of sharpening.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
İmage enhancement Prepare image for further processing steps for specific applications.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fundamentals of Spatial Filtering:
Digital Image Processing CSC331
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Spatial Filtering - Enhancement
Digital Image Processing
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Enhancement in the Spatial Domain
Presentation transcript:

Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli Fall 2012

Image Enhancement The principle Objective of enhancement is to process an image so that the result is more suitable than the original image for specific application Purpose  Image enhancement for human reception  Image Enhancement for machine automation Category  Spatial domain  Frequency domain

g(x,y)=T(f(x,y)) g(x,y,k)=T(f(x,y,k)) where g(x,y) is output image f(x,y) is input image x,y are spatial index k is temporal index Gray Level Transformation or point processing mm nn U[M×N] V[M×N]

Applying spatial domain filter (Sliding windows) AMAM

Fig 3.2 Gray Level Transformation a) contrast enhancement b) thresholding

Some Useful Gray level (intensity) Transformation

Log Transform

Image Negative Image intensity is in the range of [0, L-1] S=L-1-r Some Useful Gray level (intensity) Transformation Applying threshold

Image Negative

Gamma Correction

Gamma correction applied to forest picture(γ=0.5)

Gamma Correction

Histogram Processing  The histogram of a digital image with gray levels from 0 to L-1 is a discrete function h(r k )=n k, where:  r k is the kth gray level  n k is the Number of pixels in the image with that gray level  n is the total number of pixels in the image  k = 0, 1, 2, …, L-1  Normalized histogram: p(r k )=n k /n –sum of all components = 1

Dark image Bright image Histogram for different images

Low contrast image High contrast image Histogram for different images

Histogram Processing  The shape of the histogram of an image does provide useful info about the possibility for contrast enhancement.  Types of processing:  Histogram equalization  Histogram matching (specification)  Local enhancement

Histogram Equalization  Method Determine and Transformation function that seeks to produce an output image that has uniform histogram. S=T( r )0≤ r ≤1  Transformation Function a)T(r) is single-valued and monotonically increasing the interval 0≤ r ≤1 b)0≤T(r)≤1for 0≤ r ≤1

Histogram Equalization

 Histogram equalization(HE) results are similar to contrast stretching but offer the advantage of full automation, since HE automatically determines a transformation function to produce a new image with a uniform histogram.

Noise  Images are corrupted by random variations in intensity values called noise due to non-perfect camera acquisition or environmental conditions.  Assumptions: –Additive noise: a random value is added at each pixel –White noise: The value at a point is independent on the value at any other point.

 Salt and pepper noise  random occurrences of both black and white intensity values  are specified by noise density  Impulse noise:  random occurrences of white intensity values  are specified by noise density Common Types of Noise

 Gaussian noise:  impulse noise but its intensity values are drawn from a Gaussian distribution  models sensor noise (due to camera electronics)  are specified by noise mean and variance or dB

Examples of Noisy Images

Spatial Filtering

a=(m-1)/2 and b=(n-1)/2, m and n (odd numbers)  For x=0,1,…,M-1 and y=0,1,…,N-1  Also called convolution (primarily in the frequency domain)

Spatial Filtering  Another representation

Original Spatial Filtering

 Linear Filters is filtering in which the value of an output pixel is a linear combination of the values of the pixels in the input pixel’s neighborhood  Nonlinear Filter use pixel neighborhoods but do not explicitly use coefficients.

Spatial Filtering  Low-pass filters eliminate or attenuate high frequency components in the frequency domain (sharp image details), and result in image blurring.  High-pass filters attenuate or eliminate low-frequency components (resulting in sharpening edges and other sharp details).  Band-pass filters remove selected frequency regions between low and high frequencies (for image restoration, not enhancement).

Linear Smoothing Filters  Also are referred to  averaging filter  weighted averaging filter  lowpass filter  Results in  blurring (removal of small details prior to large object extraction, bridging small gaps in lines)  noise reduction.

Linear Smoothing Filters

Order Statistic Filters

Sharpening Filters  To highlight fine detail or to enhance blurred detail. –smoothing ~ integration –sharpening ~ differentiation  Categories of sharpening filters: –Derivative operators –Basic highpass spatial filtering –High-boost filtering

The Gradient  Non-isotropic  Its magnitude (often call the gradient) is isotropic  Computations is not trivial for whole image  Reducing Computation Overhead

The Gradient

The Uses of Gradient for Edge Detection

Digital Function Derivatives  First derivative: –0 in constant gray segments –Non-zero at the onset of steps or ramps –Non-zero along ramps –Produce thicker edges in an image  Second derivative: –0 in constant gray segments –Non-zero at the onset and end of steps or ramps –0 along ramps of constant slope. –Have stronger response to fine detail

Laplacian  Digital implementation:  Two definitions of Laplacian: one is the negative of the other  Accordingly, to recover background features: I: if the center of the mask is negative II: if the center of the mask is positive

Laplacian