Thanks to David Jacobs for the use of some slides

Slides:



Advertisements
Similar presentations
Point Processing Histograms. Histogram Equalization Histogram equalization is a powerful point processing enhancement technique that seeks to optimize.
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 Lecture 4
Chapter - 2 IMAGE ENHANCEMENT
Image Histograms Cumulative histogram
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.
Course Website: Digital Image Processing Image Enhancement (Histogram Processing)
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.
Intensity Transformations
Digital Image Processing
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny Prof.dr.ir. Marcel Breeuwer dr. Anna Vilanova Histogram equalization.
CS324e - Elements of Graphics and Visualization Color Histograms.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
EEE 498/591- Real-Time DSP1 What is image processing? x(t 1,t 2 ) : ANALOG SIGNAL x : real value (t 1,t 2 ) : pair of real continuous space (time) variables.
Image Processing : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, and Gonzalez et al.
Image Enhancement in the Spatial Domain (chapter 3) Math 5467, Spring 2008 Most slides stolen from Gonzalez & Woods, Steve Seitz and Alexei Efros.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
IMAGE 1 An image is a two dimensional Function f(x,y) where x and y are spatial coordinates And f at any x,y is related to the brightness at that point.
Computing IV Chapter Three: imgproc module Image Processing Xinwen Fu.
Lecture II-2: Probability Review
Lecture 4 Digital Image Enhancement
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Probability theory 2 Tron Anders Moger September 13th 2006.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Manipulating contrast/point operations. Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y]
Point Processing (Szeliski 3.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Some figures from Alexei Efros, Steve Seitz, and Gonzalez.
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.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Intensity Transformations (Histogram Processing)
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
CH2. Point Processes Arithmetic Operation Histogram Equalization
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Image Enhancement.
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
Digital Image Processing
IMAGE PROCESSING AKSHAY P S3 EC ROLL NO. 9.
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Image Processing – Contrast Enhancement
Otsu’s Thresholding Method
Otsu’s Thresholding Method
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 Week III
Histogram Equalization
Digital Image Procesing Introduction to Image Enhancement Histogram Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL.
Digital Image Processing
Grey Level Enhancement
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Introduction to Mathematical tools in used in DIP
Digital Image Processing
Intensity Transformations and Spatial Filtering
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
Presentation transcript:

Thanks to David Jacobs for the use of some slides Histograms Thanks to David Jacobs for the use of some slides

Image Processing Image Processing means transforming images into new images Simplest image processing treats every pixel independently. I is input image, J is output image. I(x,y), J(x,y) are corresponding pixels. J(x,y) = f(I(x,y)).

Thresholding One of the simplest operations we can perform on an image is thresholding. For example, if we take the swan image and threshold it with a threshold of T, we make all pixels >= T into 1, and all pixels < T into 0.

Threshold T=128

Examples

Summary

Grayscale Histogram • Count intensities • Normalize • What determines Histogram? – Contrast, aperture, lighting levels, scene,

A simple image and its histogram

Examples

Definition of histogram To write this down, we might say that we have an image, I, in which the intensity at pixel with coordinates (x,y) is I(x,y). We would write the histogram h, as h(i) indicating that intensity i, appears h(i) times in the image. If we let the expression (a=b) have the value 1 when a=b, and 0 otherwise, we can write for histogram h(i):

Histograms allow image manipulation One reason to compute a histogram is that it allows us to manipulate an image by changing its histogram. We do this by creating a new image, J, in which: The trick is to choose an f that will generate a nice or useful image. Typically, we choose f to be monotonic. This means that: if u<v then f(u) < f(v). Non-monotonic functions tend to make an image look truly different, while monotonic changes will be more subtle.

Histogram Equalization The idea is to spread out the histogram so that it makes full use of the dynamic range of the image. For example, if an image is very dark, most of the intensities might lie in the range 0-50. By choosing f to spread out the intensity values, we can make fuller use of the available intensities, and make darker parts of an image easier to understand. If we choose f to make the histogram of the new image, J, as uniform as possible, we call this histogram equalization.

How to do it Cumulative Distribution Function (CDF). This encodes the fraction of pixels with an intensity that is equal to or less than a specific value. If h is a histogram and C is a CDF, then h(i) indicates the number of pixels with intensity of i, while , indicates the fraction of pixels with intensity less than or equal to i, assuming the image has N pixels.

Actual construction g is the histogram of J, and D its CDF. If there are k intensity levels in an image, then we want g=(N/k, N/k, …), and D=(1/k, 2/k,3/k, …). This means that we want D(i) = i/k. Notice that C(i) = D(f(i)). That is, all the pixels in I that have an intensity less than or equal to i will have an intensity less than or equal to f(i) in J (since f is monotonic, if j<i, f(j) < f(i)). Putting these together, we have D(f(i))=f(i)/k=C(i), so f(i) = kC(i).

Examples of histogram equalization

Examples

Comparing histograms

Treating histograms as probability distributions

Other uses of histograms

Mammograms