Gray level histograms

Similar documents
Edge detection. Gradient-based edge operators

Motivation. Gray Levels

Introduction to Digital Image Processing

Morphological Image Processing

Digital Image Processing

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations

Motivation. Intensity Levels

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Filtering and Enhancing Images

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

Digital Image Processing

Overcompressing JPEG images with Evolution Algorithms

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

Image Enhancement in Spatial Domain (Chapter 3)

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

3.3 Histogram Processing(page 142) h(r k )=n k. p(r k )=1

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

Image Enhancement 3-1

Point operation Spatial operation Transform operation Pseudocoloring

(Refer Slide Time: 0:38)

Multi-resolution image recognition. Jean-Baptiste Boin Roland Angst David Chen Bernd Girod

Linear Operations Using Masks

Keypoint detection. (image registration, panorama stitching, motion estimation + tracking, recognition )

Tracking Computer Vision Spring 2018, Lecture 24

Overview: motion estimation. Differential motion estimation

Digital Image Processing

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Digital Image Analysis and Processing

Feature-based methods for image matching

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Displacement estimation

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations I

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors

Chapter 3: Intensity Transformations and Spatial Filtering

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

EECS490: Digital Image Processing. Lecture #22

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

C2: Medical Image Processing Linwei Wang

Chapter - 2 : IMAGE ENHANCEMENT

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Flat-region Detection And False Contour Removal In The Digital TV Display

Problem 1 (10 Points)

Sampling and Reconstruction

Analysis of Binary Images

Lecture 4 Image Enhancement in Spatial Domain

EE795: Computer Vision and Intelligent Systems

Dense Image-based Motion Estimation Algorithms & Optical Flow

Filtering Images. Contents

Polytechnic Institute of NYU Fall 2012 EL5123/BE DIGITAL IMAGE PROCESSING

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Point and Spatial Processing

Feature Descriptors. CS 510 Lecture #21 April 29 th, 2013

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters

Introduction to color science

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

Basic Algorithms for Digital Image Analysis: a course

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1

MR IMAGE SEGMENTATION

Distributed Grayscale Stereo Image Coding with Improved Disparity and Noise Estimation

BCC Optical Stabilizer Filter

Image Enhancement: To improve the quality of images

Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering

Intensity Transformations and Spatial Filtering

Computer Assisted Image Analysis TF 3p and MN1 5p Lecture 1, (GW 1, )

Image Processing Lecture 10

Image Acquisition + Histograms

Ulrik Söderström 16 Feb Image Processing. Segmentation

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Enhancement of Sharpness and Contrast Using Adaptive Parameters

Broad field that includes low-level operations as well as complex high-level algorithms

CITS 4402 Computer Vision

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

Digital Image Processing COSC 6380/4393

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Warps, Filters, and Morph Interpolation

Image Processing (2) Point Operations and Local Spatial Operations

Multimedia Retrieval Ch 5 Image Processing. Anne Ylinen

Introduction to Computer Vision

EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Introduction to Computer Vision. Human Eye Sampling

Lecture 9: Hough Transform and Thresholding base Segmentation

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

From Pixels to Information Recent Advances in Visual Search

Resource Efficient Real-Time Processing of Contrast Limited Adaptive Histogram Equalization

Medical Image Segmentation Based on Mutual Information Maximization

UC San Diego UC San Diego Previously Published Works

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation

Lecture 10: Tutorial Sakrapee (Paul) Paisitkriangkrai Evan Tan A/Prof. Jian Zhang

VC 16/17 TP5 Single Pixel Manipulation

Digital Image Processing. Lecture # 3 Image Enhancement

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

Transcription:

#pixels Gray level histograms 3.5 4 x 104 3 Histogram Brain image 2.5 2 1.5 1 0.5 0 0 50 100 150 200 250 gray level Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 1

