• 검색 결과가 없습니다.

Discrete Transforms – 활용

N/A
N/A
Protected

Academic year: 2022

Share "Discrete Transforms – 활용"

Copied!
30
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Discrete Transforms – 활용

김성영교수 금오공과대학교 컴퓨터공학과

(2)

학습 목표

Cosine transform에 대해 설명할 수 있다.

Fourier transform에 대해 설명할 수 있다.

Spectrum의 특성에 대해 설명할 수 있다.

주파수 공간에서의 필터링 종류를 구분하여 설명할 수

있다.

(3)

Cosine Transform

Use only cosine function

Use only real arithmetic

Used in image compression (JPEG, MPEG)

2-D Discrete Cosine Transform (DCT)

∑∑

=

= 

 + +

= 1

0 1

0

2 ] ) 1 2

cos[( 2 ]

) 1 2

cos[( )

, ( )

( ) ( )

, (

N

r N

c N

v c

N u c r

r I v

u v

u

C

α α π π



 

= 

=

= 0 1 ,

1 ,....

2 , 1 2 ,

) ( ),

(

N for u v

N v

u N for

v

u α

α

(4)

0 1 2 3 u v

0 1 2 3

Basis Images for DCT

(5)

Cosine transform Original Image

Cosine transform

linearly remapped image

(6)

Fourier Transform (1)

Most well-known and most widely used

2-D discrete Fourier transform

Decompose an image into a weighted sum of 2-D sinusoidal terms

Euler’s identity

∑ ∑

=

=

+

= 1

0 1 0

) 2 (

) , 1 (

) ,

( N

r N c

N vc j ur

e c r N I

v u

F π

x j

x

e

jx

= cos + sin

∑ ∑

=

=

+

− +

= 1

0 1 0

))]

