1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Các phép toán cơ bản trong xử lý ảnh

14 1K 4
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 14
Dung lượng 431,75 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Hanoi University of Science and Technology School of Electronics and Telecommunications Two­dimensional systems & Mathematical preliminaries 2D systems and mathematical preliminaries

Trang 1

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Two­dimensional systems 

Mathematical preliminaries 

2D systems and mathematical preliminaries 

1.  Notations and definitions 

2.  Linear systems and shift invariance 

3.  Fourier Transform 

4.  Z­Transform or Laurent series 

5.  Matrix theory and results 

6.  Block matrices and Kronecker products 

7.  Random signals 

8.  Some results from estimation theory 

9.  Some results from information theory

Trang 2

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

1.  Notations and definitions 

Ø 1D and 2D functions 

ü 1D:  f  (x ), g  (n ), d (x ), d (n

ü 2D:  f  (  y  x ,  ), g  (  n  m ,  ), d (  y  x,  ), d (  n  m,  ) 

Ø Separable forms of 2D functions 

ü Dirac: 

ü Kronecker: 

ü rect (x,y), sinc(x,y), comb(x,y) 

)  (  )  (  )  , 

(  x y  d d

d =  ×

)  (  )  (  )  , 

(  m n  d d

Ø Special functions 

ü Dirac delta: 

ü Shifting: 

ü Scaling: 

ü Kronecker delta: 

ü Shifting: 

ü Rectangle: 

ü Signum: 

ü Sinc: 

ü Comb: 

ü Triagle: 

1  )  (  lim 

; 

0  , 

0  )  ( 

¹

+

-

®

e

e

d  x  x  x  dx 

)  (  '  )  '  (  )  ' 

(  x  x  x  dx  f  x 

ò

+

-e

e

d 

( d

d =

î

í

ì

=

¹

0  ) 

n  x

)  (  )  (  ) 

(  m  n  m  f  n 

å

¥

¥

-d

ï

ï

í

ì

>

£

2  / 

2  / 

1  ) 

x  rect

ï

î

ï

í

ì

<

-

=

>

1  ) 

x  sign

å

¥

¥

-

-

=  (  )  ) 

(  x  x  n 

x  c

p

p  sin  )  (  sin =

ï

ï

í

ì

>

£

-

1  ) 

x  tri 

2D systems and mathematical preliminaries 

2.  Linear systems and shift invariance 

Ø 2D linear systems

[ ] ×

H y (  m ) = H [ ) ] 

)  , 

(  n  m 

ü Linear superposition property: 

ü Impulse response: 

ü Impulse response is called PSF: Input and output are positive quantities 

ü In general: Impulse response can take negative or complex values 

ü Region of support (RoS) of impulse response 

ü Finite impulse response (FIR) and infinite impulse response (IIR): When 

RoS is finite or infinite

[ (  ' ,  ' ) ] 

)  '  ,  ' 

;  , 

(  m  n  m  n  m  m  n  n 

h = d H - -

[ a 1  x 1 ( ) + 2 ( ) ] = 1 H [ 1 ( ) ] + 2 H [ 2 ( ) ] = 1 ( ) + 2 ( )  H

Trang 3

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Ø Output of a linear system:

û

ù

ê

ë

é

-

-

H

=

H

= (  ,  )  åå  (  ' ,  ' )  (  ' ,  ' )  ) 

,  ( 

m  n

d

=

Þ 

'  '  '  ' 

)  '  ,  ' 

;  ,  (  )  '  ,  '  (  ) 

'  ,  '  (  )  '  ,  '  (  ) 

m  n 

m  n 

Ø Spatially invariant or shift­invariant system: H d [ (  m ) ] = ; 0 , 0 ) 

[ (  ' ,  ' ) ]  (  ' ,  ' ; 0 , 0 )  ) 

'  ,  ' 

;  , 

(  m  n  m  n  m  m  n  n  h  m  m  n  n 

)  '  ,  '  (  )  '  ,  ' 

