Intensity Transformations and Spatial Filtering

Slides:



Advertisements
Similar presentations
Image Processing Lecture 4
Advertisements

CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter - 2 IMAGE ENHANCEMENT
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
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.
ECE 472/572 - Digital Image Processing
Digital Image Processing Contrast Enhancement: Part II
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
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny Prof.dr.ir. Marcel Breeuwer dr. Anna Vilanova Histogram equalization.
Digital Image Processing
Chapter 3: Image Enhancement in the Spatial Domain
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.
Point Processing : Computational Photography Alexei Efros, CMU, Fall 2011 Some figures from Steve Seitz, and Gonzalez et al.
Image Processing : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, and Gonzalez et al.
Digital Image Processing
Point Processing : Computational Photography Alexei Efros, CMU, Fall 2008 Some figures from Steve Seitz, and Gonzalez et al.
IMAGE 1 An image is a two dimensional Function f(x,y) where x and y are spatial coordinates And f at any x,y is related to the brightness at that point.
Lecture 2. Intensity Transformation and Spatial Filtering
Lecture 4 Digital Image Enhancement
Point Processing (Szeliski 3.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Some figures from Alexei Efros, Steve Seitz, and Gonzalez.
Digital Image Processing Contrast Enhancement: Part I
Intensity Transformations or Translation in Spatial Domain.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Intensity Transformations (Histogram Processing)
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
CH2. Point Processes Arithmetic Operation Histogram Equalization
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.
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 Subtraction Mask mode radiography h(x,y) is the mask.
Chapter 3: Image Enhancement in the Spatial Domain
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
Histogram Equalization
Image Enhancement.
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Image Enhancement in the Spatial Domain
Image Enhancement in the
Point Processing : Computational Photography
Point Processing cs195g: Computational Photography
Point Processing : Computational Photography
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Enhancement Gray level transformation Linear transformation
Digital Image Processing
Histogram Probability distribution of the different grays in an image.
Image Processing Ch3: Intensity Transformation and spatial filters
Lecture Four Chapter Three
Chapter 3 Image Enhancement in the Spatial Domain
Point Processing cs129: Computational Photography
Digital Image Processing Week III
Digital Image Procesing Introduction to Image Enhancement Histogram Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.
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.
Image Enhancement – Simple Intensity Processing
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Topic 1 Three related sub-fields Image processing Computer vision
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
The spatial domain processes discussed in this chapter are denoted by the expression
Image Enhancement in the Spatial Domain
Presentation transcript:

Intensity Transformations and Spatial Filtering

Basics of Intensity Transformation and Spatial Filtering Spatial Domain Process Neighborhood is rectangle, centered on (x,y), and much smaller in size than image. Neighborhood size is 1x1, 3x3, 5x5, etc.

Intensity Transformation T[f(x,y)] is Intensity Transformation, if the neighborhood size is 1x1. Intensity Transformation can be written as follows s = T[r], where s = g(x,y), and r = f(x,y)

Image Negatives s = L-1 – r where intensity level is in the range

Log Transformations s = c Log(1+r) Log Transformation is used to expand the value of the dark pixels while compressing the higher-level value. It is used to compress the intensity of an image which has very large dynamic range.

Log Transformations of Fourier Spectrum Original Image Fourier Spectrum Log Transform of Fourier Spectrum We cannot see the Fourier spectrum, because its dynamic range is very large.

Power-Law (Gamma) Transformations If <1, expand dark pixels, compress bright pixels. If >1, compress dark pixels, expand bright pixels.

Examples of Gamma Transformations

Contrast Stretching If r<r1 then s = r*s1/r1 If r1<= r<=r2 then s = (r-r1)*(s2-s1)/(r2-r1)+s1 If r>r2 then s = (r-r2)*(255-s2)/(255-r2)+s2 If r1=r2 and s1=0,s2=255, the transform is called “Threshold Function”.

Examples of Contrast Stretching

Contrast Stretching in Medical Image Window Width/Level(Center) s1=0,s2=255 width (w)=r2-r1, level (c)=(r1+r2)/2

Histogram & PDF h(r) = nr where nr is the number of pixels whose intensity is r. The Probability Density Function (PDF)

Cumulative Distribution Function (CDF) PDF CDF Transfer Function s r

Example of Histogram and Cumulative Distribution Function (CDF)

Low Contrast Image The image is highly concentrated on low intensity values. The low contrast image is the image which is highly concentrated on a narrow histogram. High Concentrate Low Concentrate

Histogram Equalization The Histogram Equalization is a method which makes the histogram of the image as smooth as possible

The PDF of the Transformed Variable s = Transformed Variable. = The PDF of r = The PDF of s

Transformation Function of Histogram Equalization The PDF of s

Histogram Equalization Example Intensity # pixels 20 1 5 2 25 3 10 4 15 6 7 Total 100 CDF of Pr 20/100 = 0.2 (20+5)/100 = 0.25 (20+5+25)/100 = 0.5 (20+5+25+10)/100 = 0.6 (20+5+25+10+15)/100 = 0.75 (20+5+25+10+15+5)/100 = 0.8 (20+5+25+10+15+5+10)/100 = 0.9 (20+5+25+10+15+5+10+10)/100 = 1.0 1.0

Histogram Equalization Example (cont.) Intensity (r) No. of Pixels (nj) Acc Sum of Pr Output value Quantized Output (s) 20 0.2 0.2x7 = 1.4 1 5 0.25 0.25*7 = 1.75 2 25 0.5 0.5*7 = 3.5 3 10 0.6 0.6*7 = 4.2 4 15 0.75 0.75*7 = 5.25 0.8 0.8*7 = 5.6 6 0.9 0.9*7 = 6.3 7 1.0 1.0x7 = 7 Total 100

Histogram Matching How to transform the variable r whose PDF is to the variable t whose PDF is . T( ) G-1( ) r s t