2 ( sin(

)) 2 (

)[cos(

, 1 (

) ,

( N

r N c

vc N ur

j vc

N ur c

r N I

v u

F π π

(7)

F 𝑢𝑢, 𝑣𝑣 = R 𝑢𝑢, 𝑣𝑣 + 𝑗𝑗I(𝑢𝑢, 𝑣𝑣)

a complex spectral component

) , ( )

, ( )

,

( u v R

2

u v I

2

u v

F = +

 

 

=

) , (

) , tan (

) ,

(

1

v u R

v u v I

φ u

Magnitude : related to contrast

Phase : related to where objects are in an image

(8)

Original Image

Fourier Transform

Phase-only Image

영상은 Computer Imaging (CRC Press)에서 가져왔음

(9)

Fourier Transform (2)

2-D discrete Inverse Fourier Transform

Get the original image back

Fourier transform & Inverse Fourier transform

basis functions’ exponent is changed from -1 to +1

Same in the frequency and magnitude of the basis functions

∑ ∑

=

=

+

= 1

0 1 0

) 2 (

) , 1 (

) ,

( N

u N v

N vc j ur

e v u N F

c r

I

π

(10)

Fourier Transform

(11)

Fourier Transform 의 특성

Separability

If two dimensional transform is separable

By successive application of two one-dimensional transforms

[ ] [ ]





=

∑ ∑

=

=

1 0 1

0exp 2 ( , )exp 2

) 1 ,

( N

c N

r j ur N I r c j vc N

v N u

F π π

[ ]

[ ]

=

=

=

= 1 0 1

0

2 exp

) , 1 (

) , (

2 exp

) , 1 (

) , (

N c N

r

N vc j

c r N I

N v

r F

N ur j

v r N F

v u F

π π

(12)

Properties of Spectrum

Fourier Transform: Periodicity and Conjugate Symmetry

N×N spectrum is repeated in all directions to infinity

F(u,v) = F(u+N, v) = F(u,v+N) = F(u+N, v+N)

F(u,v) = F*(-u,-v) N

N

N/2

N/2

R + jI, R – jI

(13)

Properties of Spectrum

Frequency Translation

Shift the origin of the spectrum to the center for display and filtering purpose

Log transform of spectrum

Greatly enhance the visual information in the spectrum

[ 1 ( , ) ]

log )

,

log( u v = k + F u v

A B C D

A B C D

A B C D A B

C D

A B C D

A B C D

C

D

(14)

Shift to center

Log-Remapping

영상은 Computer Imaging (CRC Press)에서 가져왔음

(15)

Properties of Spectrum

In Cosine Transform,

2N

2N

X

(16)

Filtering

Four Types of Filtering

Lowpass filtering

Remove high-frequency information, blurring an image

Highpass filtering

Remove low-frequency information, sharpen an image

Bandpass filtering

Extract frequency information in specific parts

Bandreject filtering

Eliminate frequency information in specific parts

(17)

Filtering: Lowpass Filtering

Pass low frequency and eliminate high frequency information ➡ Blur images

Used for hiding effects caused by noise

Performed by multiplying the spectrum by a low-pass filter and then applying the inverse transform to obtain the filtered image

𝐈𝐈𝐈𝐈𝐈𝐈𝐈𝐈 𝑟𝑟, 𝑐𝑐 = 𝐓𝐓 −1 𝐓𝐓 𝑢𝑢, 𝑣𝑣 𝐇𝐇𝐈𝐈𝐈𝐈𝐈𝐈(𝑢𝑢, 𝑣𝑣)

Convolution Theorem

(18)

Filtering: Lowpass Filtering

Some Terminologies

Cutoff frequency, f0

the frequency at which we start to eliminate information

Passband

not filtered out frequency

Stopband

filtered out frequency

Ideal filter

leave undesirable artifacts in image

Nonideal filter (Butterworth filter)

avoid the problem of ideal filter

(19)

f0 Freq.

1 Gain

Passband Stopband

1D Lowpass Ideal Filter 2D LPIF for Fourier spectrum

Freq.

1 Gain

Transition

2D LPIF for Cosine

(20)

ripple artifact

영상은 Digital Image Processing (Prentice Hall)에서 가져왔음

(21)
(22)

영상은 Digital Image Processing (Prentice Hall)에서 가져왔음

(23)
(24)

Filter Order = 1 Filter Order = 3

Filter Order = 6 Filter Order = 8

영상은 Digital Image Processing (Prentice Hall)에서 가져왔음

(25)

Filtering: Highpass Filtering

Pass high frequency information for edge enhancement

1 Gain

Transition

f0 Freq.

1 Gain

Passband Stopband

(26)

영상은 Digital Image Processing (Prentice Hall)에서 가져왔음

(27)
(28)

Inverse Halftoning

X =

(29)

학습 정리

Fourier transform

사인 및 코사인 함수의 조합으로 된 기저 함수를 사용

스펙트럼은 복소수 값으로 표현

신호(영상) 분석에 주로 사용

Consine transform

코사인 함수를 기저 함수로 사용

스펙트럼은 실수 값으로 표현

영상 압축에 주로 사용

스펙트럼의 특성 (Properties of Spectrum)

Fourier Transform: Periodicity and Conjugate Symmetry

Four Types of Filtering

(30)

Reference

Scott E Umbaugh, Computer Imaging, CRC Press, 2005

R. Gonzalez, R. Woods, Digital Image Processing

(2nd Edition), Prentice Hall, 2002

참조

관련 문서

This study was performed by observation of the single nonwoven fabric filter bioreactors with the kind of nitrogen sources and conditional change by the

To examine the performance of the N-PI controller proposed in this study, simulation was performed by applying the proposed controller to a water tank system; and the

‹ faster reactions: stable carbocation & unstable reactants..  electron donating groups &

(3.1-6) is the discrete-time Wiener-Hopf equation. It is the basis for the derivation of the Wiener filter. Then the impulse response ) has a finite duration, and this

In gi ngi va,LCs are found i n oralepi thel i um ofnormalgi ngi va and i n smal l er amountsi nthesul cul arepi thel i um,buttheyareprobabl yabsentfrom thejuncti onal epi thel

The stereoscopic microscope image of gold particles in the leaching residue from Geumsan sample as a function of nitric acid concentration on the filter papers by lead

→ The dispersion coefficient in a real stream (1D model) should be obtained by neglecting the vertical profile entirely and applying Taylor's analysis to the

 The inverse pole figure gives the probability of finding a given specimen direction parallel to crystal (unit cell) directions.  By collecting data for several reflections