Digital Image Processing

Slides:



Advertisements
Similar presentations
Types of Image Enhancements in spatial domain
Advertisements

Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
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 - 2 IMAGE ENHANCEMENT
Digital Image Processing
Course Website: Digital Image Processing Image Enhancement (Histogram Processing)
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Intensity Transformations
Image Enhancement by Modifying Gray Scale of Individual Pixels
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی دانلود جزوات کارشناسی ارشد نرم افزار علوم تحقیقات البرز دانشگاه آزاد کرج Karaj.unicloob.ir.
Lecture 4 Digital Image Enhancement
Digital Image Processing
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.
Image Enhancement in the Spatial Domain (chapter 3) Math 5467, Spring 2008 Most slides stolen from Gonzalez & Woods, Steve Seitz and Alexei Efros.
Digital Image Processing
Lecture 2. Intensity Transformation and Spatial Filtering
Spectral contrast enhancement
Lecture 4 Digital Image Enhancement
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Digital Image Processing (DIP)
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Lecture Three Chapters Two and three Photo slides from Digital Image Processing, Gonzalez and Woods, Copyright 2002.
Digital Image Processing Contrast Enhancement: Part I
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Intensity Transformations or Translation in Spatial Domain.
Intensity Transformations (Histogram Processing)
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
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
Digital Image Processing CSC331 Image Enhancement 1.
Image Enhancement Objective: better visualization of remotely sensed images visual interpretation remains to be the most powerful image interpretation.
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 Enhancement in the Spatial Domain.
CS-565 Computer Vision Nazar Khan Lecture 8.
IMAGE ENHANCEMENT TECHNIQUES
Digital Image Processing
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Image Enhancement.
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Digital Image Processing
Computer Vision Lecture 3: Digital Images
Image Enhancement in the Spatial Domain
Image Enhancement in the
Digital Image Processing
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Digital Image Processing
Digital Image Processing
Image Processing Ch3: Intensity Transformation and spatial filters
Interesting article in the March, 2006 issue of Wired magazine
Lecture Four Chapter Three
Grey Level Enhancement
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Digital Image Processing
IT523 Digital Image Processing
IT523 Digital Image Processing
The spatial domain processes discussed in this chapter are denoted by the expression
Image Enhancement in the Spatial Domain
Presentation transcript:

Digital Image Processing Image Enhancement (Point Processing)

Contents In this lecture we will look at image enhancement point processing techniques: What is point processing? Negative images Thresholding Logarithmic transformation Power law transforms Grey level slicing Bit plane slicing

Basic Spatial Domain Image Enhancement Most spatial domain enhancement operations can be reduced to the form g (x, y) = T[ f (x, y)] where f (x, y) is the input image, g (x, y) is the processed image and T is some operator defined over some neighbourhood of (x, y) Origin x y Image f (x, y) (x, y)

Point Processing The simplest spatial domain operations occur when the neighbourhood is simply the pixel itself In this case T is referred to as a grey level transformation function or a point processing operation Point processing operations take the form s = T ( r ) where s refers to the processed image pixel value and r refers to the original image pixel value

Point Processing Example: Negative Images Negative images are useful for enhancing white or grey detail embedded in dark regions of an image Note how much clearer the tissue is in the negative image of the mammogram below Images taken from Gonzalez & Woods, Digital Image Processing (2002) s = 1.0 - r Original Image Negative Image

Point Processing Example: Negative Images (cont…) Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = intensitymax - r

Point Processing Example: Thresholding Thresholding transformations are particularly useful for segmentation in which we want to isolate an object of interest from a background s = 1.0 0.0 r <= threshold r > threshold Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Point Processing Example: Thresholding (cont…) Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = 0.0 r <= threshold 1.0 r > threshold

