Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.

Slides:



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

Spatial Filtering (Chapter 3)
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Digital Image Processing
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Spatial Filtering.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
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
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
Face Recognition and Biometric Systems 2005/2006 Filters.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Image Processing
Digital Image Processing
Image Enhancement.
2-D, 2nd Order Derivatives for Image Enhancement
Lecture 2. Intensity Transformation and Spatial Filtering
Histogram 直方圖 Statistics of the pixel gray-levels of an image h(r k )=n k : histogram gray level no. of occurrence.
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)
 Image Enhancement in Spatial Domain.  Spatial domain process on images can be described as g(x, y) = T[f(x, y)] ◦ where f(x,y) is the input image,
Presentation Image Filters
Digital Image Processing
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
Chapter 3 Image Enhancement in the Spatial Domain.
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Intensity Transformations (Histogram Processing)
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
Chapter 5: Neighborhood Processing
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
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.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
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.
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.
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Digital Image Processing Lecture - 6 Autumn 2009.
Image Enhancement by Spatial Domain Filtering
Sharpening Spatial Filters ( high pass)  Previously we have looked at smoothing filters which remove fine detail  Sharpening spatial filters seek to.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Fundamentals of Spatial Filtering:
ECE 692 – Advanced Topics in Computer Vision
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Spatial Filtering - Enhancement
Digital Image Processing
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
Digital Image Processing
Chapter 3 Image Enhancement in the Spatial Domain
Image Enhancement – Simple Intensity Processing
Digital Filters.
Image Enhancement in the Spatial Domain
Presentation transcript:

Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006

Review: gray level transformations For this image, what transform should we apply?

Histogram Processing Histogram equalization Histogram matching Local enhancement Use of histogram statistics

Histogram 直方圖 Statistics of the pixel gray-levels of an image h(r k )=n k : histogram gray level no. of occurrence

Obtain contrast information from histogram

Histogram: implementation issue Divide the range of gray levels (ex. 0~255) Number of bins Position of bins specified in a vector 5 bins 10 bins

Histogram: normalization gray level no. of occurrence gray level no. of occurrence total pixels =prob.

Histogram equalization 均化 Goal: produce an uniform histogram Find a transformation: s=T(r) uniform

Histogram equalization(cont.) 1 01 Cumulative function of histogram Prob. Ideal cumulative func Ideal uniform histogram 0.5

Histogram equalization: discrete solution Probability (normalized histogram) of gray level r k p(r k )=n k /n, k=0,1,2,…, L-1 Discrete version of CDF (cumulative distribution function) <1

Example: histogram equalization

Histogram Processing Histogram equalization Histogram matching Local enhancement Use of histogram statistics

Histogram matching: original image

Histogram equalization result Histogram Equalization function Equalized histogram After equalization

Histogram matching The desired shape of histogram is specified (not necessarily uniform) Derivation of histogram matching function: s uniform r input z desired s=T(r) histogram equalization s=G(z) z=G -1 (s) z=G -1 (T(r)) histogram equalization

Original -> uniform (equalization) desire -> uniform (equalization) Inverse function of G

Histogram matching result G G -1 Desired histogram After histogram matching

Histogram Processing Histogram equalization Histogram matching Local enhancement Use of histogram statistics

Local enhancement Global: entire image Local: neighborhood of each pixel Original image Global equalization 7x7 neighborhood local equalization

Histogram statistics Take pixel value r as a random variable Some measure about pdf Normalized histogram of an image => probability distribution function of r mean variance mean => average gray level variance => average contrast

Histogram statistics (cont.) Local measurement: S xy neighborhood mean in S xy variance in S xy

Application of histogram statistics: example Globally, this image is light However, some dark background object is unseen 鎢絲及其支柱的放大影像

Histogram statistics: example local meanlocal standard deviation Calculate local statistics in 3x3 region

Histogram statistics: example Local enhancement enhanced pixels 像素平均值小 但是標準差大

Histogram statistics: example original enhanced

Outline: spatial domain Histogram processing Spatial filtering 空間濾波 Smoothing filter Ordered statistics filter Sharpening filter

Basics of spatial filtering g(x,y)=T[ f(x,y) ] T operates on a neighborhood

mask coefficients underlying neighborhood X (product) output

Basics of spatial filtering Mathematical formula Border issues Operate inside only Discard the mask at border Padding at image boundaries zero padding extension convolution

Smoothing spatial filtering Used for blurring and for noise reduction Smoothing linear filters Average filters, low-pass filters average filter weighted filter 這兩個效果差不多 因為 3x3 太小

original 3x3 5x5 9x9 15x15 35x35 small area blended into background noise reduced border effects

Smoothing: example 15x15 smoothing thresholding

Order-statistics filters Pixel neighborhood f1 f2 f3 f4 f5 f6 f7 f8 f9 sort f4 f3 f7 f6 f8 f2 f1 f9 f5 median filter increasing order max filter min filter remove isolated high(low) pixels

Median filter: example original 3x3 average 3x3 median salt-and-pepper noise

Outline: spatial domain Histogram processing Spatial filtering 空間濾波 Smoothing filter Ordered statistics filter Sharpening filter

Sharpening filtering: example original Edge detection scaled sharpened

Sharpening spatial filters Goal highlight fine detail in an image Spatial differentiation 微分 Digital implementation => difference 差分 de-emphasize regions with slowly varying gray levels

smooth

Sharpening: foundation First and second-order derivatives in digital form => difference 一次微分 二次微分

2nd derivatives for image 2-D 2 nd derivatives => Laplacian =>discrete formulation

Definition of 2nd derivatives in filter mask 90 0 rotation invariant 45 0 rotation invariant (include Diagonals)

Laplacian filtering: example original Laplacian filtered image

Sharpened result = original + Laplacian filtered image original imagefiltered image => resulting mask

Laplacian filtering: example original Laplacian scaled sharpened

original left mask right mask

Use of 1st derivative: Gradient Gradient Magnitude of gradient Simplified form =>

Definition of 1st derivative in mask filters Sobel operators

Gradient: example defects original(contact lens) Sobel gradient *enhance defects and eliminate slowly changing background

Summary There is no general theory Representative of spatial domain techniques Learn the foundation, terminology, and some basic tools for image processing