HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING AND ITS APPLICATIONS Attila Kuba University of Szeged.

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
Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Image Processing Lecture 4
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Chapter - 2 IMAGE ENHANCEMENT
Advanced Biomedical Imaging Dr. Azza Helal A. Prof. of Medical Physics Faculty of Medicine Alexandria University Lecture 6 Basic physical principles of.
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
Digital Imaging and Image Analysis
Image Histograms Cumulative histogram
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.
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ć
HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING SHINTA P TEKNIK INFORMATIKA STMIK MDP 2011.
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Histogram Manipulation
Color Image Processing
School of Computing Science Simon Fraser University
Zhengya Xu, Hong Ren Wu, Xinghuo Yu, Fellow, IEEE, Bin Qiu, Senior Member, IEEE Colour Image Enhancement by Virtual Histogram Approach IEEE Transactions.
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.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Image Enhancement.
Dye Sublimation Color Management
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
Digital Image Characteristic
Spectral contrast enhancement
The Digital Image.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Any questions about the current assignment? (I’ll do my best to help!)
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Manipulating contrast/point operations. Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y]
Remote Sensing and Image Processing: 2 Dr. Hassan J. Eghbali.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
1 Remote Sensing and Image Processing: 2 Dr. Mathias (Mat) Disney UCL Geography Office: 301, 3rd Floor, Chandler House Tel:
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
Intensity Transformations or Translation in Spatial Domain.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Digital Image Processing Part 1 Introduction. The eye.
Presented By: ROLL No IMTIAZ HUSSAIN048 M.EHSAN ULLAH012 MUHAMMAD IDREES027 HAFIZ ABU BAKKAR096(06)
Intensity Transformations (Histogram Processing)
Computer Graphics An Introduction Jimmy Lam The Hong Kong Polytechnic University.
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
Computational Biology, Part 22 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
©Soham Sengupta,
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Computer Graphics: Achromatic and Coloured Light.
Misc. Non-linear Image Processing - Pixel to pixel operations - Histogram equalization - Grey level and colour enhancement - Neighbourhood operations.
Color Image Processing
Color Image Processing
Color Image Processing
Perception and Measurement of Light, Color, and Appearance
Discussion #29 – Images II
Color Image Processing
Chap.8 Image Analysis 숙명여자대학교 컴퓨터과학과 최 영 우 2005년 2학기.
Color Image Processing
Histogram Equalization
Digital Image Processing
Grey Level Enhancement
Presentation transcript:

HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING AND ITS APPLICATIONS Attila Kuba University of Szeged

Contents Histogram Histogram transformation Histogram equalization Contrast streching Applications

Histogram The (intensity or brightness) histogram shows how many times a particular grey level (intensity) appears in an image. For example, 0 - black, 255 – white imagehistogram

Histogram II An image has low contrast when the complete range of possible values is not used. Inspection of the histogram shows this lack of contrast.

Histogram of color images RGB color can be converted to a gray scale value by Y = 0.299R G B Y: the grayscale component in the YIQ color space used in NTSC television. The weights reflect the eye's brightness sensitivity to the color primaries.

Histogram of color images II Histogram: individual histograms of red, green and blue Blue

R R R G B Histogram of color images III

Histogram of color images IV or a 3-D histogram can be produced, with the three axes representing the red, blue and green channels, and brightness at each point representing the pixel count

Histogram transformation Point operation T(r k ) =s k rkrk T sksk Properties of T: keeps the original range of grey values monoton increasing grey values:

Histogram equalization (HE) transforms the intensity values so that the histogram of the output image approximately matches the flat (uniform) histogram

Histogram equalization II. As for the discrete case the following formula applies: k = 0,1,2,...,L-1 L: number of grey levels in image (e.g., 255) n j : number of times j-th grey level appears in image n: total number of pixels in the image ·(L-1) ?

Histogram equalization III

Histogram equalization IV

Histogram equalization V cumulative histogram

Histogram equalization VI

