The Image Histogram.

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

Similarity and Difference
Change Detection C. Stauffer and W.E.L. Grimson, “Learning patterns of activity using real time tracking,” IEEE Trans. On PAMI, 22(8): , Aug 2000.
Chapter 3 Image Enhancement in the Spatial Domain.
Empirical Evaluation of Dissimilarity Measures for Color and Texture
Intensity Transformations (Chapter 3)
Digital Image Processing
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 II Jen-Chang Liu, 2006.
Digital Image Processing Contrast Enhancement: Part II
Image Enhancement in the Spatial Domain
Automatic Histogram Threshold Using Fuzzy Measures 呂惠琪.
Intensity Transformations
Chapter 4: Image Enhancement
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Image Enhancement by Modifying Gray Scale of Individual Pixels
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 and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Face Recognition and Biometric Systems 2005/2006 Filters.
Image Similarity and the Earth Mover’s Distance Empirical Evaluation of Dissimilarity Measures for Color and Texture Y. Rubner, J. Puzicha, C. Tomasi and.
Computer Vision Group, University of BonnVision Laboratory, Stanford University Abstract This paper empirically compares nine image dissimilarity measures.
6/9/2015Digital Image Processing1. 2 Example Histogram.
EE 7730 Image Segmentation.
Chapter 10 Image Segmentation.
Segmentation Divide the image into segments. Each segment:
Mutual Information for Image Registration and Feature Selection
Chapter 10 Image Segmentation.
IMAGE 1 An image is a two dimensional Function f(x,y) where x and y are spatial coordinates And f at any x,y is related to the brightness at that point.
Image Segmentation by Clustering using Moments by, Dhiraj Sakumalla.
Spectral contrast enhancement
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
Machine Vision for Robots
§4 Continuous source and Gaussian channel
Image Enhancement T , Biomedical Image Analysis Seminar presentation Hannu Laaksonen Vibhor Kumar.
Texture. Texture is an innate property of all surfaces (clouds, trees, bricks, hair etc…). It refers to visual patterns of homogeneity and does not result.
Digital Image Processing
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.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
CS654: Digital Image Analysis
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
Bart M. ter Haar Romeny.  Question: can top-points be used for object- retrieval tasks?
CSSE463: Image Recognition Day 5 Lab 2 due Wednesday, 1:30. Lab 2 due Wednesday, 1:30. Tip: by Tues 1:30  + 1 late day to use on: Tip: by Tues 1:30 
Kylie Gorman WEEK 1-2 REVIEW. CONVERTING AN IMAGE FROM RGB TO HSV AND DISPLAY CHANNELS.
Digital Image Processing
Homework 2 (Due: 3/26) A. Given a grayscale image I,
Similarity Measures Spring 2009 Ben-Gurion University of the Negev.
September 28, SEGMENTATION ITERATIVE ALGORITHMS HOUGH TRANSFORM.
Introduction to Scale Space and Deep Structure. Importance of Scale Painting by Dali Objects exist at certain ranges of scale. It is not known a priory.
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.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
CSSE463: Image Recognition Day 5
The Earth Mover's Distance
Fall 2012 Longin Jan Latecki
Image Enhancement in the
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Histogram Probability distribution of the different grays in an image.
CSSE463: Image Recognition Day 5
Handwritten Characters Recognition Based on an HMM Model
Digital Image Processing Week III
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
Presentation transcript:

The Image Histogram

Image Characteristics

Image Mean I x I INEW(x,y)=I(x,y)-b x

Changing the image mean

Image Contrast The local contrast at an image point denotes the (relative) difference between the intensity of the point and the intensity of its neighborhood: 0.7 0.5 0.3 0.1

The contrast definition of the entire image is ambiguous In general it is said that the image contrast is high if the image gray-levels fill the entire range Low contrast High contrast

I I x x INEW(x,y)=·I(x,y)+ How can we maximize the image contrast using the above operation? Problems: Global (non-adaptive) operation. Outlier sensitive.

The Image Histogram H(k) specifies the # of pixels with gray-value k Occurrence (# of pixels) Gray Level H(k) specifies the # of pixels with gray-value k Let N be the number of pixels: P(k) = H(k)/N defines the normalized histogram defines the accumulated histogram

Histogram Normalized Histogram Accumulated Histogram

Examples The image histogram does not fully represent the image P(I) 1 1 0.5 I I H(I) H(I) 0.1 0.1 I I Pixel permutation of the left image The image histogram does not fully represent the image

