1 imaging techniques for flow and motion measurement lecture 10 lichuan gui university of...

14
1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Direct Correlation & MQD Method Method

Upload: carmella-gibson

Post on 18-Jan-2018

227 views

Category:

Documents


0 download

DESCRIPTION

3 Direct Correlation (w/o FFT) Method 2: g 2 (i,j) not limited in the window frame oM N j i g 1 (i,j) m n g 2 (i+m,j+n) A

TRANSCRIPT

Page 1: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

1

Imaging Techniques for Flow and Motion Measurement

Lecture 10

Lichuan GuiUniversity of Mississippi

2011

Direct Correlation & MQD MethodDirect Correlation & MQD Method

Page 2: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

2

Direct Correlation (w/o FFT)Direct Correlation (w/o FFT) Method 1: g2(i,j) limited in the window frame

o M

N

j

i

Adirect njmigjigA

nm ,,1, 211

g1(i,j)

nNmMAmM

i

nN

jA

,:0n0,m1 1

nNmMAM

mi

nN

jA

,:0n0,m1 1

nNmMAmM

i

N

njA

,:0n0,m1 1

nNmMAM

mi

N

njA

,:0n0,m1 1

m

n

g2(i+m,j+n)

A

Page 3: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

3

Direct Correlation (w/o FFT)Direct Correlation (w/o FFT) Method 2: g2(i,j) not limited in the window frame

o M

N

j

i

Adirect njmigjigA

nm ,,1, 212

g1(i,j)

m

n

g2(i+m,j+n)

A

NMA

M

i

N

jA

1 1

Page 4: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

4

Particle Image Pattern TrackingParticle Image Pattern Tracking Tracking ensemble of particle images

1st recording

2nd recording

tracked image pattern

Image pattern at (m,n)

njmignjNymiMxGlkG

jigjNyiMxGlkG

mmS

mmM

,2

,2

,

,2

,2

,

22

11

NlMk

,,2,1,,2,1

Page 5: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

5

Minimum-quadratic-difference (MQD) method

NlMklkG

NlMklkG

SS

MM

,2,1,2,1,,

,2,1,2,1,,

MN dimensional vectors

M

k

N

lMs

SM

lkGlkG

nmD

1 1

2

2

,,

,

Quadratic difference of the vectors

M

i

N

jnjmigjignmD

1 1

221 ,,,

D(m, n) (%)

nm

-20-100

1020

-20-10 0 10 20

0

20

40

60

80

100

0

20

40

60

80

100

-20-100

1020-20-1001020

0

20

40

60

80

100

0

20

40

60

80

100

D(m, n) (%)

m n

Double exposure Single exposures

Minimum-quadratic-difference (MQD) method

Particle Image Pattern TrackingParticle Image Pattern Tracking

Page 6: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

6

Modified MQD tracking function

Particle Image Pattern TrackingParticle Image Pattern Tracking

nmDCnmDjignmDM

i

N

j,,,,

1 1

21

*

- D*(m,n) and D(m,n) identical for determining particle image displacement- 3-point Gaussian fit directly applied to D*(m,n)

m [pixel]

n[p

ixel

]

-30 -20 -10 0 10 20 30-30

-20

-10

0

10

20

30

1.000.900.800.700.600.500.400.300.200.100.00

D*(m,n)

m [pixel]

n[p

ixel

]

-30 -20 -10 0 10 20 30-30

-20

-10

0

10

20

30

1.000.900.800.700.600.500.400.300.200.100.00

D(m,n)Normalized MQD tracking functions

Page 7: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

7

Correlation-based tracking method

M

i

N

j

M

i

M

i

N

j

N

jnjmignjmigjigjignmD

1 1

222

1 1 11

1

21 ,,,2,,

M

i

N

j

M

i

N

j

M

i

N

jnjmignmDjignjmigjig

1 1

22

1 1

21

1 121 ,,,

21,,

nmQ ,