Histogram equalization VII HE

histogram can be taken also on a part of the image Histogram equalization VIII

Histogram projection (HP) assigns equal display space to every occupied raw signal level, regardless of how many pixels are at that same level. In effect, the raw signal histogram is "projected" into a similar-looking display histogram.

Histogram projection II HE HP IR image

Histogram projection III occupied (used) grey level: there is at least one pixel with that grey level B(k): the fraction of occupied grey levels at or below grey level k B(k) rises from 0 to 1 in discrete uniform steps of 1/n, where n is the total number of occupied levels HP transformation: s k = 255 ·B(k).

Plateau equalization By clipping the histogram count at a saturation or plateau value, one can produce display allocations intermediate in character between those of HP and HE.

Plateau equalization II HE PE 50

Plateau equalization III The PE algorithm computes the distribution not for the full image histogram but for the histogram clipped at a plateau (or saturation) value in the count. When that plateau value is set at 1, we generate B(k) and so perform HP; When it is set above the histogram peak, we generate F(k) and so perform HE. At intermediate values, we generate an intermediate distribution which we denote by P(k). PE transformation: s k = 255· P(k)

Histogram specification (HS) an image's histogram is transformed according to a desired function Transforming the intensity values so that the histogram of the output image approximately matches a specified histogram.

Histogram specification II ST S -1 * T histogram 1 histogram 2 ?

Contrast streching (CS) By stretching the histogram we attempt to use the available full grey level range. The appropriate CS transformation : s k = 255·(r k -min)/(max-min)

Contrast streching II

Contrast streching III CS does not help here HE ?

Contrast streching IV CS HE

Contrast streching V CS 1% - 99%

Contrast streching VI HE CS 79, 136 CS Cutoff fraction: 0.8

Contrast streching VIII a more general CS: 0, if r k < p low s k = 255·(r k - p low )/(p high - p low ), otherwise 255,if r k > p high

Contrast streching IX

Contrast streching X

Contrast streching XI

Applications CT lung studies Thresholding Normalization Normalization of MRI images Presentation of high dynamic images (IR, CT)

CT lung studies Yinpeng JinHE taken in a part of the image

CT lung studies R.Rienmuller

Thresholding converting a greyscale image to a binary one for example, when the histogram is bi-modal threshold: 120

Thresholding II when the histogram is not bi-modal threshold: 80threshold: 120

Normalization I When one wishes to compare two or more images on a specific basis, such as texture, it is common to first normalize their histograms to a "standard" histogram. This can be especially useful when the images have been acquired under different circumstances. Such a normalization is, for example, HE.

Normalization II Histogram matching takes into account the shape of the histogram of the original image and the one being matched.

Normalization of MRI images MRI intensities do not have a fixed meaning, not even within the same protocol for the same body region obtained on the same scanner for the same patient.

Normalization of MRI images II L. G. Nyúl, J. K. Udupa

Normalization of MRI images III L. G. Nyúl, J. K. Udupa A:Histograms of 10 FSE PD brain volume images of MS patients. B:The same histograms after scaling. C:The histograms after final standardization. A BC

Normalization of MRI images IV m1m1 m2m2 p1p1  p2p2 m1m1 m2m2 p1p1  p2p2 Method: transforming image histograms by landmark matching Determine location of landmark  i (example: mode, median, various percentiles (quartiles, deciles)). Map intensity of interest to standard scale for each volume image linearly and determine the location  ’s of  i on standard scale. unimodal bimodal

Normalization of MRI images V

Applications III A digitized high dynamic range image, such as an infrared (IR) image or a CAT scan image, spans a much larger range of levels than the typical values ( ) available for monitor display. The function of a good display algorithm is to map these digitized raw signal levels into display values from 0 to 255 (black to white), preserving as much information as possible for the purposes of the human observer.

Applications IV The HP algorithm is widely used by infrared (IR) camera manufacturers as a real-time automated image display. The PE algorithm is used in the B-52 IR navigation and targeting sensor.