Top Banner
197

In the name of Allah - Sharif

Nov 22, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: In the name of Allah - Sharif
Page 2: In the name of Allah - Sharif

In the name of Allah

the compassionate, the merciful

Page 3: In the name of Allah - Sharif

Kasaei 3

Digital Image Processing

S. KasaeiS. Kasaei

Sharif University of TechnologyRoom: CE 307

E-Mail: [email protected] Page: http://ce.sharif.edu

http://ipl.ce.sharif.eduhttp://sharif.edu/~skasaei

Page 4: In the name of Allah - Sharif

Chapter 2

Two-Dimensional Systems&

Mathematical Preliminaries

Page 5: In the name of Allah - Sharif

Kasaei 5

Notations & Definitions

Page 6: In the name of Allah - Sharif

Kasaei 6

Notations & Definitions1-D continuous signal:

1-D sampled signal:

Continuous image:

Sampled image:

[2 (or higher)-D sequence of real numbers.]

Complex conjugate:

Separable functions:

)(),(),( tsxuxf

nunu ),(

),(),,(),,( yxvyxuyxf

),,(,),,( , kjiuunmu nm

*z)()(),( 21 yfxfyxf =

Page 7: In the name of Allah - Sharif

Kasaei 7

Notations & Definitions

Page 8: In the name of Allah - Sharif

Kasaei 8

Notations & Definitions

Page 9: In the name of Allah - Sharif

Kasaei 9

Notations & Definitions

Page 10: In the name of Allah - Sharif

Kasaei 10

Notations & Definitions

Page 11: In the name of Allah - Sharif

Kasaei 11

Notations & Definitions

Page 12: In the name of Allah - Sharif

Kasaei 12

Linear Systems & Shift Invariance

Page 13: In the name of Allah - Sharif

Kasaei 13

Linear Systems & Shift Invariance

Page 14: In the name of Allah - Sharif

Kasaei 14

Linear Systems & Shift Invariance

Page 15: In the name of Allah - Sharif

Kasaei 15

Linear Systems & Shift Invariance

Page 16: In the name of Allah - Sharif

Kasaei 16

Linear Systems & Shift Invariance

Page 17: In the name of Allah - Sharif

Kasaei 17

Linear Systems & Shift Invariance

Page 18: In the name of Allah - Sharif

Kasaei 18

Linear Systems & Shift Invariance

Page 19: In the name of Allah - Sharif

Kasaei 19

Linear Systems & Shift Invariance

Page 20: In the name of Allah - Sharif

Kasaei 20

The Fourier Transform

Page 21: In the name of Allah - Sharif

Kasaei 21

The Fourier Transform

Page 22: In the name of Allah - Sharif

Kasaei 22

The Fourier Transform

Page 23: In the name of Allah - Sharif

Kasaei 23

Spatial Frequency

Spatial frequency measures how fast the image intensity changes in the image plane.Spatial frequency can be completelycharacterized by the variation frequencies in two orthogonal directions (e.g., horizontal & vertical):

fx: cycles/horizontal unit distance.fy : cycles/vertical unit distance.

It can also be specified by magnitude and angleof change:

)/arctan(,22xyyxm fffff =+= θ

Page 24: In the name of Allah - Sharif

Kasaei 24

Illustration of Spatial Frequency

Page 25: In the name of Allah - Sharif

Kasaei 25

Illustration of Spatial Frequency

Page 26: In the name of Allah - Sharif

Kasaei 26

Angular Frequency

ee)cycle/degr(f180

ff

(degree)180n)h/2d(radia2(radian))2/arctan(2

ss

hd

dhdh

πθ

πθ

θ ==

=≈=

Problem with previous defined spatial frequency:Perceived speed of change depends on the viewing distance.

Page 27: In the name of Allah - Sharif

Kasaei 27

The Fourier Transform

Page 28: In the name of Allah - Sharif

Kasaei 28

The Fourier Transform

Page 29: In the name of Allah - Sharif

Kasaei 29

The Fourier Transform

Page 30: In the name of Allah - Sharif

Kasaei 30

The Fourier Transform

Page 31: In the name of Allah - Sharif

Kasaei 31

The Fourier Transform

Page 32: In the name of Allah - Sharif

Kasaei 32

The Fourier Transform

Page 33: In the name of Allah - Sharif

Kasaei 33

The Fourier Transform

Page 34: In the name of Allah - Sharif

Kasaei 34

The Fourier Transform

Page 35: In the name of Allah - Sharif

Kasaei 35

The Fourier Transform

Page 36: In the name of Allah - Sharif

Kasaei 36

The Fourier Transform

Page 37: In the name of Allah - Sharif

Kasaei 37

The Fourier Transform

Page 38: In the name of Allah - Sharif

Kasaei 38

The Z-Transform

Page 39: In the name of Allah - Sharif

Kasaei 39

The Z-Transform

Page 40: In the name of Allah - Sharif

Kasaei 40

The Z-Transform

Page 41: In the name of Allah - Sharif

Kasaei 41

The Z-Transform

Page 42: In the name of Allah - Sharif

Kasaei 42

The Z-Transform

Page 43: In the name of Allah - Sharif

Kasaei 43

The Z-Transform

Page 44: In the name of Allah - Sharif

Kasaei 44

The Z-Transform

Page 45: In the name of Allah - Sharif

Kasaei 45

Matrix Theory Results

Page 46: In the name of Allah - Sharif

Kasaei 46

Matrix Theory Results

Page 47: In the name of Allah - Sharif

Kasaei 47

Matrix Theory Results

(a) 2-D Cartesian coordinate representation. (b) Matrix representation.

(a) (b)

Page 48: In the name of Allah - Sharif

Kasaei 48

Matrix Theory Results

N

Page 49: In the name of Allah - Sharif

Kasaei 49

Matrix Theory Results

Page 50: In the name of Allah - Sharif

Kasaei 50

Matrix Theory Results

Page 51: In the name of Allah - Sharif

Kasaei 51

Matrix Theory Results

Page 52: In the name of Allah - Sharif

Kasaei 52

Matrix Theory Results

Page 53: In the name of Allah - Sharif

Kasaei 53

Matrix Theory Results

Page 54: In the name of Allah - Sharif

Kasaei 54

Matrix Theory Results

Page 55: In the name of Allah - Sharif

Kasaei 55

Matrix Theory Results

Page 56: In the name of Allah - Sharif

Kasaei 56

Matrix Theory Results

Page 57: In the name of Allah - Sharif

Kasaei 57

Matrix Theory Results

Page 58: In the name of Allah - Sharif

Kasaei 58

Matrix Theory Results

Page 59: In the name of Allah - Sharif

Kasaei 59

Matrix Theory Results

Page 60: In the name of Allah - Sharif

Kasaei 60

Matrix Theory Results

Page 61: In the name of Allah - Sharif

Kasaei 61

Matrix Theory Results

Page 62: In the name of Allah - Sharif

Kasaei 62

Matrix Theory Results

Red line: direction of the first principal component, Green line: direction of the second principal component.

Data set. Principal axes (eigenvectors). Rotated data set.

Page 63: In the name of Allah - Sharif

Kasaei 63

Block Matrices & Kronecker Products

Page 64: In the name of Allah - Sharif

Kasaei 64

Block Matrices & Kronecker Products

Page 65: In the name of Allah - Sharif

Kasaei 65

Block Matrices & Kronecker Products

Page 66: In the name of Allah - Sharif

Kasaei 66

Block Matrices & Kronecker Products

Page 67: In the name of Allah - Sharif

Kasaei 67

Block Matrices & Kronecker Products

Page 68: In the name of Allah - Sharif

Kasaei 68

Block Matrices & Kronecker Products

Page 69: In the name of Allah - Sharif

Kasaei 69

Block Matrices & Kronecker Products

Page 70: In the name of Allah - Sharif

Kasaei 70

Block Matrices & Kronecker Products

Page 71: In the name of Allah - Sharif

Kasaei 71

Block Matrices & Kronecker Products

Page 72: In the name of Allah - Sharif

Kasaei 72

Block Matrices & Kronecker Products

Page 73: In the name of Allah - Sharif

Kasaei 73

Block Matrices & Kronecker Products

Page 74: In the name of Allah - Sharif

Kasaei 74

Block Matrices & Kronecker Products

Page 75: In the name of Allah - Sharif

Probability, Random Variables, & Random Signal

Processing

A Brief Review

Page 76: In the name of Allah - Sharif

Kasaei 76

References

1. review_of_probability, by Rafael C. Gonzalez and Richard E. Woods, 2002.

2. Lecture Notes on Probability Theory and Random Processes, by Jean Walrand, Department of Electrical Engineering and Computer Sciences, University of California, Berkeley, CA 94720, 2004.

3. Probability, Random Variables, and Random Signal Principles, by Peyton Z. Peebles, JR., McGraw-Hill, 3rd Edition, 1993, ISBN:0-07-112782-8.

4. Probability, Random Variables, and Stochastic Processes, by Athanasios Papoulis, McGraw-Hill, 1991 (QA 273 .P2 1991).

Page 77: In the name of Allah - Sharif

Famous Theoreticians of the Field

1654 -1987

Page 78: In the name of Allah - Sharif

Kasaei 78

Jacob BERNOULLI1654-1705

Page 79: In the name of Allah - Sharif

Kasaei 79

Abraham DE MOIVRE1667 -1754

Page 80: In the name of Allah - Sharif

Kasaei 80

Thomas BAYES1701-1761

Page 81: In the name of Allah - Sharif

Kasaei 81

Thomas SIMPSON1710-1761

Page 82: In the name of Allah - Sharif

Kasaei 82

Pierre Simon LAPLACE1749-1827

Page 83: In the name of Allah - Sharif

Kasaei 83

Adrien Marie LEGENDRE 1752-1833

Page 84: In the name of Allah - Sharif

Kasaei 84

Carl Friedrich GAUSS1777-1855

Page 85: In the name of Allah - Sharif

Kasaei 85

Andrei Andreyevich MARKOV1856-1922

Page 86: In the name of Allah - Sharif

Kasaei 86

Andrei Nikolaevich KOLMOGOROV1903-1987

Page 87: In the name of Allah - Sharif

Modeling Uncertainty

Page 88: In the name of Allah - Sharif

Kasaei 88

Modeling Uncertainty

In this lecture we introduce the concept of a model of an uncertain physical system and we stress the importance of concepts that justify the structure of the theory.

Page 89: In the name of Allah - Sharif

Kasaei 89

Modeling Uncertainty:Models and Physical Reality

General concept:physical world uncertain outcomes model of uncertaintyProbability Theory

Page 90: In the name of Allah - Sharif

Kasaei 90

Modeling Uncertainty:Models and Physical Reality

“Probability Theory” is a mathematical model of uncertainty.It is important to appreciate the difference between uncertainty in the physical world and the models of “Probability Theory”.

That difference is similar to that between the real world and laws of theoretical physics. Consider flipping a fair coin repeatedly. Designate by 0and 1 the two possible outcomes of a coin flip (say 0for head and 1 for tail). This experiment takes place in the physical world. The outcomes are uncertain.

Here we try to appreciate the probability model of this experiment and to relate it to the physical reality.

Page 91: In the name of Allah - Sharif

Kasaei 91

Modeling Uncertainty:Function of Hidden Variable

One idea is that the uncertainty in the world is fully contained in the selection of some hidden variable.

If this variable was known, then nothing would be uncertain anymore.In other words, everything that is uncertain is a functionof that hidden variable. By function, we mean that if we know the hidden variable, then we know everything else. Everything that is random is some function X of some hidden variable.

If we designate the outcome of the 5th coin flip by X, then we conclude that X is a function of w. We can denote that function by X(w).

Page 92: In the name of Allah - Sharif

Kasaei 92

Some Basic Definitions

Probability Space:Now, we describe the probability model of “choosing an object at random" .We explain that the key idea is to associate a likelihood, which we call probability, to sets of outcomes (not to individual outcomes). These sets are events. The description of the events and of their probability constitute a probability space that completely characterizes a random experiment.

Page 93: In the name of Allah - Sharif

Kasaei 93

Some Basic Definitions

Events:

Probability events are modeled as sets.

The sets of outcomes to which one assigns a probability are called events (the event of getting a tail).

It is not necessary (and often not possible) for every set of outcomes to be an event.

Page 94: In the name of Allah - Sharif

Kasaei 94

Some Basic DefinitionsProbability Space:

Putting together the observations of the sections above, we have defined a probability space as follows:

A probability space is a triplet {Q, F, P} where:Q is a nonempty set, called the sample space.F is a collection of subsets - closed under countable set operations. The elements of F are called events.P is a countable additive function from F into [0, 1] such that P(Q) = 1, called a probability measure.

Example:Books at SUT library (sample space)

CE books (events)Probability of existence of a special book (probability measure)

Page 95: In the name of Allah - Sharif

Kasaei 95

Some Basic Definitions

Examples will clarify the probability space definition:The main point is that one defines the probability of sets of outcomes (the events).The probability should be countable additive (to be continuous). Accordingly (to be able to write down this property), and also quite intuitively, the collection of events should be closed under countable set operations.

Page 96: In the name of Allah - Sharif

Kasaei 96

Sets & Set Operations

A set is a collection of objects, with each object in a set often referred to as an element or member of the set (e.g., the set of all image processing books).

The set with no elements is called the empty or null set, denoted by the symbol Ø.

The sample space is defined as the set containing all elements of interest in a given situation.

Page 97: In the name of Allah - Sharif

Kasaei 97

Basic Set Operations

The union of two sets A and B is denoted by:

The intersection of two sets A and B is denoted by:

Two sets having no elements in common are said to be disjoint or mutually exclusive, denoted by:

Page 98: In the name of Allah - Sharif

Kasaei 98

Basic Set Operations

Page 99: In the name of Allah - Sharif

Kasaei 99

Basic Set Operations (Venn Diagram)

It is often quite useful to represent sets and sets operations in a so-called Venn diagram, in which:

S is represented as a rectangle.Sets are represented as areas (typically circles).Points are associated with elements.

The following example shows various uses of Venn diagrams.

The shaded areas are the result (sets of points).

Page 100: In the name of Allah - Sharif

Kasaei 100

Basic Set Operations (Venn Diagrams)

Page 101: In the name of Allah - Sharif

Kasaei 101

Basic Set Operations (Venn Diagrams)

The top row are self explanatory. The diagrams in the bottom row are used to prove the validity of the expression

which is used in the proof of some probability relationships.

Page 102: In the name of Allah - Sharif

Kasaei 102

Relative Frequency & ProbabilityA random experiment is an experiment in which it is not possible to predict the outcome (e.g., tossing of a coin).

The probability of the event is denoted by P(event).

For an event A, we have:

where,

Page 103: In the name of Allah - Sharif

Kasaei 103

Relative Frequency & Probability

If A and B are mutually exclusive it follows that the set AB is empty, and consequently, P(AB) = 0.

The conditional probability is denoted by P(A/B), where P(A/B) refers to the probability of A given B.

( ) φ==

==nm

N

nnn

N

nAAifAPAP IU

11

Page 104: In the name of Allah - Sharif

Kasaei 104

Conditional Probability

Assume that we know that the outcome is in B. Given that information, what is the probability that the outcome is in A? This probability is written as P[A|B] and is read “the conditional probability of A given B," or “the probability of A given B", for short.

Page 105: In the name of Allah - Sharif

Kasaei 105

Relative Frequency & ProbabilityRelative Frequency & Probability

A little manipulation of the preceding results yields the following important relationships:

and

The second expression may be written as:

which is known as Bayes' theorem, so named after the 18th century mathematician Thomas Bayes.

a priori

likelihood

a posteriori

Page 106: In the name of Allah - Sharif

Kasaei 106

Bayes' Theorem

The importance of the prior distribution: Bayes' rule.

Bayes understood how to include systematically the information about the prior distribution (a priori) in the calculation of the posterior distribution (a posteriori).

He discovered what we know today as Bayes' rule, a simple but very useful identity.

Page 107: In the name of Allah - Sharif

Kasaei 107

Bayes' Theorem

This formula extends to a finite number of events Bn that partition Q. Think of the Bn as possible “causes” of some effect A.

You know the prior probabilities P(Bn) of the causes and also the probability that each cause provokes the effect A.The formula tells you how to calculate the probability that a given cause has provoked the observed effect.

Applications are abound, as we will see in detection theory. For instance:

You alarm can sound either if there is a burglar or also if there is no burglar (false alarm). Given that the alarm sounds, what is the probability that it is a false alarm?

Page 108: In the name of Allah - Sharif

Kasaei 108

If A and B are statistically independent, then P(B/A) = P(B) and it follows that:

and

For mutually exclusive, A ∩ B = Ø from which it follows that P(AB) = P(A ∩ B) = 0.

So, the two sets are statistically independent if P(AB)=P(A)P(B), which we assume to be nonzero in general. Thus, for two events to be statistically independent, they cannot be mutually exclusive.

Relative Frequency & ProbabilityRelative Frequency & Probability

Page 109: In the name of Allah - Sharif

Kasaei 109

Relative Frequency & Probability

In general, for N events to be statistically independent, it must be true that, for all combinations 1 ≤i ≤ j ≤k ≤ . . . ≤N, we have:

Page 110: In the name of Allah - Sharif

Kasaei 110

Random Variables

The definition is: “A real random variable (RV) is a measurable real-valued function of the outcome of a random experiment”.

Physical examples: Noise voltage at a given time and place.Temperature at a given time and place.Height of the next person to enter the room.

Page 111: In the name of Allah - Sharif

Kasaei 111

Random Variables

A real random variable, x, is a real-valued function defined on the events of a sample space, S (i.e., X(s)).

In words, for each event in S, there is a real number that is the corresponding value of the RV.

Viewed yet another way, a RV maps each eventin S onto the real line.

A complex RV, Z, can be defined in terms of real RVs, X and Y, by: Z=X+jY (the joint density of X and Y must be used.).

Page 112: In the name of Allah - Sharif

Kasaei 112

Random Variables

A random variable mapping of a sample space.

Page 113: In the name of Allah - Sharif

Kasaei 113

Random Variables

Thus far we have been concerned with discreterandom variables.

In the discrete case, the probabilities of events are numbers between 0 and 1.

When dealing with continuous quantities (which are not denumerable) we can no longer talk about the "probability of an event" because that probability is zero.

Page 114: In the name of Allah - Sharif

Kasaei 114

Random Variables

Thus, instead of talking about the probability of a specific value, we talk about the probability that the value of the RV lies in a specified range.

In particular, we are interested in the probability that the RV is less than or equal to a specified constant, a, as:

or

Page 115: In the name of Allah - Sharif

Kasaei 115

Random Variables

• Function F is called the cumulative probability distribution function or simply the cumulative distribution function (CDF).

• If this function is given for all values of a (i.e., −∞ < a < ∞), then the values of RV x have been defined.

Page 116: In the name of Allah - Sharif

Kasaei 116

Random Variables

where x+ = x + ε, with ε being a positive, infinitesimally small number (in words, F(x) is continuous from the right).

•Due to the fact that it is a probability, the CDF has the following properties:

Page 117: In the name of Allah - Sharif

Kasaei 117

Random Variables

•The probability density function (PDF) of the RV x is defined as the derivative of the CDF:

•The PDF satisfies the following properties:

Page 118: In the name of Allah - Sharif

Kasaei 118

Random Variables

(a) CDF and (b) PDF of a discrete random variable.

Page 119: In the name of Allah - Sharif

Kasaei 119

Expected Values & Moments

The expected value of a function g(x) of a continuous RV is defined as:

If the RV is discrete the definition becomes:

Page 120: In the name of Allah - Sharif

Kasaei 120

Expected Values & Moments

The expected value of x is equal to its average (or mean) value, defined as:

For discrete RVs as:

Page 121: In the name of Allah - Sharif

Kasaei 121

Of particular importance is the variance of RVs that is normalized by subtracting their mean, as:

and

The square root of the variance is called the standard deviation, and is denoted by σ.

Expected Values & Moments

Page 122: In the name of Allah - Sharif

Kasaei 122

The nth central moment of a continuous RV is:

And, for discrete variables as:

where we assume that n ≥ 0. Clearly, µ0=1, µ1=0, and µ2=σ².

Expected Values & Moments

Page 123: In the name of Allah - Sharif

Kasaei 123

The central moments: the mean of the RV has been subtracted out.

The moments about the origin: the mean is not subtracted out.

In image processing, moments are used for a variety of purposes, including histogram processing, segmentation, and description.

In general, moments are used to characterize the PDF of an RV.

Expected Values & Moments

Page 124: In the name of Allah - Sharif

Kasaei 124

Expected Values & MomentsThe second, third, and fourth central moments are intimately related to the shape of the PDF of an RV.

The second central moment (the variance) is a measure of spread of values of an RV about its mean value.

The third central moment is a measure of skewness(bias to the left or right) of the values of x about the mean value (symmetric PDF 0).

The fourth moment is a relative measure of flatness.

In general, knowing all the moments of a density specifies that density.

Page 125: In the name of Allah - Sharif

Kasaei 125

Gaussian Probability Density Function

A random variable is called Gaussian if it has a probability density of the form:

The CDF corresponding to the Gaussian density is:

Page 126: In the name of Allah - Sharif

Kasaei 126

Gaussian Probability Density Function

(a) PDF and (b) CDF of a Gaussian random variable.

Page 127: In the name of Allah - Sharif

Kasaei 127

Gaussian Random VariablesThe Gaussian distribution is determined by its mean and variance.The sum of independent Gaussian random variables is Gaussian.Random variables are jointly Gaussian if an arbitrary linear combination is Gaussian.Uncorrelated jointly Gaussian random variables are independent.If random variables are jointly Gaussian, then the conditional expectation is linear.

Page 128: In the name of Allah - Sharif

Kasaei 128

Several Random VariablesA collection of random variables is a collection of functions of the outcome of the same random experiment. Here we extend the idea to multiple numerical observations about the same random experiment.Examples include:

We pick a ball randomly from a bag and we note its weight X and its diameter Y.We observe the temperature at a few different locations.We measure the noise voltage at different times.A transmitter sends some signal and the receiver observes the signal it receives and tries to guess which signal the transmitter sent.

Page 129: In the name of Allah - Sharif

Kasaei 129

Several Random Variables

In case, we might need two RVs. This maps our events onto the xy-plane.

Mapping from the sample space S tothe joint sample spaceSJ(xy plane).

Page 130: In the name of Allah - Sharif

Kasaei 130

It is convenient to use vector notation when dealing with several RVs. Thus, we represent a vector random variable x as:

Now, the CDF introduced earlier becomes:

Several Random Variables

Page 131: In the name of Allah - Sharif

Kasaei 131

Several Random Variables

As in the single variable case, the PDF of an RV vector is defined in terms of derivatives of the CDF, as:

The expected value of a function of x is defined by:

Page 132: In the name of Allah - Sharif

Kasaei 132

Several Random VariablesThe joint moment becomes:

It is easy to see that ηk0 is the kth moment of x and η0q is the qth moment of y.

The moment η11 = E[xy] is called the correlation of x and y.

Page 133: In the name of Allah - Sharif

Kasaei 133

If the condition:

holds, then the two RVs are said to be uncorrelated.

We know that if x and y are statistically independent, then p(x, y) = p(x)p(y), in which case we write:

Thus, we see that if two RVs are statistically independent then they are also uncorrelated. The converse of this statement is not true in general.

Several Random Variables

Page 134: In the name of Allah - Sharif

Kasaei 134

The joint central moment of order kq involving RVs x and y is:

where mx = E[x] and my = E[y] are the means of x and y.

Note that:

are the variances of x and y, respectively.

and

Several Random Variables

Page 135: In the name of Allah - Sharif

Kasaei 135

The moment µ11

is called the covariance of x and y.

As in the case of correlation, the covariance is an important concept, usually given a special symbol such as Cxy.

Several Random Variables

Page 136: In the name of Allah - Sharif

Kasaei 136

By direct expansion of the terms inside the expected value brackets, and recalling the mx = E[x] and my = E[y], it is straightforward to show that:

From our discussion on correlation, we see that the covariance is zero if the random variables are either uncorrelated or statistically independent.

Several Random Variables

Page 137: In the name of Allah - Sharif

Kasaei 137

If we divide the covariance by the square root of the product of the variances we obtain:

The quantity γ is called the correlation coefficient of RVs x and y. It can be shown that γ is in the range −1 ≤γ ≤1(the correlation coefficient is used in image processing for matching).

Several Random Variables

Page 138: In the name of Allah - Sharif

Kasaei 138

The multivariate Gaussian PDF, is defined as:

where n is the dimensionality (number of components) of the random vector x, C is the covariance matrix (to be defined below), |C| is the determinant of matrix C, mis the mean vector (also to be defined below) and Tindicates transposition.

The Multivariate Gaussian Density Function

Page 139: In the name of Allah - Sharif

Kasaei 139

The mean vector is defined as:

and the covariance matrix is defined as:

The Multivariate Gaussian Density Function

where:

Page 140: In the name of Allah - Sharif

Kasaei 140

The Multivariate Gaussian Density Function

Covariance matrices are real and symmetric.

The elements along the main diagonal of C are the variances of the elements x, such that cii= σxi².

When all the elements of x are uncorrelated or statistically independent, cij = 0, and the covariance matrix becomes a diagonal matrix.

If all the variances are equal, then the covariance matrix becomes proportional to the identity matrix, with the constant of proportionality being the varianceof the elements of x.

Page 141: In the name of Allah - Sharif

Kasaei 141

As an example, consider the bivariate (n = 2) Gaussian PDF of:

with

and

The Multivariate Gaussian Density Function

Page 142: In the name of Allah - Sharif

Kasaei 142

Where, because C is known to be symmetric, c12 = c21.

A schematic diagram of this density is shown in Part (a) of the following figure. Part (b) is a horizontal slice of Part (a).

The main directions of data spread are in the directions of the eigenvectors of C.

If the variables are uncorrelated or statistically independent, the covariance matrix will be diagonal and the eigenvectors will be in the same direction as the coordinate axes x1 and x2 (and the ellipse shown would be oriented along the x1 - and x2-axis).

The Multivariate Gaussian Density Function

Page 143: In the name of Allah - Sharif

Kasaei 143

The Multivariate Gaussian Density Function

(a) Sketch of the joint density function of two Gaussian RVS.(b) A horizontal slice of (a).

Page 144: In the name of Allah - Sharif

Kasaei 144

If, the variances along the main diagonal are equal,the density would be symmetrical in all directions (in the form of a bell) and Part (b) would be a circle.

Note in Parts (a) and (b) that the density is centered at the mean values (m1,m2).

The Multivariate Gaussian Density Function

Page 145: In the name of Allah - Sharif

Kasaei 145

Random Processes

We have looked at a finite number of random variables. In many applications, one is interested in the evolution in time of random variables. For instance:

One watches on an oscilloscope the noise across two terminals. One may observe packets that arrive at an Internet router.One may observe cosmic rays hitting a detector.

Page 146: In the name of Allah - Sharif

Kasaei 146

Random Processes

We explained that a collection of random variables is characterized by their joint CDF. Similarly, a random process is characterized by the joint CDF of any finite collection of the random variables. These joint CDF are called the finite dimensional distributions of the random process. Obviously, to correspond to a random process, the finite dimensional distributions must be consistent.

Page 147: In the name of Allah - Sharif

Kasaei 147

Random SignalsThe concept of random process is based on enlarging the RV concept to include time.

A random process represents a family or ensembleof time functions.

Each member time function is called a sample function, ensemble member, or a realization of the process.

A complex discrete random signal or a discrete random process is a sequence of RVs u(n).

Page 148: In the name of Allah - Sharif

Kasaei 148

Random Signals

A continuous random process.

Page 149: In the name of Allah - Sharif

Kasaei 149

Ergodicity Random Processes

Roughly, a stochastic process is ergodic if statistics that do not depend on the initial phase of the process are constant. That is, such statistics do not depend on the realization of the process. For instance, if you simulate an ergodic process, you need only one simulation run; it is representative of all possible runs.

Page 150: In the name of Allah - Sharif

Kasaei 150

Random Signals

Page 151: In the name of Allah - Sharif

Kasaei 151

Random Signals

Page 152: In the name of Allah - Sharif

Kasaei 152

Random Signals

Page 153: In the name of Allah - Sharif

Kasaei 153

Random Signals

Page 154: In the name of Allah - Sharif

Kasaei 154

Random Signals

Page 155: In the name of Allah - Sharif

Kasaei 155

Random Signals

Page 156: In the name of Allah - Sharif

Kasaei 156

Random Signals

Page 157: In the name of Allah - Sharif

Kasaei 157

Random Signals

Page 158: In the name of Allah - Sharif

Kasaei 158

Markov Process

A random process X(t) is Markov if: given X(t), the past and the future are independent.Markov chains are examples of Markov process. A process with independent increments is Markov.Note that a function of a Markov process may not be a Markov process.

Page 159: In the name of Allah - Sharif

Kasaei 159

Random Signals

Page 160: In the name of Allah - Sharif

Kasaei 160

Random Signals

Page 161: In the name of Allah - Sharif

Kasaei 161

Random Signals

Page 162: In the name of Allah - Sharif

Kasaei 162

Random Signals

Page 163: In the name of Allah - Sharif

Kasaei 163

Random Signals

Page 164: In the name of Allah - Sharif

Kasaei 164

Random Signals

Uncorr.

Indep.

Page 165: In the name of Allah - Sharif

Kasaei 165

Discrete Random Fields

In statistical representation of image, each pixel is considered as an RV.

We think of a given image as a sample function of an ensemble of images.

Ensemble of images ordiscrete random field.

Sample function orrandom image.R.V.

Page 166: In the name of Allah - Sharif

Kasaei 166

Discrete Random Fields

Such an ensemble would be adequately defined by a joint PDF of the array of RVs.

For practical image sizes, the number of RVs is very large (262,144 for 512x512 images).

Thus, it is difficult to specify a realistic joint PDF.

One possibility is to specify the ensemble by its first -and second-order moments only.

Page 167: In the name of Allah - Sharif

Kasaei 167

Discrete Random Fields

Page 168: In the name of Allah - Sharif

Kasaei 168

Discrete Random Fields

Page 169: In the name of Allah - Sharif

Kasaei 169

Discrete Random Fields

Page 170: In the name of Allah - Sharif

Kasaei 170

Discrete Random Fields

Page 171: In the name of Allah - Sharif

Kasaei 171

Discrete Random Fields

Page 172: In the name of Allah - Sharif

Kasaei 172

Discrete Random Fields

Page 173: In the name of Allah - Sharif

Kasaei 173

Discrete Random Fields

Page 174: In the name of Allah - Sharif

Kasaei 174

The Spectral Density Function

Page 175: In the name of Allah - Sharif

Kasaei 175

The Spectral Density Function

Page 176: In the name of Allah - Sharif

Kasaei 176

The Spectral Density Function

Page 177: In the name of Allah - Sharif

Kasaei 177

The Spectral Density Function

Page 178: In the name of Allah - Sharif

Kasaei 178

The Spectral Density Function

Page 179: In the name of Allah - Sharif

Kasaei 179

The Spectral Density Function

Page 180: In the name of Allah - Sharif

Kasaei 180

The Spectral Density Function

Page 181: In the name of Allah - Sharif

Kasaei 181

The Spectral Density Function

Page 182: In the name of Allah - Sharif

Kasaei 182

The Spectral Density Function

Page 183: In the name of Allah - Sharif

Kasaei 183

Some Results from Information Theory

Information theory gives some important concepts that are useful in digital representation of images.

Some of these concepts will be used in image quantization, image transforms, and image data compression.

The information, entropy, and rate-distortion functionare the main issues concerned in this regard. They will be briefly introduced in the following.

Page 184: In the name of Allah - Sharif

Kasaei 184

Some Results from Information Theory

Page 185: In the name of Allah - Sharif

Kasaei 185

Some Results from Information Theory

Page 186: In the name of Allah - Sharif

Kasaei 186

Some Results from Information Theory

Entropy of a binary source.

Page 187: In the name of Allah - Sharif

Kasaei 187

Some Results from Information Theory

Page 188: In the name of Allah - Sharif

Kasaei 188

Some Results from Information Theory

Page 189: In the name of Allah - Sharif

Kasaei 189

Some Results from Information Theory

Page 190: In the name of Allah - Sharif

Kasaei 190

Some Results from Information Theory

Rate-distortion function for a Gaussian source.

Page 191: In the name of Allah - Sharif

Kasaei 191

Some Results from Information Theory

Page 192: In the name of Allah - Sharif

Kasaei 192

Some Results from Information Theory

Page 193: In the name of Allah - Sharif

Kasaei 193

Some Results from Information Theory

Page 194: In the name of Allah - Sharif

Kasaei 194

Some Results from Information Theory

Page 195: In the name of Allah - Sharif

Kasaei 195

DetectionThe detection problem is roughly as follows. We want to guess which of finitely many possible causesproduced an observed effect. For instance:

You have a fever (observed effect); do you think you have the flu or a cold or the malaria? You observe some strange shape on an X-ray; is it a cancer or some infection of the tissues? A receiver gets a particular waveform; did the transmitter send the bit 0 or the bit 1? (Hypothesis testing is similar.) There are two basic formulations: either we know the prior probabilities of the possible causes (Bayesian) or we do not (non-Bayesian). When we do not, we can look for the maximum likelihood (ML) detection or we can formulate a hypothesis-testing problem.

Page 196: In the name of Allah - Sharif

Kasaei 196

Estimation

The estimation problem is similar to the detection problem except that the unobserved random variableX does not take values in a finite set. That is, one observes Y and must compute an estimate of X based on Y that is close to X in some sense.Once again, one has Bayesian and non-Bayesianformulations. The non-Bayesian case typically uses maximum likelihood estimation, MLE[X|Y ], defined as in the discussion of detection.

Page 197: In the name of Allah - Sharif

The End