Intensity Transformations Left image: a very narrow range of the intensity values in the original image is matched to a wide range of intensity value in the processed image. And effectively this is the operation which gives enhancement of the image. Right image: Threshold If the intensity values is less than k, then the corresponding pixel in the processed image will be replaced by value zero. If the intensity values is greater k, the corresponding pixel in the processed image wil have a max. value. Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Basic Grey Level Transformations There are many different kinds of grey level transformations Three of the most common are shown here Linear Negative/Identity Logarithmic Log/Inverse log Power law nth power/nth root Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Logarithmic Transformations The general form of the log transformation is s = c * log(1 + r) The log transformation maps a narrow range of low input grey level values into a wider range of output values The inverse log transformation performs the opposite transformation

Logarithmic Transformations (cont…) Log functions are particularly useful when the input grey level values may have an extremely large range of values In the following example the Fourier transform of an image is put through a log transform to reveal more detail Images taken from Gonzalez & Woods, Digital Image Processing (2002) s = log(1 + r)

Logarithmic Transformations (cont…) Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = log(1 + r) We usually set c to 1 Grey levels must be in the range [0.0, 1.0]

Power Law Transformations Power law transformations have the following form s = c * r γ Map a narrow range of dark input values into a wider range of output values or vice versa Varying γ gives a whole family of curves Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Power Law Transformations (cont…) Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = r γ We usually set c to 1 Grey levels must be in the range [0.0, 1.0]

Power Law Example

Power Law Example (cont…) γ = 0.6

Power Law Example (cont…) γ = 0.4

Power Law Example (cont…) γ = 0.3

Power Law Example (cont…) The images to the right show a magnetic resonance (MR) image of a fractured human spine Different curves highlight different detail s = r 0.6 magnetic resonance الرنين المغناطيسي s = r 0.3 s = r 0.4 Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Power Law Example

Power Law Example (cont…) γ = 5.0

Power Law Transformations (cont…) An aerial photo of a runway is shown This time power law transforms are used to darken the image Different curves highlight different detail s = r 3.0 aerial photo صورة من الجو s = r 4.0 s = r 5.0 Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Gamma Correction Different camera sensors Images taken from Gonzalez & Woods, Digital Image Processing (2002) Different camera sensors  Have different responses to light intensity Produce different electrical signals for same input How do we ensure there is consistency in: a)Images recorded by different cameras for given light input b)Light emitted by different display devices for same image?

Gamma Correction What is the relation between: Camera: Light on sensor  vs. “intensity” of corresponding pixel Display: Pixel intensity  vs.   light from that pixel Relation between pixel value and corresponding  physical quantity is usually  complex, nonlinear Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Gamma Correction Many of you might be familiar with gamma correction of computer monitors Problem is that display devices do not respond linearly to different intensities Can be corrected using a log transform Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Gamma Correction Images taken from Gonzalez & Woods, Digital Image Processing (2002)

More Contrast Issues Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Piecewise Linear Transformation Functions Rather than using a well defined mathematical function we can use arbitrary user-defined transforms The images below show a contrast stretching linear transform to add contrast to a poor quality image Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Gray Level Slicing Highlights a specific range of grey levels Similar to thresholding Other levels can be suppressed or maintained Useful for highlighting features in an image In some cases, the application may be interested only in certain grey level values. Right image: the image will be enhanced in the desired range (A-B), and all other regions are suppressed Left image: The desired range of intensity has been enhanced but other intensity levels have remained as it is. Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing Often by isolating particular bits of the pixel values in an image we can highlight interesting aspects of that image Higher-order bits usually contain most of the significant visual information Lower-order bits contain subtle details Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) [10000000] [01000000] [00100000] [00001000] Images taken from Gonzalez & Woods, Digital Image Processing (2002) [00000100] [00000001]

Bit Plane Slicing (cont…)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Bit Plane Slicing (cont…) Reconstructed image using only bit planes 8 and 7 Reconstructed image using only bit planes 8, 7 and 6 Images taken from Gonzalez & Woods, Digital Image Processing (2002) Reconstructed image using only bit planes 7, 6 and 5

Report Histogram Specification

Summary We have looked at different kinds of point processing image enhancement Next time we will start to look at neighbourhood operations – in particular filtering and convolution