;  , 

(  m  n  m  n  h  m  m  n  n 

Þ

ü The shape of impulse response does not change as the impulse 

response moves about the (m,n) plan 

ü Discrete convolution:  (  ,  )  (  ' ,  ' )  (  ' ,  ' )  (  ,  ) *  (  ,  ) 

m  n

=

-

-

= åå

ü Continuous convolution: 

'  '  )  '  ,  '  (  )  '  ,  '  (  ) 

,  ( 

*  )  ,  (  )  , 

(  x  y  h  x  y  f  x  y  h  x  x  y  y  f  x  x  dx  dy 

¥

¥

-

¥

¥

-

-

-

=

2D systems and mathematical preliminaries 

3.  Fourier transform 

Ø FT of a 1D function: f(x)

[ ] [ ] ò

ò

¥ +

¥

-

-

-

¥

-

-

=

Á

=

Á

=

Á

=

Á

x

x

x

x

px

px 

dx 

)  (  ) 

(  ) 

(  : 

)  (  ) 

(  ) 

(  : 

Ø FT of a 2D function: f(x,y)

ò ò

¥ +

¥

-

¥ +

¥

-

+

-

-

¥

- +¥

¥

-

+

-

=

Á

=

Á

=

Á

=

Á 

1  )  ( 

)  ( 

)  ,  (  ) 

,  (  ) 

,  (  : 

)  ,  (  ) 

,  (  ) 

,  (  :

x

x

x

x

x

x

x

x

x

x

p

x

x

p 

dxdy 

x  j

Trang 4

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Performing a change of variables: 

Ø Properties of FT 

ü Spatial frequencies 

ü Uniqueness 

ü Separability

ò ò

ò ò

¥

-

- +¥

¥

-

- +¥

¥

- +¥

¥

-

+

-

ú

û

ù

ê

ë

é

=

1 ,  )  ( ,  )  ( ,  ) 

ü Frequency response and eigenfunctions of shift invariant systems 

)  , 

(  y  x 

F

ò ò

¥

- +¥

¥

-

+

-

-

=  (  ' ,  ' )  '  '  ) 

,  ( x  y  h  x  x  y  y  e 2 ( '  2 ' ) dx  d  y 

'  , 

'  y  y  y 

)  ( 

2  1  2 

where F = e j p x + x

)  ( 

)  ,  (  )  , 

(  x  y  e  j  x  y 

H

=

Þ

2D systems and mathematical preliminaries 

ü Convolution theorem 

ü Inner product preservation 

)  ,  ( 

F  )  ,  (  )  ,  G( 

)  ,  ( 

*  )  ,  (  )  ,  ( x  y  =  h  x  y  f  x  y  Þ x 1 x 2  = H x 1 x 2  × x 1 x 2 

ü Correlation between 2 real functions

ò ò

¥

- +¥

¥

-

+ +

=

·

=  ( ,  )  ( ,  )  (  ' ,  ' )  (  ' ,  ' )  '  '  ) 

(  x  y  h  x  y  f  x  y  h  x  y  f  x  x  y  y  dx  dy 

Performing a change of variables: 

)  ,  F( 

)  ,  (  )  ,  ( 

C  )  ,  (  )  ,  (  )  ,  ( x  y  =  h - - · f  x  y  Þ x 1 x 2  = H - x 1 - x 2  × x 1 x 2 

c

ò ò

ò ò

¥

- +¥

¥

- +¥

¥

- +¥

¥

-

=

( * ( dxdy  F ( x1  , x 2 ) H * ( x 1 , x 2 ) x 1 x 2 

Setting h=f è Parseval energy conservation formula

ò ò

ò ò

¥

- +¥

¥

- +¥

¥

- +¥

¥

-

=  1  2  2  1  2 

)  ,  ( 

F  ) 

f

Trang 5

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

ü Fourier transform pairs 

comb(x,y)  tri(x,y)  rect(x,y) 

)  , 

(  y  x 

)  , 

(  y  x

d 

yl 

xk 

e± 2 p  ± 2 p

1  2 

2 p  x x p x

j  e 

)  ,  ( x m x 2 m

)  , 

x ± x  0  y ±

)  ( x  2  y 

2  2

1  y 

e - x p  +

)  ,  ( 

inc x1  x 2 

)  ,  ( 

s  2 1  2 

x

x  inc 

)  ,  ( x1  x 2 

comb 

2D systems and mathematical preliminaries 

Inner product 

Spatial correlation 

Multiplication 

Convolution 

Modulation 

Shifting 

Scaling 

Separability 

Conjungation 

Linearity 

Rotation 

Property of 2D FT  Function  Fourier transform 

)  ,  F( 1  2 

)  ( 

2  0 1  0 2 

x

x

x

x

)  (  )  (  2 

1  x  f  y 

)  , 

