Digital Image Procesing Introduction to Image Enhancement Histogram Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.

Slides:



Advertisements
Similar presentations
Histogram Processing The histogram of a digital image with gray levels in the range [0, L-1] is a discrete function h(rk) = nk where rk is the kth gray.
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Image Histograms Cumulative histogram
Histogram Specification
Topic 4 - Image Mapping - I DIGITAL IMAGING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Intensity Transformations (Chapter 3)
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.
Course Website: Digital Image Processing Image Enhancement (Histogram Processing)
ECE 472/572 - Digital Image Processing
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing Contrast Enhancement: Part II
6. Gray level enhancement Some of the simplest, yet most useful, image processing operations involve the adjustment of brightness, contrast or colour in.
Image Enhancement in the Spatial Domain
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Image Enhancement by Modifying Gray Scale of Individual Pixels
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی دانلود جزوات کارشناسی ارشد نرم افزار علوم تحقیقات البرز دانشگاه آزاد کرج Karaj.unicloob.ir.
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Lecture 4 Digital Image Enhancement
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
Digital Image Processing
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Image Enhancement.
Lecture 4 Digital Image Enhancement
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Point Operations – Chapter 5. Definition Some of the things we do to an image involve performing the same operation on each and every pixel (point) –We.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
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.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
Digital Image Processing
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
Lecture Five Figures from Gonzalez and Woods, Digital Image Processing, Second edition, Prentice-Hall,2002.
Image Enhancement in the
Digital Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Histogram Probability distribution of the different grays in an image.
Digital Image Processing
Digital Image Processing
Digital Image Processing Week III
Histogram Equalization
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.
Digital Image Procesing Discrete CosineTrasform (DCT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 9, Friday 1st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lecture 18, Friday 21st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 19-20, Tuesday 25st November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Maths for Signals and Systems Linear Algebra in Engineering Class 1, Friday 28th November 2014 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Digital Image Processing
Intensity Transformations and Spatial Filtering
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Lecture 6 Histogram processing.
Image Enhancement in Spatial Domain: Point Processing
Presentation transcript:

Digital Image Procesing Introduction to Image Enhancement Histogram Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON

Image Enhancement The goal is to process an image so that the resulting image is: more suitable than the original image for a specific application of better quality in terms of some quantitative metric visually better Spatial domain methods Frequency domain methods.

Spatial Domain Methods: Local neighborhood processing  

Spatial Domain Methods: Point processing  

Point Processing: contrast enhancement In the figures below you can see examples of two different intensity transformations. The figure on the right shows the process of binarization of the image.

Histogram Processing: definition of image histogram   dark image low contrast image bright image high contrast image

Generic figures of histograms

Two different images with the same histogram.

Histogram Processing: definition of intensity transformation  

Histogram Processing: definition of intensity transformation The condition for T(r) to be monotonically increasing guarantees that ordering of the output intensity values will follow the ordering of the input intensity values (avoids reversal of intensities). If T(r) is strictly monotonically increasing then the mapping from s back to r will be 1-1. The second condition (T(r) in [0,1]) guarantees that the range of the output will be the same as the range of the input.

Monotonicity versus strict monotonicity We cannot perform inverse mapping (from s to r). Inverse mapping is possible.

Modelling intensities as continuous variables  

Histogram Equalization: continuous form  

Histogram Equalization: continuous form  

Histogram Equalization: discrete form  

A histogram equalization example in discrete form  

A histogram equalization example in discrete form  

A histogram equalization example in discrete form Notice that due to discretization, the resulting histogram will rarely be perfectly flat. However, it will more “extended” compared to the original histogram.

A set of images with same content but different histograms dark image low contrast image 1 3 bright image 4 high contrast image 2

Histogram equalization applied to the dark image 1

Histogram equalization applied to the bright image 2

Histogram equalization applied to the low and high contrast images 3 4

Transformation functions for histogram equalization for the previous example  

An example of an unfortunate histogram equalization Example of image of Phobos (Mars moon) and its histogram. Histogram equalization (bottom of right image) does not always provide the desirable results.

Histogram Specification  

Histogram Specification  

Histogram Specification  

normalised equalised intensities Histogram Specification: Example original intensities number of pixels probability cumulative CM equalised intensities CM x 7 normalised equalised intensities 790 0.19 1.33 1 1023 0.25 0.44 3.08 3 2 850 0.21 0.65 4.55 5 656 0.16 0.81 5.67 6 4 329 0.08 0.89 6.23 245 0.06 0.95 6.65 7 122 0.03 0.98 6.86 81 0.02

equalised intensities normalised equalised intensities Histogram Specification: Example desired intensities probability cumulative CM equalised intensities CM x 7 normalised equalised intensities 1 2 3 0.15 1.05 4 0.2 0.35 2.45 5 0.3 0.65 4.55 6 0.85 5.95 7

Histogram Specification: Example original intensities equalised intensities (AVAILABLE) 1 3 2 5 6 4 7 desired intensities equalised intensities (NOT AVAILABLE!!!) 1 2 3 4 5 6 7 equalised intensities (available) 1 3 5 6 7 NEW intensities (available) 3 4 5 6 7

Histogram Specification: Example Notice that due to discretization, the resulting histogram will rarely be exactly the same as the desired histogram. Top left: original pdf Top right: desired pdf Bottom left: desired CDF Bottom right: resulting pdf

Histogram Specification: Example Specified histogram. Transformation function and its inverse. Resulting histogram.

Histogram Equalization: Examples

Histogram Equalization: Examples

Histogram Equalization: Examples

Histogram Equalization: Examples

Histogram Equalization: Examples

Histogram Equalization: Examples

Histogram Specification: Examples

Local Histogram Specification The histogram processing methods discussed previously are global (transformation is based on the intensity distribution of the entire image). This global approach is suitable for overall enhancement. There are cases in which it is necessary to enhance details over small areas in an image. The number of pixels in these areas may have negligible influence on the computation of a global transformation. The solution is to devise transformation functions based on the intensity distribution in a neighbourhood around every pixel.

Local Histogram Specification: Examples

Local Histogram Specification: Examples