Manipulating contrast/point operations. Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y]

Slides:



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

CMPUT 615 Applications of Machine Learning in Image Analysis
Laboratory of Image Processing Pier Luigi Mazzeo
Chapter 3 cont’d. Adjacency, Histograms, & Thresholding.
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Image Processing Lecture 4
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)
HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING AND ITS APPLICATIONS Attila Kuba University of Szeged.
EE663 Image Processing Histogram Equalization Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Computer Vision Chapter 6 Color.
Digital Image Processing Contrast Enhancement: Part II
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ć
Image Processing. Processing Digital Images digital images are often processed using “digital filters” digital filters are based on mathematical functions.
HISTOGRAM TRANSFORMATION IN IMAGE PROCESSING SHINTA P TEKNIK INFORMATIKA STMIK MDP 2011.
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Basis beeldverwerking (8D040) dr. Andrea Fuster Prof.dr. Bart ter Haar Romeny Prof.dr.ir. Marcel Breeuwer dr. Anna Vilanova Histogram equalization.
Ji-Hee Han, Sejung Yang, and Byung-Uk Lee, Member, IEEE IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 20, NO. 2, FEBRUARY 2011.
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
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.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
USER VERIFICATION SYSTEM. Scope Web Interface RGB separation Pervasive.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Spectral contrast enhancement
Histograms- HPP. What is homogeneous? Homogeneous point process treats all pixels the same. p'=f(p); // homogeneous point processing does not care about.
_______________________________________________________________________________________________ © 2006 Daniel Vik Color Images on MSX1.
Remote Sensing and Image Processing: 2 Dr. Hassan J. Eghbali.
Seeram Chapter #3: Digital Imaging
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.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
Digital Image Processing EEE415 Lecture 3
Colors. Color Systems In computer graphics, we use RGB colors. But… –Can it represent all colors? –Is it linear? For example, (1.0, 1.0, 1.0) is white.
Homework 2 (Due: 3/26) A. Given a grayscale image I,
CH2. Point Processes Arithmetic Operation Histogram Equalization
Digital Image Processing Part 2 Contrast processing.
03/03/03© 2003 University of Wisconsin Last Time Subsurface scattering models Sky models.
Digital Image Processing
©Soham Sengupta,
Image Enhancement Objective: better visualization of remotely sensed images visual interpretation remains to be the most powerful image interpretation.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Digital Image Processing Image Enhancement in Spatial Domain
Image: Susanne Rafelski, Marshall lab Introduction to Digital Image Analysis Part I: Digital Images Kurt Thorn NIC UCSF.
Color Models Light property Color models.
Thanks to David Jacobs for the use of some slides
Image enhancement algorithms & techniques Point-wise operations
Lecture Notes: The Point Processing of Images
Ch. 4 – Displaying Quantitative Data (Day 1)
Image Enhancement.
Discussion #29 – Images II
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Circles! You are going to create an “image” with circle(s)
Digital Image Processing
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Intensity Transformations and Spatial Filtering
Range, Width, min-max Values and Graphs
Histograms and Color Balancing
Presentation transcript:

Manipulating contrast/point operations

Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y] RGB  gray conversion RGB  gray conversion Gamma correction Gamma correction Other methods Other methods histogram equalization histogram equalization color to gray color to gray scaling scaling

Gray to binary Thresholding Thresholding G  B G  B const int t=200; if (G[r][c]>t)B[r][c]=1; elseB[r][c]=0; How do we choose t? 1. Interactively 2. Automatically

Gamma correction

HISTOGRAM EQUALIZATION

Histogram equalization For many images we observe that it only uses a few different gray values. For many images we observe that it only uses a few different gray values. Often these gray values are close together. Often these gray values are close together.

Histogram equalization Histogram equalization goals: Histogram equalization goals: 1. Output image should use all gray values. 2. Output image has same number of pixels of each gray value. Which distribution is then preferred? (normal or uniform) Which distribution is then preferred? (normal or uniform) 3. (While maintaining the relationship (order) among gray values. - George’s rule.)

Histogram equalization from

Histo eq example (from

Histogram equalization Histogram equalization attempts to remap the input gray values to output gray values s.t. the histogram of the output achieves goals 1 and 2 (and 3) as best as possible. Histogram equalization attempts to remap the input gray values to output gray values s.t. the histogram of the output achieves goals 1 and 2 (and 3) as best as possible.

Histo eq example (from

Histogram Step 1: Estimate probability of a given gray value in an image. Step 1: Estimate probability of a given gray value in an image. h(g) = count of pixels w/ gray value equal to g. h(g) = count of pixels w/ gray value equal to g. histogram histogram p(g) = h(g) / (w*h) p(g) = h(g) / (w*h) w*h = # of pixels in entire image w*h = # of pixels in entire image Demo histogram. Demo histogram.

Histogram equalization Step 2: Estimate c.d.f. (cumulative distribution function). Step 2: Estimate c.d.f. (cumulative distribution function).

Histogram equalization Step 3: Use c.d.f. to map an input gray value g to “equalized” gray value, g’. Step 3: Use c.d.f. to map an input gray value g to “equalized” gray value, g’. Note: Since cdf(g) is in [0..1], we need to multiply by the max gray value so the result is in [0..max]. Note: Since cdf(g) is in [0..1], we need to multiply by the max gray value so the result is in [0..max]. Note: Calculate above only once for each gray value, save in a (lookup) table, and then let g’=lut[g]. Note: Calculate above only once for each gray value, save in a (lookup) table, and then let g’=lut[g].

Histogram equalization Only gray eq discussed so far. Only gray eq discussed so far. What about color? What about color? 1. Create 3 separate histograms for R, G, and B, and then equalize each individually (same as gray). 2. Better way is to convert RGB to color space with luminance (e.g., CIE XYZ, YIQ, YUV, HSL, or HSV), equalize luminance (same as gray), then convert back to RGB.

Histogram equalization algorithm Do Exercise 5.2 for homework. Do Exercise 5.2 for homework.

SCALING A RANGE OF GRAY VALUES

What about gray data that is less than 8 bits? Linearly map input [0,K] to [0,255]. Linearly map input [0,K] to [0,255].

What about gray data that is less than 8 bits? What if our minimum input value is something other than 0? What if our minimum input value is something other than 0?

What about gray data that is more than 8 bits? Linearly map input min to 0 and input max to 255. Linearly map input min to 0 and input max to 255. But we then compress (lose) our dynamic range, i.e., lose details. But we then compress (lose) our dynamic range, i.e., lose details. Map subranges of gray data to [0..255]. Map subranges of gray data to [0..255]. A.K.A. window width and level. A.K.A. window width and level.

from

Window width and level Map subranges of gray data to [0..255]. Map subranges of gray data to [0..255]. A.K.A. window width and level. A.K.A. window width and level.

Window width and level Map subranges of gray data to [0..255]. Map subranges of gray data to [0..255]. A.K.A. window width and level. A.K.A. window width and level.

from

COLOR TO GRAY CONVERSION

Standard conversion from rgb to gray NTSC luminance NTSC luminance int luminance = (int)(0.30*r *g *b + 0.5); if (luminance<0)luminance = 0; if (luminance>255)luminance = 255; bin/framed.pl?Document=/Measurement/App_Note s/NTSC_Video_Msmt/colorbars.html&FrameSet=tel evision