Digital Image Processing EEE415 Lecture 3

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
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 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
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.
6/9/2015Digital Image Processing1. 2 Example Histogram.
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
Chap. 3: Image Enhancement in the Spatial Domain Spring 2006, Jen-Chang Liu CSIE, NCNU.
Image Enhancement.
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
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Chap2 Image enhancement (Spatial domain)
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.
Intensity Transformations or Translation in Spatial Domain.
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.
Prepared by: Hanan Hardan
Digital Image Processing CSC331 Image Enhancement 1.
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 Enhancement in the Spatial Domain.
IMAGE ENHANCEMENT TECHNIQUES
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Image Enhancement in the Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Processing Ch3: Intensity Transformation and spatial filters
Grey Level Enhancement
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
IT523 Digital Image Processing
IT523 Digital Image Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

Digital Image Processing EEE415 Lecture 3 Image Enhancement in Spatial Domain Pixel Operations and Histogram Processing

Image Enhancement Process an image to make the result more suitable than the original image for a specific application Image enhancement is subjective (problem/application oriented) Image enhancement methods Spatial domain: Direct manipulation of pixel in an image (on the image plane) Frequency domain: Processing the image based on modifying the Fourier transform of an image Some techniques are based on various combinations of methods from these two categories

Image Enhancement No general theory Viewer is ultimate judge Highly subjective process Easier in machine perception

Types of image enhancement operations - Pixel point processing Pixel point processing is a form of image enhancement based only on the intensity of single pixels. No consideration what-so-ever is taken of neighbouring pixels, or the spatial arrangement of groups of pixels, or of the position of the pixel within the digital image. Pixel point processing is a simple but important type of image enhancement technique. All pixels are processed individually.

Pixel Point Processing The general equation for a point process is given by: g(x,y) = M[f(x,y)] Where g(x,y) is the output digital image, f(x,y) is the input digital image, and M is the mapping function. M maps or converts input pixel brightness to an output pixel brightness. The mapping function can be non-linear.

Types of image enhancement operations: Block processing Local operations The output value at (x,y) is dependent on the input values in the neighborhood of (x,y) Global operations The output value at (x,y) is dependent on all the values in the input image

Basic concepts Spatial domain enhancement methods can be generalized as g(x,y)=T[f(x,y)] f(x,y) : input image g(x,y): processed (output) image T[*] : an operator on f (or a set of input images), defined over neighborhood of (x,y) Neighborhood about (x,y): a square or rectangular sub- image area centered at (x,y) 4/25/2017

Basic Concepts 3x3 neighborhood about (x,y) 4/25/2017

Basic concepts g(x,y) = T [f(x,y)] Pixel/point operation: Neighborhood of size 1x1: g depends only on f at (x,y) T: a gray-level/intensity transformation/mapping function Let r = f(x,y) s = g(x,y) r and s represent gray levels of f and g at (x,y) Then s = T(r) Local operations: g depends on the predefined number of neighbors of f at (x,y) Implemented by using mask processing or filtering Masks (filters, windows, kernels, templates) : a small (e.g. 3×3) 2-D array, in which the values of the coefficients determine the nature of the process 4/25/2017

Common pixel operations Image negatives Log transformations Power-law transformations 4/25/2017

Pixel Operations: Image negatives Reverses the gray level order For L gray levels the transformation function is s =T(r) = (L-1)-r Input image (X-ray image) Output image (negative) Application: To enhance the visibility for images with more dark portion 4/25/2017

Pixel Operations: Contrast Scaling s =T(r) = a.r (a is a constant) 4/25/2017

Pixel Operations: Log transformations Function of s = c Log(1+r) 4/25/2017

Pixel Operations: Log transformations Properties of log transformations For lower amplitudes of input image the range of gray levels is expanded For higher amplitudes of input image the range of gray levels is compressed Application: This transformation is suitable for the case when the dynamic range of a processed image far exceeds the capability of the display device (e.g. display of the Fourier spectrum of an image) Also called “dynamic-range compression / expansion” 4/25/2017

