ECE 472/572 - Digital Image Processing

Slides:



Advertisements
Similar presentations
Image Processing Lecture 4
Advertisements

CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
ECE 472/572 - Digital Image Processing Lecture 7 - Image Restoration - Noise Models 10/04/11.
Intensity Transformations (Chapter 3)
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.
Digital Image Processing Contrast Enhancement: Part II
Image Enhancement in the Spatial Domain
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Intensity Transformations
Digital Image Processing
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
Image Enhancement by Modifying Gray Scale of Individual Pixels
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Lecture 4 Digital Image Enhancement
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Chapter 3: Image Enhancement in the Spatial Domain
ECE 472/572 - Digital Image Processing Lecture 5 - Image Enhancement - Frequency Domain Filters 09/13/11.
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
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.
Digital Image Processing
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Chap. 3: Image Enhancement in the Spatial Domain Spring 2006, Jen-Chang Liu CSIE, NCNU.
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.
ECE 472/572 – Digital Image Processing Lecture 2 – Elements of Visual Perception and Image Formation 08/25/11.
Lecture 4 Digital Image Enhancement
 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,
Introduction to Image Processing Grass Sky Tree ? ? Review.
Digital Image Processing
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Chapter 3 Image Enhancement in the Spatial Domain.
Pattern Recognition Mrs. Andleeb Y. Khan Lecture 03 BCS-VII.
DIGITAL IMAGE PROCESSING
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Intensity Transformations (Histogram Processing)
Digital Image Processing Image Enhancement in the Spatial Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
Digital Image Processing EEE415 Lecture 3
İmage enhancement Prepare image for further processing steps for specific applications.
ECE 472/572 - Digital Image Processing Lecture 6 – Geometric and Radiometric Transformation 09/27/11.
Image Enhancement in Spatial Domain Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
Lecture 02 Point Based Image Processing Lecture 02 Point Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 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 Image Enhancement in Spatial Domain
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Image Enhancement in the Spatial Domain.
Image Enhancement.
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
Digital Image Processing
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
Intensity Transformations and Spatial Filtering
Image Enhancement in the Spatial Domain
Presentation transcript:

ECE 472/572 - Digital Image Processing Lecture 3 - Image Enhancement - Point Processing 08/30/11

Roadmap Introduction Perception Image enhancement Image format (vector vs. bitmap) IP vs. CV vs. CG HLIP vs. LLIP Image acquisition Perception Structure of human eye rods vs. cones (Scotopic vision vs. photopic vision) Fovea and blind spot Flexible lens (near-sighted vs. far-sighted) Brightness adaptation and Discrimination Weber ratio Dynamic range Image resolution Sampling vs. quantization Image enhancement Enhancement vs. restoration Spatial domain methods Point-based methods Negative Log transformation Power-law Contrast stretching Gray-level slicing Bit plane slicing Histogram equalization Averaging Mask-based (neighborhood-based) methods - spatial filter Frequency domain methods

Questions Point-based vs. Mask-based (or neighbor-based) Spatial domain vs. Frequency domain Log transformation vs. Power-law Gamma correction Dynamic range compression Contrast stretching vs. Histogram equalization Histogram Uniform histogram HE derivation (572) Gray-level vs. Bit-plane slicing MSB What’s the philosophy behind Image averaging? Derivation (572)

Intuitively

From system point of view f(x,y) T[f(x,y)] Point processing g(x,y) f(x,y) T[N{f(x,y)}] Mask processing or Spatial filter g(x,y)

Different approaches Spatial domain Frequency domain Point-based processing Mask-based processing (neighbor-based processing) (spatial filters) Frequency domain Frequency domain filters

Point processing Simple gray level transformations Image negatives Log transformations Power-law transformations Contrast stretching Gray-level slicing Bit-plane slicing Histogram processing Histogram equalization Histogram matching (specification) Arithmetic/logic operations Image averaging

Some transformations s = T(r) = L – 1 – r s = crg

Image negatives s = T(r) = L – 1 – r

Log transformation (Dynamic range compression)

Power-Law transformation s = crg

Gamma correction

Contrast stretching

Gray-level slicing Highlighting an intensity range

Bit-plane slicing Highlighting the contribution made by a specific bit. For pgm images, each pixel is represented by 8 bits. Each bit-plane is a binary image

Point processing Simple gray level transformations Image negatives Log transformations Power-law transformations Contrast stretching Gray-level slicing Bit-plane slicing Histogram processing Histogram equalization Histogram matching (specification) Arithmetic/logic operations Image averaging

Histogram Gray-level histogram is a function showing, for each gray level, the number of pixels in the image that have that gray level. Normalized histogram (probability):

Histogram - Examples

Usage of histogram Find threshold Reveal the intensity distribution

Example

Question What does the histogram of a low-contrast image look like? How about high-contrast?

Histogram equalization Why and when do we want to use HE?

HE – Example 2

HE – Derivation (572) T(r) is single-valued and monotonically increasing within range of r T(r) has the same range as r [0, 1] To find a transformation that would yield p(s) = 1 Leibniz’s rule says that the derivative or a definite integral with respect to its upper limit is the integrand evaluated at the limit.

Histogram equalization Transformation function pr(w) is the probability density function (pdf) The transformation function is the cumulative distribution function (CDF) To make the pdf of the transformed image uniform, i.e. to make the histogram of the transformed image uniform

HE – Discrete case r s hist(r) s hist(s) 1 2 3 10 80 95 100 70 15 5 10 1 2 3 10 80 95 100 r s 70 15 5 hist(r) s hist(s) 10 10 80 70 95 15 100 5

HE - Discussion Can contrast stretching achieve similar result as histogram equalization? If it can, why histogram equalization then? Why isn’t the transformed histogram uniform?

Problems with HE ??? Solutions

*Histogram specification Step1: Equalize the levels of the original image Step2: Specify the desired pdf and obtain the transformation function Step3: Apply the inverse transformation function to the levels obtained in step 1

HS - Example r hist(r) r s r z z G(z) z hist(z) Specified histogram 1 1 2 3 10 70 15 5 r hist(r) 1 2 3 10 80 95 100 r s 1 2 3 10 30 60 65 r z z G(z) 10 15 30 60 20 50 z hist(z) Specified histogram 10 10 15 30 30 80 60 95

Comparison (HE vs. HM/HS)

Local enhancement

Point processing Simple gray level transformations Image negatives Log transformations Power-law transformations Contrast stretching Gray-level slicing Bit-plane slicing Histogram processing Histogram equalization Histogram matching (specification) Arithmetic/logic operations Image averaging

Image averaging original image f(x, y) + noisy image g(x, y) noise h(x, y)

Image average (cont’) If the noise is uncorrelated and has zero expectation, then

Image averaging – How to generate Gaussian noise? (572) //This function creates a gaussian random number between -3 and 3 double gaussrand() { static double V1, V2, S; static int phase = 0; double X; if (phase == 0) { do { double U1 = (double)rand() / RAND_MAX; double U2 = (double)rand() / RAND_MAX; V1 = 2 * U1 - 1; V2 = 2 * U2 - 1; S = V1 * V1 + V2 * V2; } while(S >= 1 || S == 0); X = V1 * sqrt(-2 * log(S) / S); } else X = V2 * sqrt(-2 * log(S) / S); phase = 1 - phase; return X;

Summary - Point processing Simple gray level transformations Image negatives Log transformations Power-law transformations Contrast stretching Gray-level slicing Bit-plane slicing Histogram processing Histogram equalization Derivation (572 only) Histogram matching (specification) (572 only) Arithmetic/logic operations Image averaging Generation of Gaussian noise (572 only)