comparison between optical flow and cross-correlation

27
(Optical Flow vs Cross-Correlation) Tianshu Liu, Ali Merat, M. H. M. Makhmalbaf Claudia Fajardo, Parviz Merati Western Michigan University, Kalamazoo, MI 49008 Comparison between Optical Flow and Cross-Correlation Methods for Extraction of Velocity Fields from Particle Images

Upload: others

Post on 04-May-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Comparison between Optical Flow and Cross-Correlation

(Optical Flow vs Cross-Correlation)

Tianshu Liu, Ali Merat, M. H. M. Makhmalbaf

Claudia Fajardo, Parviz Merati

Western Michigan University, Kalamazoo, MI 49008

Comparison between Optical Flow and

Cross-Correlation Methods for Extraction

of Velocity Fields from Particle Images

Page 2: Comparison between Optical Flow and Cross-Correlation

Objective

To quantitatively compare the optical flow

method and cross-correlation method in

extraction of velocity vectors from particle

images

Page 3: Comparison between Optical Flow and Cross-Correlation

Cross-Correlation Method in Particle Image Velocimetry (PIV)

Images of Discrete Particles

Cross-

Correlation

Velocity Vectors t = 0

t = t

Page 4: Comparison between Optical Flow and Cross-Correlation

Optical Flow Method in Computer Vision

Optical flow: the apparent motion of object surfaces in a visual

scene caused by the relative motion between an observer (camera)

and the scene.

Lucas–Kanade Method:

Local method based on an affine model for the flow field

in windows

Horn–Schunck Method:

Global method of minimizing a functional based on residuals

from the brightness constancy constraint, and a particular

regularization term expressing the expected smoothness

of the flow field

Page 5: Comparison between Optical Flow and Cross-Correlation

Physics-Based Optical Flow Method Developed for Extraction of High-Resolution

Velocity Field from Images of Continuous Patterns

Page 6: Comparison between Optical Flow and Cross-Correlation

Physics-Based Optical Flow Equation

1221 )u,u( Uu

Optical flow has a clear physical meaning:

),(BgD)g,x,x(f 2122

21

Diffusion and boundary terms:

)g,x,x(fgt/g 21 u

2

1

2

1

3

312

12

Xd

Xd

U

U

where the path-averaged velocity is

Normalized image

intensity

Page 7: Comparison between Optical Flow and Cross-Correlation

The Inverse Problem to Solve the Generic

Physics-Based Optical Flow Equation

Using Variational Method

Functional for Minimization:

21

2

2

2

1

212

dxdxuu

dxdxfgt/g)(J uu

Smooth Constraint

Page 8: Comparison between Optical Flow and Cross-Correlation

Euler-Lagrange Equation

Neumann boundary condition:

0n u/

Numerical solution:

Finite difference & Jacob iteration

0f)g(t/gg 2 uu

Page 9: Comparison between Optical Flow and Cross-Correlation

Problems in Applying the Optical Flow Method

to PIV Images

PIV images are spatially

non-smooth random

intensity fields, which

intrinsically are not

suitable to the differential

method like the optical

flow method.

It is highly desirable to evaluate

Constraints for the optical flow method

applied to PIV images

Page 10: Comparison between Optical Flow and Cross-Correlation

Error Analysis and Relevant Parameters

2

p

2

pm

mp

4

2p

32

p22

p

2p1

pN

c

d

cc

dc

x

xu

u

x

Error Estimate

Particle displacement

Particle diameter

Particle velocity gradient

Particle image density

Four Error Parameters

px

pd

pu

pN

Page 11: Comparison between Optical Flow and Cross-Correlation

Simulation:

Oseen-Vortex Pair in Uniform Flow

Optical Flow Correlation (LaVision)

Page 12: Comparison between Optical Flow and Cross-Correlation

Simulation:

Oseen-Vortex Pair in Uniform Flow

Optical Flow Correlation

Page 13: Comparison between Optical Flow and Cross-Correlation

Simulation:

Oseen-Vortex Pair in Uniform Flow

X-velocity component Y-velocity component

Comparison between Velocity Profiles

Page 14: Comparison between Optical Flow and Cross-Correlation

Simulation:

Oseen-Vortex Pair in Uniform Flow

Optical Flow Correlation

RMS Error Distributions

Page 15: Comparison between Optical Flow and Cross-Correlation

Optical Flow vs Correlation in Parameter Space

px

pd

pu

pN

Page 16: Comparison between Optical Flow and Cross-Correlation

Effect of Illumination Change

Non-corrected image Corrected image

Page 17: Comparison between Optical Flow and Cross-Correlation

Effect of Illumination Change

Corrected images

Non-corrected images

Page 18: Comparison between Optical Flow and Cross-Correlation

Effect of Illumination Change

Page 19: Comparison between Optical Flow and Cross-Correlation

Snapshot Field in Impingement Region

of Normal Impinging Jet

Optical Flow

Correlation

PIV Image

Page 20: Comparison between Optical Flow and Cross-Correlation

Impinging Jet: Impingement Region

Comparison between Snapshot Velocity Profiles

Y-velocity component X-velocity component

Page 21: Comparison between Optical Flow and Cross-Correlation

Snapshot Field in Wall-Jet Region

of Normal Impinging Jet PIV Image

Optical Flow

Correlation 200 data points

30 data points

Page 22: Comparison between Optical Flow and Cross-Correlation

Impinging Jet: Wall-Jet Region

Comparison between Snapshot Velocity Profiles

Y-velocity component X-velocity component

Page 23: Comparison between Optical Flow and Cross-Correlation

Ensemble-Averaged Fields in Wall-Jet Region

of Normal Impinging Jet

Optical Flow Correlation

Turbulent Kinetic Energy

Reynolds Stress

Page 24: Comparison between Optical Flow and Cross-Correlation

Impinging Jet: Wall-Jet Region

Comparison between Ensemble-Averaged Profiles

Reynolds Stress Turbulent Kinetic Energy

Page 25: Comparison between Optical Flow and Cross-Correlation

Impinging Jet: Wall-Jet Region

Comparison between Kinetic Energy Spectra

Page 26: Comparison between Optical Flow and Cross-Correlation

Conclusions

(1) The main parameters in optical flow

computation for PIV images:

(2) The optical flow method can obtain improved

results with much higher resolution from PIV

images when these parameters are suitably selected.

Particle displacement

Particle velocity gradient

Particle density

Particle diameter

Page 27: Comparison between Optical Flow and Cross-Correlation