Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  3.2.1 Image Negatives  3.2.2 Log.

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 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Intensity Transformations (Chapter 3)
Digital Image Processing
ECE 472/572 - Digital Image Processing
Image Enhancement in the Spatial Domain
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
Lecture 4 Digital Image Enhancement
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.
6/9/2015Digital Image Processing1. 2 Example Histogram.
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.
Digital Image Processing
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.
Lecture 4 Digital Image Enhancement
Chapter 3: Image Enhancement in the Spatial Domain
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
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,
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.
Lecture Three Chapters Two and three Photo slides from Digital Image Processing, Gonzalez and Woods, Copyright 2002.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing Contrast Enhancement: Part I
Pattern Recognition Mrs. Andleeb Y. Khan Lecture 03 BCS-VII.
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
DIGITAL IMAGE PROCESSING
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.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
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
Prepared by: Hanan Hardan
Digital Image Processing CSC331 Image Enhancement 1.
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.
Chapter 3: Image Enhancement in the Spatial Domain
IMAGE ENHANCEMENT TECHNIQUES
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
Image Enhancement in the Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Processing Ch3: Intensity Transformation and spatial filters
IT523 Digital Image Processing
IT523 Digital Image Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log Transformations  Power-Law Transformations  Piecewise-Linear Transformation Functions  Contrast stretching  Gray-level slicing  Bit-plane slicing

 Process an image so that the result will be more suitable than the original image for a specific application.  The suitableness is up to each application.  A method which is quite useful for enhancing an image may not necessarily be the best approach for enhancing another images Principle Objective of Enhancement

5 2 domains  Spatial Domain : (image plane)  Techniques are based on direct manipulation of pixels in an image  Frequency Domain :  Techniques are based on modifying the Fourier transform of an image  There are some enhancement techniques based on various combinations of methods from these two categories.

6 Good images  For human visual  The visual evaluation of image quality is a highly subjective process.  It is hard to standardize the definition of a good image.  A certain amount of trial and error usually is required before a particular image enhancement approach is selected.

Spatial Domain  Procedures that operate directly on pixels. g(x,y) = T[f(x,y)] where  f(x,y)  f(x,y) is the input image  g(x,y)  g(x,y) is the processed image  T f (x,y)  T is an operator on f defined over some neighborhood of (x,y)

Mask/Filter  Neighborhood of a point (x,y) can be defined by using a square/rectangular (common used) or circular subimage area centered at (x,y)  The center of the subimage is moved from pixel to pixel starting at the top left corner. (x,y)

Point Processing  Neighborhood = 1x1 pixel  gf(x,y)  g depends on only the value of f at (x,y)  T s = T(r)  T = gray level (or intensity or mapping) transformation function: s = T(r)  Where rf(x,y) r = gray level of f(x,y) sg(x,y) s = gray level of g(x,y)  Because enhancement at any point in an image depends only on the gray level at that point, techniques in this category often are referred to as point processing.

Contrast Stretching  Produce higher contrast than the original by:  darkening the levels below m in the original image  Brightening the levels above m in the original image

Thresholding  Produce a two-level (binary) image  T(r) is called a thresholding function.

Mask Processing or Filtering  Neighborhood is bigger than 1x1 pixel  Use a function of the values of f in a predefined neighborhood of (x,y) to determine the value of g at (x,y)  The value of the mask coefficients determine the nature of the process.  Used in techniques like:  Image Sharpening  Image Smoothing

3 basic gray-level transformation functions  Linear function  Negative and identity transformations  Logarithm function  Log and inverse-log transformation  Power-law function  n th power and n th root transformations Input gray level, r Output gray level, s Negative Log nth root Identity nth power Inverse Log

Image Negatives [0, L-1] L = 2 n  An image with gray level in the range [0, L-1] where L = 2 n ; n = 1, 2 …  Negative transformation : s = L – 1 –r  Reversing the intensity levels of an image.  Suitable for enhancing white or gray detail embedded in dark regions of an image, especially when the black area dominant in size. Input gray level, r Output gray level, s Negative Log nth root Identity nth power Inverse Log

Image Negatives  Example: Negative Original

Log Transformations  c is a constant and r  0  Log curve maps a narrow range of low gray-level values in the input image into a wider range of output levels. The opposite is true for higher values.  Used to expand the values of dark pixels in an image while compressing the higher-level values. Input gray level, r Output gray level, s Negative Log nth root Identity nth power Inverse Log s = c log (1+r)

Example of Logarithm Image

Inverse Logarithm Transformations  Do opposite to the Log Transformations  Used to expand the values of high pixels in an image while compressing the darker-level values. Input gray level, r Output gray level, s Negative Log nth root Identity nth power Inverse Log

Power-Law Transformations s = cr   c and  are positive constants  Power-law curves with fractional values of  map a narrow range of dark input values into a wider range of output values. The opposite is true for higher values of input levels.  c =  = 1  Identity function Input gray level, r Output gray level, s s = cr  Plots of s = cr  for various values of  (c = 1 in all cases)

Example 1: Gamma correction  Cathode ray tube (CRT) devices have an intensity- to-voltage response that is a power function, with  varying from 1.8 to 2.5  The picture will become darker. s = cr 1/   Gamma correction is done by preprocessing the image before inputting it to the monitor with s = cr 1/  Monitor Gamma correction  = 2.5  =1/2.5 = 0.4

Example 2: MRI (a) The picture is predominately dark (b) Result after power-law transformation with  = 0.6 (c) transformation with  = 0.4 (best result) (d) transformation with  = 0.3 (washed out look) under than 0.3 will be reduced to unacceptable level. ab cd

Example 3 (a) image has a washed-out appearance, it needs a compression of gray levels  needs  > 1 (b) result after power-law transformation with  = 3.0 (suitable) (c) transformation with  = 4.0 (suitable) (d) transformation with  = 5.0 (high contrast, the image has areas that are too dark, some detail is lost) a dc b

Piecewise-Linear Transformation Functions  Advantage:  The form of piecewise functions can be arbitrarily complex  Disadvantage:  Their specification requires considerably more user input

Contrast Stretching  increase the dynamic range of the gray levels in the image  (b) a low-contrast image  (c) result of contrast stretching: (r 1,s 1 )=(r min,0) and (r 2,s 2 ) = (r max,L-1)  (d) result of thresholding

Gray-level slicing  Highlighting a specific range of gray levels in an image  Display a high value of all gray levels in the range of interest and a low value for all other gray levels  (a) transformation highlights range [A,B] of gray level and reduces all others to a constant level (result in binary image)  (b) transformation highlights range [A,B] but preserves all other levels

Bit-plane Slicing  Highlighting the contribution made to total image appearance by specific bits  Suppose each pixel is represented by 8 bits  Higher-order bits contain the majority of the visually significant data  Useful for analyzing the relative importance played by each bit of the image Bit-plane 7 (most significant) Bit-plane 0 (least significant) One 8-bit byte

Example An 8-bit fractal image

8 bit planes Bit-plane 7Bit-plane 6 Bit- plane 5 Bit- plane 4 Bit- plane 3 Bit- plane 2 Bit- plane 1 Bit- plane 0

Next lecture Reading  3.3 Histogram processing  Histogram Equalization  Histogram Specification  3.4 Enhancement Using Arithmetic/Logic Operations  Image Subtraction  Image Averaging