Histograms: CS 4640: Image Processing Basics
Histograms: CS 4640: Image Processing Basics
Definition
A histogram is a function that gives the frequency of
intensities that occur in an image.
I Addition
I Multiplication
I Exp and Log
I Intensity Windowing (Contrast Modification)
Histograms For More Than 8 Bits
Definition
A binned histogram is a function that gives the
frequency of image intensities that fall into small
intervals, or bins.
P(I(u, v) = i) = h(i)/wh
Sample Space
Definition
A sample space is a pair (S, P), where S is a set of
possible outcomes, and P : S R is a function that
satisfies P(s) 0 for all s S and
X
P(s) = 1.
sS
Sample Space for Images
P(i) = h(i)/wh
Events
Definition
Let (S, P) be a sample space. An event is a subset
A S. The probability of an event is
X
P(A) = P(a)
aA
Some Possible Events for an Image Pixel
I A = The pixel has value i
Definition
A random variable is a function defined on a probability
space. In other words, if (S, P) is a sample space, then a
random variable is a function X : S V for some set V .
Definition
Let X be a real-valued random variable defined on a
sample space (S, P). The expectation, or expected
value, of X is
X
E(X) = X(s) P(s)
sS
Expectation of Pixel Values
Mean of an image:
K1
X
= E(I) = i P(i)
i=0