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

Slides:



Advertisements
Similar presentations
Describing Data: Frequency Distributions and Graphic Presentation
Advertisements

DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Probability Distributions
16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
Chapter 4: Basic Estimation Techniques
1 ECE 495 – Integrated System Design I Introduction to Image Processing ECE 495, Spring 2013.
The x- and y-Intercepts
Shifting, Reflecting, and Stretching Graphs
Week 1.
CIS Based on text book: F.M. Dekking, C. Kraaikamp, H.P.Lopulaa, L.E.Meester. A Modern Introduction to Probability and Statistics Understanding.
Simple Linear Regression Analysis
Analyzing Data (C2-5 BVD) C2-4: Categorical and Quantitative Data.
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Image Histograms Cumulative histogram
Digital Image Processing Lecture11: Histogram Processing.
Topic 4 - Image Mapping - I DIGITAL IMAGING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Histograms – Chapter 4 Continued.
Intensity Transformations (Chapter 3)
HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING AND ITS APPLICATIONS Attila Kuba University of Szeged.
Section 1.6 Frequency Distributions and Histograms.
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
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 Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
1Ellen L. Walker ImageJ Java image processing tool from NIH Reads / writes a large variety of images Many image processing operations.
HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING SHINTA P TEKNIK INFORMATIKA STMIK MDP 2011.
Chapter 4: Image Enhancement
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
CS324e - Elements of Graphics and Visualization Color Histograms.
Image Enhancement.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
Digital Images The nature and acquisition of a digital image.
Chapter 9 Numerical Integration Numerical Integration Application: Normal Distributions Copyright © The McGraw-Hill Companies, Inc. Permission required.
Frequency Distributions and Graphs
Digital Image Characteristic
Spectral contrast enhancement
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
The Digital Image.
Point Processing Point by Point by Point. Taxonomy  Images can be represented in two domains  Spatial Domain: Represents light intensity at locations.
Adobe Photoshop CS Design Professional COLORS ADJUSTING.
© 2011 Delmar, Cengage Learning Chapter 11 Adjusting Colors.
Chapter 11 Adjusting Colors. Chapter Lessons Correct and adjust color Enhance colors by altering saturation Modify color channels using levels Create.
The Diminishing Rhinoceros & the Crescive Cow Exploring, Organizing, and Describing, Qualitative Data.
Remote Sensing and Image Processing: 2 Dr. Hassan J. Eghbali.
Image Processing Image Histogram Lecture
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.
1. General Image Operations Three type of image operations 1.Point operations 2.Geometric operations 3.Spatial operations.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
Dot Plots and Histograms Lesson After completing this lesson, you will be able to say: I can create a dot plot and histogram to display a set of.
September 17, 2013Computer Vision Lecture 5: Image Filtering 1ColorRGB HSI.
Introduction to Computer Graphics
Applying Pixel Values to Digital Images
Digital Image Processing Part 2 Contrast processing.
Image Processing Intro2CS – week 6 1. Image Processing Many devices now have cameras on them Lots of image data recorded for computers to process. But.
Photography, chapters 6 & 7
The Diminishing Rhinoceros & the Crescive Cow
Thanks to David Jacobs for the use of some slides
1-Introduction (Computing the image histogram).
Computer Vision Lecture 4: Color
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 Processing – Contrast Enhancement
Histogram Probability distribution of the different grays in an image.
Digital Image Processing
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
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.
Presentation transcript:

Point Processing Histograms

Histogram Equalization Histogram equalization is a powerful point processing enhancement technique that seeks to optimize the contrast of an image at all points. As the name suggests, histogram equalization seeks to improve image contrast by flattening, or equalizing, the histogram of an image. A histogram is a table that simply counts the number of times a value appears in some data set. In image processing, a histogram is a histogram of sample values. For an 8-bit image there will be 256 possible samples in the image and the histogram will simply count the number of times that each sample value actually occurs in the image. In other words, the histogram gives the frequency distribution of sample values within the image. 2

