Digital Image Processing, 3rd ed. www.ImageProcessingPlace.com © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Image Processing Ch3: Intensity Transformation and spatial filters
Image Processing Lecture 4
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
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
Intensity Transformations
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
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
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.
Digital Image Processing
Digital Image Processing
Digital Image Processing
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Lecture 2. Intensity Transformation and Spatial Filtering
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Lecture 4 Digital Image Enhancement
© 2004 R. C. Gonzalez, R. E. Woods, and S. L. Eddins Digital Image Processing Using MATLAB ® Chapter 3 Intensity Transformations.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Lecture Three Chapters Two and three Photo slides from Digital Image Processing, Gonzalez and Woods, Copyright 2002.
Digital Image Processing Contrast Enhancement: Part I
DIGITAL IMAGE PROCESSING
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Intensity Transformations or Translation in Spatial Domain.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 12 Object Recognition.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 9 Morphological Image.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 7 Wavelets and Multiresolution.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 1 Introduction Chapter.
Lecture Eight Matlab for spatial filtering and intro to DFTs Figures from Gonzalez and Woods, Digital Image Processing, Copyright 2002, Gonzalez, Woods,
Digital Image Processing Lecture9: Intensity (Gray-level) Transformation Functions using MATLAB.
Image Enhancement in the Spatial Domain (MATLAB)
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
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
Prepared by: Hanan Hardan
Digital Image Processing CSC331 Image Enhancement 1.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 2 Digital Image Fundamentals.
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.
M ATLAB L ECTURE 2 Image Enhancement in the Spatial Domain (MATLAB)
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.
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.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 5 Image Restoration and.
Image Enhancement in the Spatial Domain.
1 Chapter 3 Intensity Transformations and Spatial Filtering Chapter 3 Intensity Transformations and Spatial Filtering Objectives: We will learn about different.
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Fundamentals of Image Processing A Seminar on By Alok K. Watve
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
IT523 Digital Image Processing
The spatial domain processes discussed in this chapter are denoted by the expression
Presentation transcript:

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering The spatial domain processes discussed in this chapter are denoted by the expression g(x,y)=T[f(x,y)] Where f(x,y) is the input image, g(x,y) is the output (processed) image, and T is an operator on f, defined over a specified neighborhood about point (x,y) Intensity transformation functions frequently are written in simplified form as s=T(r) Where r denotes the intensity of f and s the intensity of g, both at any corresponding point (x,y)

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Function imadjust: Function imadjust is the basic IPT tool for intensity transformations of gray scale images. It has the syntax g=imadjust(f, [low_in high_in], [low_out high_out], gamma)

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Negative image, obtained using the command >>g1=imadjust(f,[0,1],[1,0]); This process, which is the digital equivalent of obtaining a photographic negative, is particularly useful for enhancing white or gray detail embedded in a large, predominantly dark region.

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering The negative of an image can be obtained also with IPT function imcomplement >> g=imcomplement(f) Expanding the gray scale region between 0.5 and 0.75 to the full [0,1] range: >> g2=imadjust(f,[ ], [0 1]); This type of processing is useful for highlighting an intensity band of interest. >> g3=imadjust(f,[ ],[ ],2); produces a similar result by compressing the low end and expanding the high end of the gray scale.

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Logarithmic Transformation: Logarithmic transformations are implemented using the expression g= c*log(1+double(f)) where c is a constant. The shape of this transformation is similar to the gamma curve with the low values set at 0 and the high values set to 1 on both scales. Note, however, that the shape of gamma curve is variable, whereas the shape of the log function is fixed. mat2gray(g) function brings the values to the range [0,1] im2uint8 brings them to the range [0, 255] g=im2uint8(mat2gray(log(1+double(f))); imshow(g)

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering g2=imadjust(f,[ ], [ ]);

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Bit-plane slicing : Pixels are digital numbers composed of bits. For example, the intensity of each pixel in an 256-level gray-scale image is composed of 8 bits (i.e., one byte). Instead of highlighting intensity-level ranges, we could highlight the contribution made to total image appearance by specific bits.

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering The histogram of a digital image with intensity levels in the range [0, L-1] is a discrete function h(r k )=n k Where r k is the kth intensity value and n k is the number of pixels in the image with intensity r k. It is common practice to normalize to normalize a histogram by dividing each of its components by the total number of pixels in the image, denoted by the product MN, where, as usual, M and N are row and column dimensions of the image.

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Histogram Equalization

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Histogram Equalization is implemented in the toolbox by function histeq, which has the syntax g=histeq(f,nlev) where f is the input image and nlev is the number of intensity levels specified for the output image. Default value is nlev=64

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering Histogram Matching-Histogram Specification

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering

Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations & Spatial Filtering Chapter 3 Intensity Transformations & Spatial Filtering