nmQnmDnjmigjignmM

i

N

jtr ,,

21,,, *

1 121

Correlation-based tracking function

nmNMnjmigjignm direct

M

i

N

jtr ,,,, 2

1 121

Particle Image Pattern TrackingParticle Image Pattern Tracking

nmD ,*

Page 8: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

8

M

i

N

jtr gnjmiggjignm

1 12211 ,,,

M

i

N

j

M

i

N

j

jigNM

g

jigMN

g

1 122

1 111

,22

1

,1

for

Particle Image Pattern TrackingParticle Image Pattern Tracking Modified correlation-based tracking function

nmQnmDnmtr ,,21, *

M

i

N

jgnjmignmQ

1 1

222 ,,

2(m,n) Q(m,n) -D (m,n)*- = nmtr ,2 nmQ , nmD ,*

zero

Page 9: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

9

o M

N

j

ig1(i,j)

m

n

A

g2(i+m,j+n)

0.0

0.5

1.0

-15-10-5051015

m

-10

0

10

n

(m,n)

tr(m,n)/D*(m,n)

2

2

Tracking radius

Particle Image Pattern TrackingParticle Image Pattern Tracking Tracking area & tracking radius

Page 10: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

10

Acceleration with FFT

Particle Image Pattern TrackingParticle Image Pattern Tracking

M

i

N

jtr njmigjignm

1 121 ,,,No periodical, no FFT:

Zero padding:

Periodical, with FFT:

* *

1 1

*2

*1

* ,,,M

i

N

jtr njmigjignm

g1(i,j) g2(i,j)

jigjigjigjig ,,*,,,* 2211

Page 11: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

11

* *

1 1

*2

*1

* ,,,M

i

N

jtr njmigjignm  for [‑  m < , ‑  n < ]

jlikfornlmkglkgM

k

N

l,,,

1 121

rest

i

rest

j

M

i

N

jnjmigjignjmigjig ,,,, *

2*1

1 1

*2

*1

M

i

N

jnjmigjig

1 1

*2

*1 ,,

M

i

N

jnjmigjig

1 121 ,,

nmtr ,

 0

Acceleration with FFT

Particle Image Pattern TrackingParticle Image Pattern Tracking

nmQnmnmD tr ,,2, **

Page 12: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

12

Computation time

Particle Image Pattern TrackingParticle Image Pattern Tracking

16 32 48 64 80 96 112 128

Side length of the squared interrogation windows [pixel]

0

500

1,000

1,500

2,000

2,500

Com

puta

tion

time

for 5

00 v

ecto

rs [s

]

Correlation without FFT

Correlation with FFTAdvanced MQD ( =10 pixel)

 Correlation tracking with FFT

Test computer: IBM 6×86 P166+

 [pixel]

Page 13: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

Imaging techniques for fluid flow and insect motion experiments

13

Evaluation error

Particle Image Pattern TrackingParticle Image Pattern Tracking

Image pattern tracking methods- periodical error distribution on particle image displacement (1 pixel period)- MQD has higher accuracy for ideal PIV images, but more sensitive to noisesCorrelation algorithm- error dependent on particle image displacement, high accuracy at very small displacement

Evaluation error for ideal PIV recordings by using different algorithms with a 64x64-pixel interrogation window

Page 14: 1 Imaging Techniques for Flow and Motion Measurement Lecture 10 Lichuan Gui University of Mississippi 2011 Direct Correlation & MQD Method

14

– Programming

• Compute correlation-based tracking function at the center of image01.bmp with 32x32-pixel window

– Practice with EDPIV• Evaluation settings:

- Exposure type: Double- Flow direction: E- interrogation grid: 31x31 pixels- iteration number: 0, 1- Search radius: 20 pixels

• Functions used in “Evaluation” window- create a regular evaluation grid- select a test point at the center- start an evaluation - view image samples and evaluation function- determine discrete and sub-pixel displacement

HomeworkHomework