Image Processing – Contrast Enhancement

Slides:



Advertisements
Similar presentations
Point Processing Histograms. Histogram Equalization Histogram equalization is a powerful point processing enhancement technique that seeks to optimize.
Advertisements

Laboratory of Image Processing Pier Luigi Mazzeo
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Digital Image Processing Lecture11: Histogram Processing.
Topic 4 - Image Mapping - I DIGITAL IMAGING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
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)
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
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Digital Image Processing
What's a histogram? The Histogram shows the total tonal distribution in the image – global quality. It's a bar-chart of the count of pixels of every tone.
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
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.
CS443: Digital Imaging and Multimedia Point Operations on Digital Images Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring.
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
Spectral contrast enhancement
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
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.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Digital Image Processing Part 2 Contrast processing.
Image Enhancement in Spatial Domain Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 6-1 Chapter 6 The Normal Distribution Business Statistics, A First Course 4 th.
(Project) by:- ROHAN HIMANSHU ANUP 70282
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
Probability and Statistics
Thanks to David Jacobs for the use of some slides
Digital Data Format and Storage
IMAGE ENHANCEMENT TECHNIQUES
Histogram Equalization
1-Introduction (Computing the image histogram).
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
Image Enhancement.
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.
Computer Vision Lecture 16: Texture II
Image Enhancement in the Spatial Domain
Lecture Five Figures from Gonzalez and Woods, Digital Image Processing, Second edition, Prentice-Hall,2002.
Digital Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Enhancement Gray level transformation Linear transformation
Digital Image Processing
Histogram Probability distribution of the different grays in an image.
Digital Image Processing
Digital Image Processing
Digital Image Fundamentals
Statistics for Managers Using Microsoft® Excel 5th Edition
Histogram Equalization
Digital Image Processing
Grey Level Enhancement
Digital Image Processing
IT523 Digital Image Processing
IT523 Digital Image Processing
The spatial domain processes discussed in this chapter are denoted by the expression
Histogram The histogram of an image is a plot of the gray _levels values versus the number of pixels at that value. A histogram appears as a graph with.
The Normal Distribution
Presentation transcript:

Image Processing – Contrast Enhancement Jack Tompkins Department of Computer Science tompkinsj@uncw.edu

What is Contrast Enhancement Original Image with low contrast Enhanced Image

Luminance While contrast enhancement can be accomplished across r, g, and b bands, often the image is first converted to gray scale. https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.601-7-201103-I!!PDF-E.pdf When translating a color image to black and white (mode “L”), use the ITU-R 601-2 luma transform: L = R * 299/1000 + G * 587/1000 + B * 114/1000

Contrast Low contrast images with neighbors clustered on the low end of the intensity scale, closer to 0, are called low-key. Low contrast images that reside on the high end of the intensity scale, closer to 255, are called high-key. Normal contrast images are equalized. High contrast images will exhibit a full range of tones from black to white, with dark shadows and bright highlights.

How to Enhance Contrast Neighboring pixels with similar intensity are hard to distinguish. Low Contrast -> image values concentrated in a narrow range. Contrast enhancement -> distribute the pixel intensities across a broader range while maintaining relative brightness

Visualizing Pixel Counts Histograms A histogram is a display of statistical information representing the frequency of data items in successive numerical intervals of equal size. Histogram of a monochrome image with 256 possible gray levels or intensities ranging from 0 through 255. Each bin in the histogram represents a probability. P(i) = ni / n, where ni is the number of pixels with intensity i, n is the total number of pixels.

Pixel Counts - Histograms

Visualizing Pixel Counts Histograms histograms.xslx Bw1.jpg Luther Bell Lena Oira.jpg

By What Technique? Use a function, g, to generate a new image B from image A: B(x, y) = g(A(x, y)), x = 0,…, n-1, y = 0,…, m-1 The function, g, maps pixel intensities for each pixel in image A to a new intensity for that pixel in image B. Monotonically non-decreasing, (relative intensity relations remain) A short chapter excerpt with examples: TT92

Linear Transform Uniform linear transformation Say intensities are concentrated from 0 to 64, and we wish to map these to 0 to 255 g(f) = m f + b, where m = (t1 – t0)/(s1 - s0), b = t1 – m s1 g(f) = 255/64 * f + 255 – 255/64 * 64 = 255/64 f see histograms.xslx Easily adapted to piecewise transformations using multiple slope segments over sequential groups Can be fully automated

Histogram Equalization Digital Image Processing – Gonzalez & Woods, p 93 The probability of occurrence of gray level rk in an image is approximated by p(rk) = nk / n k = 0, 1, 2, …, L-1, where nk is the number of pixels with gray level rk, n is the number of pixels, and L is the total number of possible gray levels in the image (typically 256) A plot of pr(rk) is called a histogram, efficiently stored in an array with indices 0..255

Histogram Equalization Digital Image Processing – Gonzalez & Woods, p 93 A processed output image is obtained by mapping each pixel with level rk in the input image into a corresponding pixel with level sk in the output image sk = (L-1) 𝑗=0 𝑘 𝑝 (rj) = (L-1) 𝑗=0 𝑘 𝑛 𝑗 𝑛 = ((L-1)/n) 𝑗=0 𝑘 𝑛𝑗 Efficiently stored in an array with indices 0..255 - a look up table Histogram Equalization

Additional Techniques Image Contrast Enhancement Methods Log transform: g(f) = c log(1 + f) Power transform: g(f) = c f r, 0 < r < 1

Saving multiple image histograms to a single CSV file

Data gathering

Scanning in the Image Files