(  x  y 

)  ,  ( 

F  )  ,  ( 

H  )  ,  ( 

G x 1 x 2  =  x 1 x 2  × x 1 x 2 

)  ,  (  ) 

,  (  2  2 

1  f  x  y  a  f  x  y 

a a 1F 1 ( x1  , x 2 ) + 2 F 2 ( x 1 , x 2 ) 

)  ,  ( 

F *( - x - 1 , x 2 ) 

)  ( 

F  )  ( 

F 1 x 1  2 x 2 

)  , 

(  y  x 

)  , 

(  ax  by 

)  , 

x  x  0  y  y 

)  ,  ( 

)  ( 

)  ,  (  )  ,  (  )  , 

(  x  y  h  x  y  f  x  y 

)  ,  (  )  ,  (  )  , 

(  x  y  h  x  y  f  x  y 

g =  × G ( x 1, x 2 ) = H ( x 1 , x 2 ) * F ( x 1 , x 2 ) 

)  ,  (  )  ,  (  )  , 

(  x  y  h  x  y  f  x  y 

c =  · C ( x 1, x 2 ) = H ( - x 1 , - x 2 ) × F ( x 1 , x 2 ) 

ò ò

¥

- +¥

¥

-

¥

- +¥

¥

1 ,  ) H (  ,  )  ( 

F x  x x x x x

)  ,  ( 

F m x 11 m x 2 

)  ,  ( 

F x1 x 2 

Trang 6

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

The evaluation of      at       and  yields FT of 

4.  Z­Transform or Laurent series 

Ø Fourier transform of sequences (Fourier series): Self­reading 

Ø Generalization of FT series: Z­transform 

ü For 2D sequence x(m,n): 

where z 1 , z 2  are complex variables

å å

= +¥

=

-

-

m  n 

ü Region of converge (RoC): this series converges uniformly in this region 

ü Z­transform of a LSI system is called transfer function 

)  ,  ( 

)  ,  (  )  ,  ( 

)  ,  (  )  ,  (  )  ,  ( 

Y

=

Þ

=

Ø Inverse Z­transform: 

; 

1  where  , 

)  ,  (  ) 

2  ( 

1  ) 

= ò ò X  z  z  z  -  z  - dz  dz  z  z 

)  ,  ( z  1  z 

1

w 

2

w 

2D systems and mathematical preliminaries 

Ø Properties of 2D Z­transform 

Multiplication 

Convolution 

Modulation 

Shifting 

Separability 

Conjungation 

Linearity 

Rotation 

)  ,  ( 1  2 

± m ±

)  (  )  (  2 

1  m  x  n 

)  , 

(  m  n 

)  ,  (  )  ,  ( z  1  z F  z 

)  ,  (  ) 

,  (  2  2 

1  x  m  n  a  x  m  n 

)  ,  ( 

)  ( 

F  )  ( 

F 1 x 1  2 x 2 

)  , 

(  y  x 

)  , 

m  m  0  n  n 

)  , 

(  n  m 

a  m  n 

)  ,  (  )  , 