Original image Decreasing contrast Increasing average P(I) I P(I) I 0.1 Original image I P(I) Decreasing contrast 0.1 I P(I) 0.1 Increasing average I

Image Statistics The image mean: Generally: The image s.t.d. : 1 2 3 4 5 6 7 8 9 10 0.05 0.1 0.15 0.2 0.25 gray level

Entropy of a 2 values variable Image Entropy The image entropy specifies the uncertainty in the image values. Measures the averaged amount of information required to encode the image values. Entropy of a 2 values variable

An infrequent event provides more information than a frequent event Entropy is a measure of histogram dispersion entropy=7.4635 entropy=0

Adaptive Histogram In many cases histograms are needed for local areas in an image Examples: Pattern detection adaptive enhancement adaptive thresholding tracking

H(x,y)= H(x,y-1)+H(x-1,y) – H(x-1,y-1) Implementation: Integral Histogram porkili 05 H(x-1,y-1) H(x-1,y) H(x,y) H(x,y-1) Integral histogram: H(x,y) represent the histogram of a window whose right-bottom corner is (x,y) Construct by can order: H(x,y)= H(x,y-1)+H(x-1,y) – H(x-1,y-1)

H(x1:x2,y1:y2) =H(x2,y2)+ H(x1,y1)-H(x1,y2)-H(x2,y1) Using integral histogram we can calculate local histograms of any window H(x1:x2,y1:y2) x y (x2,y1) (x1,y1) (x1,y2) (x2,y2) H(x1:x2,y1:y2) =H(x2,y2)+ H(x1,y1)-H(x1,y2)-H(x2,y1)

Histogram Usage Digitizing parameters Measuring image properties: Average Variance Entropy Contrast Area (for a given gray-level range) Threshold selection Image distance Image Enhancement Histogram equalization Histogram stretching Histogram matching

Example: Auto-Focus In some optical equipment (e.g. slide projectors) inappropriate lens position creates a blurred (“out-of-focus”) image We would like to automatically adjust the lens How can we measure the amount of blurring?

Image mean is not affected by blurring Image s.t.d. (entropy) is decreased by blurring Algorithm: Adjust lens according the changes in the histogram s.t.d.

Thresholding kold F(k) 255 Threshold value knew

Threshold Selection Original Image Binary Image Threshold too low Threshold too high

Segmentation using Thresholding Original Histogram 50 75 Threshold = 50 Threshold = 75

Segmentation using Thresholding Original Histogram 21 Threshold = 21

Adaptive Thresholding Thresholding is space variant. How can we choose the the local threshold values?

Color Segmentation Segmentation is based on color values. Apply clustering in color space (e.g. k-means). Segment each pixel to its closest cluster.

Histogram based image distance Problem: Given two images A and B whose (normalized) histogram are PA and PB define the distance D(A,B) between the images. Example Usage: Tracking Image retrieval Registration Detection Many more ... Porkili 05

Option 1: Minkowski Distance Problem: distance may not reflects the perceived dissimilarity: <

Option 2: Kullback-Leibler (KL) Distance Measures the amount of added information needed to encode image A based on the histogram of image B. Non-symmetric: DKL(A,B)DKL(B,A) Suffers from the same drawback of the Minkowski distance.

Option 3: The Earth Mover Distance (EMD) Suggested by Rubner & Tomasi 98 Defines as the minimum amount of “work” needed to transform histogram HA towards HB The term dij defines the “ground distance” between gray- levels i and j. The term F={fij} is an admissible flow from HA(i) to HB(j) >

Option 3: The Earth Mover Distance (EMD) ≠ From: Pete Barnum

Option 3: The Earth Mover Distance (EMD) ≠ From: Pete Barnum

Option 3: The Earth Mover Distance (EMD) = From: Pete Barnum

Option 3: The Earth Mover Distance (EMD) (amount moved) = From: Pete Barnum

Option 3: The Earth Mover Distance (EMD) work=(amount moved) * (distance moved) = From: Pete Barnum

Option 3: The Earth Mover Distance (EMD) Constraints: Move earth only from A to B After move PA will be equal to PB Cannot send more “earth” than there is Can be solved using Linear Programming Can be applied in high dim. histograms (color).

Special case: EMD in 1D Define CA and CB as the accumulated histograms of image A and B respectively: PA CA PB CB CA-CB

T H E E N D