Pixel Operations: Log transformations Fourier spectrum with values of range 0 to 1.5 x 106 scaled linearly The result applying log transformation, c = 1 4/25/2017

Pixel Operations: Power-law Transformation Basic form: s = crg , where c & g are positive Plots of equation s = crg, For various values of g (c = 1) 4/25/2017

Pixel Operations: Power-law Transformation For γ < 1: Expands values of dark pixels, compress values of brighter pixels For γ > 1: Compresses values of dark pixels, expand values of brighter pixels If γ=1 & c=1: Identity transformation (s = r) A variety of devices (image capture, printing, display) respond according to a power law and need to be corrected; Gamma (γ) correction The process used to correct the power-law response phenomena 4/25/2017

Pixel Operations: Power-law Transformation Example of gamma correction To linearize the CRT response a pre-distortion circuit is needed s = cr1/g 4/25/2017

Pixel Operations: Gamma correction Linear wedge gray scale image Response of CRT to Linear wedge Gamma corrected wedge Output of monitor 4/25/2017

Pixel Operations: Power-law Transformation MRI image of fractured human spine Result of applying power-law transformation c = 1, g = 0.6 Result of applying power-law transformation c = 1, g = 0.4 Result of applying power-law transformation c = 1, g = 0.3 4/25/2017

Pixel Operations: Power-law Transformation Original satellite image Result of applying power-law transformation c = 1, g = 3.0 Result of applying power-law transformation c = 1, g = 4.0 Result of applying power-law transformation c = 1, g = 5.0 4/25/2017

Pixel Operations: Piecewise-linear transformation Contrast stretching Goal: Increase the dynamic range of the gray levels for low contrast images Low-contrast images can result from poor illumination lack of dynamic range in the imaging sensor wrong setting of a lens aperture during image acquisition 4/25/2017

Pixel Operations: Piecewise-linear transformation Contrast stretching: Method where a1, a2, and a3 control the result of contrast stretching if a1 = a2 = a3 = 1 no change in gray levels if a1 = a3 = 0 and r1 = r2, T(*) is a thresholding function, the result is a binary image 4/25/2017

Pixel Operations: Piecewise-linear transformation Form of Transformation function Original low-contrast image Result of contrast stretching Result of thresholding 4/25/2017

Pixel Operations: Non-linear contrast stretching Non-linear contrast stretching is implemented using look-up tables, not formulas.

Pixel Operations: Bit-plane Slicing A bit-plane is the binary image associated with a selected bit’s contribution to overall pixel brightness. Most of the image structure is conveyed in the higher order bit planes. 27 = 128 26 = 64 25 = 32 24 = 16 23 = 8 22 = 4 21 = 2 20 = 1 Bit 7 (MSB) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (LSB) MSB = Most Significant Bit LSB = Least Significant Bit 1 Bit : max value = 1 = 21 – 1 1 Byte = 8 bits : max value = 255 = 28 – 1 1 Word = 2 bytes = 16 bits : max value = 65535 = 216 - 1 26

Pixel Operations: Bit-plane Slicing

Pixel Operations: Bit-plane Slicing The lower order bit planes carry the important but more subtle shading and detail of the digital image. LSB also carries digitisation noise (sampling uncertainty). 28

Pixel Operations: Bit-plane Slicing

Pixel Operations: Bit-plane Slicing

g(x,y)=T{f(x,y)}=a*f(x,y) Quiz-2 11/10/2010 Apply contrast stretching to following 2-bit image f(x,y) according to the transformation given in equation: g(x,y)=T{f(x,y)}=a*f(x,y) Where g(x,y) is out image and ‘a=2’ is scaling factor. Then change the dynamic range of output image to 0-3. 3 1 2 1 2 2 0 2 1 2 1 1 1 0 1 2