Histogram Equalization For an N-bit WxH grayscale image where the i th sample is known to occur n i times, the histogram is given as: Histograms are typically normalized such that the histogram values sum to 1. In Equation (5.10) the histogram is not normalized since the sum of the histogram values is WH. The normalized histogram is given in Equation (5.11), where hat-h(i) represents the probability that a randomly selected sample of the image that will have a value of i: 3

Histogram Equalization A histogram is typically plotted as a bar chart where the horizontal axis corresponds to the dynamic range of the image and the height of each bar corresponds to the sample count or the probability. Generally, the overall shape of a histogram doesnt convey much useful information but there are several key insights that can be gained. The spread of the histogram relates directly to image contrast where narrow histogram distributions are representative of low contrast images wide distributions are representative of higher contrast images. Generally, the histogram of an underexposed image will have a relatively narrow distribution with a peak that is significantly shifted to the left Generally, the histogram of an overexposed image will have a relatively narrow distribution with a peak that is significantly shifted to the right. 4

Histogram Example 5

The image is characterized by low contrast. This is reflected in the histogram which shows that most samples are in a narrow region of the dynamic range (little information below 40 or above 190). 6

Histogram Equalization Histogram equalization is a way of improving the local contrast of an image without altering the global contrast to a significant degree. This method is especially useful in images having large regions of similar tone such as an image with a very light background and dark foreground. Histogram equalization can expose hidden details in an image by stretching out the contrast of local regions and hence making the differences in the region more pronounced and visible. Non-linear point processing technique that attempts to flatten the histogram such that there are equal numbers of each sample value in the image. 7

Histogram Equalization Uses the cumulative distribution function (CDF) as the lookup table. Given an N-bit image having histogram h, the normalized CDF is given by: The CDF essentially answer the question what percentage of the samples in an image are equal-to-or-less-than value j? The normalized CDF must be rescaled to [0,255] and is then used as the lookup table. 8

CDF (Extra notes) The CDF is monotonically increasing The derivative (slope) of the CDF is steep where there is a lot of information in the source and is flat where there is little information in the source. The CDF of a perfectly equalized image is a straight line with a slope of 1. 9

Numeric Example of Equalization 10

Example

Histogram Equalizing Color Images Histogram equalization can also be done on color images by performing the grayscale technique on each separate band of the image. Care should be taken when doing this, however, since the colors will likely be dramatically altered as a result. If the tonal distributions are different among the red, green, and blue channels of an image, for example, the lookup tables for each channel will be vastly different and equalization will alter the color patterns present in the source. Histogram equalization of a color image is best performed on the intensity channel only, which implies that the equalization should be done on the brightness band of an image using the HSB or YIQ color spaces, for example. 13

Histogram Equalizing Color Images Consider equalizing a color image (b) equalizing each band independently (c) equalizing only the intensity 14

Implementation (Histogram) 15

Implementation (Histogram) (Continued) 16

Local equalization 17 Histogram equalization can be performed on a local level. Compute the histogram and CDF of a local region about each pixel and then use that CDF as a lookup table for that pixel alone. Has the (possibly negative) effect of eliminating global contrast! Original ImageEqualized ImageLocally Equalized Image

Color Histogram A color histogram is a 3D entity where each pixel of an image (rather than each sample) is placed into a bin. The color space is divided into volumetric bins each of which represent a range of colors. Each axis of the color space may be divided independently of the others. This allows the axes to have different resolutions. In YCbCr may want to allocate more resolution on Y than Cb or Cr In RGB may want to allocation more resolution in G than R or B 18

Color Histogram 3x15x3 resolution3x4x3 resolution8x3x3 resolution Consider the resolution of various color histogram binnings in RGB space. The resolution of each axis may be set independently of the others. 19

Example

Color Histogram Usage Color histograms provide a concise but coarse characterization of an image Often used in CBIR systems Large database of images which can be searched by image content, not by keyword or metadata Use color histograms to refine the search Similar histograms are likely to reflect visually similar source images Two very dissimilar source images may have two similar histograms, however 21