+ All Categories
Home > Documents > DIPPPTUNIT2.pdf

DIPPPTUNIT2.pdf

Date post: 02-Jan-2016
Category:
Upload: venkata-rao-nekkanti
View: 42 times
Download: 0 times
Share this document with a friend
Description:
research
Popular Tags:
24
UNIT II Image Transforms 2D FFT , Properties. Walsh transform, Hadamard Transform, Discrete cosine Transform, Haar transform, Slant transform, Hotelling transform. Textbooks R. C. Gonzalez, R. E. Woods, Anil K. Jain Digital Image Processing, Fundamentals of Digital Image Processing
Transcript
Page 1: DIPPPTUNIT2.pdf

UNIT II Image Transforms 2‐D FFT , Properties. 

Walsh transform, Hadamard Transform,Discrete cosine Transform, 

Haar transform, Slant transform, Hotelling transform. 

TextbooksR. C. Gonzalez, R. E. Woods,             Anil K. Jain

Digital Image Processing,          Fundamentals of Digital Image Processing

Page 2: DIPPPTUNIT2.pdf

1‐D DISCRETE COSINE TRANSFORMDCT

∑ ⎥⎦⎤

⎢⎣⎡ +=

=

1

0 2)12(cos)()()(

N

x NuxxfuauC π

1,,1,0 −= Nu K

⎪⎪⎩

⎪⎪⎨

−=

=

=

1,,12

01

)(

NuN

uN

ua

K

Page 3: DIPPPTUNIT2.pdf

1‐D INVERSE DISCRETE COSINE TRANSFORM

IDCT

∑ ⎥⎦⎤

⎢⎣⎡ +=

=

1

0 2)12(cos)()()(

N

u NuxuCuaxf π

Page 4: DIPPPTUNIT2.pdf

2‐D DISCRETE COSINE TRANSFORMDCT

⎥⎦⎤

⎢⎣⎡ +

∑ ⎥⎦⎤

⎢⎣⎡ +

∑=−

=

= Nvy

NuxyxfvauavuC

N

x

N

y 2)12(cos

2)12(cos),()()(),(

1

0

1

0

ππ

⎥⎦⎤

⎢⎣⎡ +

∑ ⎥⎦⎤

⎢⎣⎡ +

∑=−

=

= Nvy

NuxvuCvauayxf

N

u

N

v 2)12(cos

2)12(cos),()()(),(

1

0

1

0

ππ

1,,1,0, −= Nvu K

Page 5: DIPPPTUNIT2.pdf

• Hotelling transform

• Eigen vector transform

• Principal component Transform

• Karhunen‐ Loeve Transform (KL Transform)

Page 6: DIPPPTUNIT2.pdf

Hotelling Transform

1

2

.

.

n

xx

x

x

⎡ ⎤⎢ ⎥⎢ ⎥⎢ ⎥=⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦

1

1{ }M

x kk

m E x xM =

= ≈ ∑x,........,

M data points

1 M

1

1{( )( ) }M

T TTx x x k k k k

kC E x m x m x x m m

M =

= − − ≈ −∑

Mean:

Covariance:

Hotelling Transform: ( )xy A x m= −

The rows of matrix A are the eigen vectors of the covarience matrixarranged in descending order (The first row corresponds to the eigen vector corresponding to the largest eigen value of C, ...)

Page 7: DIPPPTUNIT2.pdf

Example 

• Consider 4 column vectors (M=4)

• Mean vector mx =           41

113

Page 8: DIPPPTUNIT2.pdf

Covariance matrix 

Cx  = 

⎟⎟⎟

⎜⎜⎜

3 1- 11- 3 11 1 3

161

Page 9: DIPPPTUNIT2.pdf

• Eigen values of Cx

• 1,4,4

• Eigen vectors of Cx

• ‐0.5774 0.5774 0.5774

• ‐0.1543 ‐0.7715 0.6172

• 0.8018 0.2673 0.5345

Page 10: DIPPPTUNIT2.pdf

• Hotelling Transform:( )xy A x m= −

Page 11: DIPPPTUNIT2.pdf

• Cy= A Cx AT

Page 12: DIPPPTUNIT2.pdf

Example:

Page 13: DIPPPTUNIT2.pdf

• Establish a new coordinate system whose origin is at the centroid of the population.

• And whose axes are in direction of eigen vectors of Cx.

• The transformation is rotation which aligns the data with the eigen vectors.

• The alignment is a mechanism which decorrelates the data.

Page 14: DIPPPTUNIT2.pdf

• The concept of aligning a 2‐D object with its principal eigen vectors plays an important role in image analysis.

• After an object has been extracted from an image, computer techniques for recognizing the image are sensitive to image rotation.

• Because the identity of an object is not known prior to recognition, the ability to align the object with its principal axes provides a reliable means for removing the effects of rotation from the image analysis process.

Page 15: DIPPPTUNIT2.pdf

From channels to principle components

Page 16: DIPPPTUNIT2.pdf
Page 17: DIPPPTUNIT2.pdf

• Eigen values of covarience matrix of the images shown 

• λ1=3210

• λ2=931.4

• λ3=118.5

• λ4=83.88

• λ5=64.00

• λ6=13.40

Page 18: DIPPPTUNIT2.pdf

• As the first two images account for 94% of the total variance

• Instead of storing all 6 images, only first 2 images along with mx and first 2 rows of A are stored.

• Data compression is by product of Hotelling transform.

Page 19: DIPPPTUNIT2.pdf

Camera model

Page 20: DIPPPTUNIT2.pdf
Page 21: DIPPPTUNIT2.pdf
Page 22: DIPPPTUNIT2.pdf
Page 23: DIPPPTUNIT2.pdf
Page 24: DIPPPTUNIT2.pdf

Recommended