(  m  n  x  m  n 

)  ,  (  )  , 

(  m  n  y  m  n 

)  ,  ( 1 2 - 1 

)  ,  ( 

F x 1 x 2 

÷

ø

ö

ç

è

æ 

,

ò ò ÷ ÷

ø

ö

ç

ç

è

æ

÷

ø

ö

ç

è

æ 

1  2 

2  ' 

1  ' 

2  ' 

1  ' 

2  ' 

)  ,  (  , 

dz 

dz 

X  j

p

Trang 7

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Ø Causality 

ü Causal: Impulse response      for      and its transfer function 

must have a one­sided Laurent series 

0  ) 

( =  n 

h  n < 0

å

¥

=

-

)  (  ) 

ü Anticausal: Impulse response      for      and its transfer function 

must have a one­sided Laurent series 

0  ) 

( =  n 

ü Noncausal: Neither causal or anticausal 

Ø Stability: Output remains uniformly bounded for any bounded input

¥

<

å

¥

=0 

Ø Causal and stable system: poles of H(z) must lie inside the unit circle 

Ø 2D case:  å å ¥ RoC of       must include the unit circles

m  n 

2D systems and mathematical preliminaries 

5.  Matrix theory and results 

Ø Vectors and matrices 

ü Column vector of size N:  U ),  = 1 ¸

ü Row vector of size M:  U ),  = 1 ¸

ü Matrix A of size MxN containing M rows, N columns

ú

ú

ú

ú

û

ù

ê

ê

ê

ê

ë

é

)  ,  (  ) 

2  ,  (  ), 

1  ,  ( 

)  , 

2  (  ) 

2  , 

2  (  ), 

1  , 

2  ( 

)  , 

1  (  ) 

2  , 

1  (  ), 

1  , 

L

L

L

L

ü Index notation: A  N  ´  N = { ( ),  0 £ £ - 1 } 

ü An image is usually visualized as a matrix  è Exp. 2.2

Trang 8

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Ø Row and column ordering 

ü Row­ordered vector (row stacking)

= ( 1 , 1 ),  ( 1 , 2 ),  ,  ( 1 ,  ),  ( 2 , 1 ),  ,  ( 2 ,  ) L (  , 1 ),  ,  (  ,  ) 

= ( 1 , 1 ),  ( 2 , 1 ),  ,  (  , 1 ),  ( 1 , 2 ),  ,  (  , 2 ) L ( 1 ,  ),  ,  (  ,  ) 

ü Column­ordered vector (column stacking) 

Ø Matrix theory definitions

{ a  (  n  m ,  ) } 

A =

ü Matrix: 

ü Transpose: A  T = { a  (  m  n ,  ) }  { * (  ,  ) } 

A =

ü Complex conjungate:

{ (  m  n ) } 

I = d -

ü Conjungate transpose:  ü Identity matrix: 

ü Null matrix: O = { } 0

{ * ( ,  ) } 

A  T =

ü Matrix addition: A + = { a  (  m ) + ) }  : A, B: Same dimension 

ü Scalar multiplication: a = A { a a  (  n  m ,  ) } 

ü Matrix multiplication: å

=

K

)  ,  (  )  ,  (  ) 

2D systems and mathematical preliminaries 

ü Vector inner product: X  *  T  Y = å * ( ) : Scalar quantity, if equal 0 

è X and Y are orthogonal 

ü Vector outer product: XY  T = { x  (  m ) } : X: Mx1, Y: Nx1, XY T : MxN 

ü Symmetric:  T 

A =

ü  Hermitian:  A = * : Real symmetric matrix is Hermitan. Eigenvalues are real 

ü Determinant:  A 

ü Rank of A:  Number of independent rows or columns 

ü Inverse matrix:  A - 1 = AA - 1 = : Square matrix only 

ü Singular: A ­1 does not exist and  A  = 0

ü Eigen values      : all roots of k A  -  I l k = 0