#pixels 3.5 x 104 3.5 x 3 104 Gray level histograms 2.5 3 2.5 2 1.5 2 1.5 1 0.5 1 Bay image 0.5 0 0 50 100 150 200 250 0 0 50 100 150 200 250 gray level Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 2

Gray level histogram in viewfinder Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 3

Gray level histograms To measure a histogram: For B-bit image, initialize 2 B counters with 0 Loop over all pixels x,y When encountering gray level f [x,y]=i, increment counter #i Normalized histogram can be thought of as an estimate of the probability distribution of the continuous signal amplitude Use fewer, larger bins to trade off amplitude resolution against sample size. Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 4

Histogram equalization Idea: Find a non-linear transformation g T f that is applied to each pixel of the input image f [x,y], such that a uniform distribution of gray levels results for the output image g[x,y]. Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 5

Histogram equalization Analyse ideal, continuous case first... Assume Normalized input values 0 f 1 and output values 0 g 1 T( f ) is differentiable, increasing, and invertible, i.e., there exists f T 1 g 0 g 1 Goal: pdf p g (g) = 1 over the entire range 0 g 1 Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 6

Histogram equalization for continuous case From basic probability theory Consider the transformation function Then... p g p f f g T f p f d 0 f 1 g p f f f dg df 0 dg df p f f T 1 g f f p f f T f p f 1 f g f T 1 g 1 p g g p f f 0 g 1 dg df f T 1 g Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 7

Histogram equalization for discrete case Now, f only assumes discrete amplitude values f 0, f 1,, f L-1 with empirical probabilities P 0 = n 0 n P 1 = n 1 n Discrete approximation of P L-1 = n L-1 n where n = L-1 n l l=0 å f g T f p f d 0 pixel count for amplitude f l g k Tf k k i0 P i for k 0,1..., L 1 The resulting values g k are in the range [0,1] and might have to be scaled and rounded appropriately. Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 8

Histogram equalization example Original image Bay... after histogram equalization Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 9

Histogram equalization example Original image Bay... after histogram equalization Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 10

Histogram equalization example Original image Brain... after histogram equalization Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 11

#pixels #pixels Histogram equalization example Original image Brain... after histogram equalization 44 x x 104 104 44 x x 104 104 3.5 3.5 33 2.5 2.5 22 1.5 1.5 11 0.5 0.5 0 0 0 50 50 100 150 200 250 gray level 3.5 3.5 33 2.5 2.5 22 1.5 1.5 11 0.5 0.5 0 0 0 50 50 100 150 200 250 gray level Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 12

Histogram equalization example Original image Moon... after histogram equalization Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 13

#pixels #pixels Histogram equalization example Original image Moon... after histogram equalization 12 x 104 12 x 104 10 10 8 8 6 6 4 4 2 2 0 0 50 100 150 200 250 gray level 0 0 50 100 150 200 250 gray level Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 14

#pixels Output gray level Contrast-limited histogram equalization 0.7 no clipping 0.7 0.4 0.4 0.1 0.1 Input gray level Input gray level Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 15

Adaptive histogram equalization Histogram equalization based on a histogram obtained from a portion of the image Sliding window approach: different histogram (and mapping) for every pixel Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 16 Tiling approach: subdivide into overlapping regions, mitigate blocking effect by smooth blending between neighboring tiles Limit contrast expansion in flat regions of the image, e.g., by clipping histogram values. ( Contrast-limited adaptive histogram equalization ) [Pizer, Amburn et al. 1987]

Adaptive histogram equalization Original image Parrot Global histogram equalization Adaptive histogram equalization, 8x8 tiles Adaptive histogram equalization, 16x16 tiles Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 17

Adaptive histogram equalization Original image Dental Xray Global histogram equalization Adaptive histogram equalization, 8x8 tiles Adaptive histogram equalization, 16x16 tiles Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 18

Adaptive histogram equalization Original image Skull Xray Global histogram equalization Adaptive histogram equalization, 8x8 tiles Adaptive histogram equalization, 16x16 tiles Digital Image Processing: Bernd Girod, 2013-2014 Stanford University -- Histograms 19