ü Eigen vectors      : all solutions of k A F  k = lF , F ¹ 0 

Trang 9

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Ø Transpose and conjungate rules

[ ]

[ ]

[ ] [ ]

[ ] *  *  * 

AB 

AB 

T

=

=

=

=

-

-

Ø Toeplitz and circulant matrices

ú

ú

ú

ú

û

ù

ê

ê

ê

ê

ë

é

=

-

-

+

-

-

+

-

,  ,  , 

,  , 

L

L

L

L

Ø Circulant matrix C

ú

ú

ú

ú

ú

ú

û

ù

ê

ê

ê

ê

ê

ê

ë

é

=

-

-

-

,  , 

,  , 

L

L

L

C is also Toeplitz and c(m,n)=c((m­n) modulo N)  è Exp. 2.3 

è Exp. 2.4 

t(i,j) = t i­j : Constant elements along the 

main diagonal and sub­diagonal 

2D systems and mathematical preliminaries 

where       and       are eigenvalues and eigenvectors of R 

ü Other form      ,which is the set of eigenvalue equations 

Ø Orthogonal and unitary matrices 

ü Orthogonal matrix: 

ü Unitary matrix:  A - 1 = T or AA = T  A =

è Exp. 2.5a 

Ø Diagonal forms 

ü If R is Hermitian matrix, there exists a unitary matrix Φ such that 

where Λ is a diagonal matrix containing eigenvalues of R

L

=

F  RΦ *T

L

= Φ 

RΦ 

Φ ,  1 , 2 ,  , 

RΦ k =l = L

{ } lk   Φ 

è Exp. 2.5b 

AA 

Trang 10

Hanoi University of Science and Technology  School of Electronics and Telecommunications 

Ø  is block Toeplitz if        is Toeplitz or 

6.  Block matrices and Kronecker products 

Ø Block matrices of size         : each element is a matrix itself

ú

ú

ú

ú

ú

û

ù

ê

ê

ê

ê

ê

ë

é

=

À 

2  , 

1  , 

2  , 

1  , 

2  , 

1  , 

,  , 

L

L

L

where       are      matrices  A 

)  ( 

,  j  A  i  j 

Ø  is block circulant if       is circulant  A  i = (( ) mod ulo ) ,=

èExp. 2.6  èExp. 2.7 

Ø Kronecker products: A: M 1 xM 2 , B: N 1 xN 2 : 

Ø Separable operations: self­reading

{ a  m  n  B 

p ´

m ´

2D systems and mathematical preliminaries 

7.  Random signals 

Ø Definitions: given a sequence of random variables u(n) 

ü Mean: 

ü Variance: 

ü Covariance: 

ü Cross­covariance: 

ü Auto­correlation: 

ü Cross­correlation:

[ ( ) ] 

)  (  ) 

(  n  n  E  u  n 

u =m =

m

)  (  )  (  ) 

(  ) 

(  n  n  E  u  n  n 

[ ), ' ) ] ' )  { [ )  ( ) ] [ u  * ' )  * ( ' ) ] } 

[ ), ' ) ] ' )  { [ )  ( ) ] [ v  * ' )  * ( ' ) ] } 

[ ( )  ( ) ]  ( ,  ' )  ( )  (  ' )  ) 

'  ,  (  )  '  ,  ( n  n  a  n  n  E  u  n  u  *  n  r  n  n  n 

[ (  )  (  ) ]  ( ,  ' )  ( )  ( ' )  ) 

'  ,  ( n  n  E  u  n  v  *  n  r  n  n  n 

Ø For vector    of size Nx1:  u

[ ] { (n ) } 

ü Cov [ ] u  = [ ( - μ )( - μ * ) T ] = R  u = = { ' ) }  is an NxN matrix

ü Cov [ ] uv  = [ ( - μ  u )( - μ  v * ) T ] = R  uv = { r  uv ' ) } is an NxN matrix

Ngày đăng: 08/05/2014, 15:54

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w