



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document delves into the concept of optical flow, explaining its significance in image processing. It covers the optical flow constraint equation, the aperture problem, and methods to compute optical flow. The document also discusses the limitations of the small motion assumption and proposes solutions like reducing image resolution and coarse-to-fine estimation.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Optical Flow: Velocities
Displacement:
d : R 2 → R
E(d) = Edata(d) + λEsmooth(d)
Edata(d) =
x,y
C(Ilef t(x, y), Iright(x + d(x, y), y))
Esmooth =
x,y
φ(d(x + 1, y) − d(x, y))
x,y
φ(d(x, y + 1) − d(x, y))
φ(∆d)
∆!x w(L(#x), L(#x + ∆#x))w(R(#x), R(#x + ∆#x))d(L(#x + ∆#x), R(#x + ∆#x)) ∑ ∆!x w(L(#x), L(#x^ +^ ∆#x))w(R(#x), R(#x^ +^ ∆#x)) #x = (x, y)
ri = f ′ r^0 r 0 · z
vi =
∂ri
∂t
= f ′ (ro^ ·^ z)v^0 −^ (v^0 ·^ z)r^0 (r 0 · z)^2
δt → 0
≈
Constraint Equation
ri = f
r 0
r 0 · z
vi =
∂ri
∂t
= f
(ro · z)v 0 − (v 0 · z)r 0
(r 0 · z)
δt → 0
1
Optical Flow Constraint Equation
Constraint Equation
Optical Flow Constraint
Computing Optical Flow
Usually motion field varies smoothly in the image. So, penalize departure from smoothness:
weighting factor
Discrete Optical Flow Algorithm
Consider image pixel
show up in more than one term
Discrete Optical Flow Algorithm
are averages of around pixel
Example
image H image I
Gaussian pyramid of image H Gaussian pyramid of image I
image H image I u=10 pixels
u=5 pixels
u=2.5 pixels
u=1.25 pixels
image J image I
Gaussian pyramid of image H Gaussian pyramid of image I
image H image I
run iterative OF
run iterative OF
upsample
. . .
::
:B
:&
:S
:T
:U
:%
y = mx + b
b = mx − y
(x 0 , y 0 )
(x 1 , y 1 ) (m 0 , b 0 )
(m 1 , b 1 )
x sin φ − y cos φ = ρ
ρ = r sin(φ − θ)
r =
x^2 + y^2
tan θ = y/x
Eelastic(v) =
0
α(s) · |v′(s)|^2 ds
Estif f ness(v) =
0
β(s) · |v ′′ (s)| 2 ds
Eedge(v) = −
0
|∇I(x(s), y(s))| 2 ds
Euser (v) =
0
U ser(x(s), y(s))ds
y = mx + b
b = mx − y
(x 0 , y 0 ) (x 1 , y 1 )
(m 0 , b 0 )
(m 1 , b 1 )
x sin φ − y cos φ = ρ ρ = r sin(φ − θ)
r =
x^2 + y^2
tan θ = y/x
Eelastic(v) =
0
α(s) · |v ′ (s)| 2 ds
Estif f ness(v) =
0
β(s) · |v ′′ (s)| 2 ds
Eedge(v) = −
0
|∇I(x(s), y(s))| 2 ds
Euser (v) =
0
U ser(x(s), y(s))ds
y = mx + b
b = mx − y (x 0 , y 0 )
(x 1 , y 1 )
(m 0 , b 0 )
(m 1 , b 1 ) x sin φ − y cos φ = ρ
ρ = r sin(φ − θ)
r =
x^2 + y^2 tan θ = y/x
Eelastic(v) =
0
α(s) · |v ′ (s)| 2 ds
Estif f ness(v) =
0
β(s) · |v ′′ (s)| 2 ds
Eedge(v) = −
0
|∇I(x(s), y(s))|^2 ds
Euser (v) =
0
U ser(x(s), y(s))ds
y = mx + b
b = mx − y
(x 0 , y 0 )
(x 1 , y 1 ) (m 0 , b 0 )
(m 1 , b 1 )
x sin φ − y cos φ = ρ
ρ = r sin(φ − θ)
r =
x^2 + y^2
tan θ = y/x
Eelastic(v) =
0
α(s) · |v′(s)|^2 ds
Estif f ness(v) =
0
β(s) · |v ′′ (s)| 2 ds
Eedge(v) = −
0
|∇I(x(s), y(s))| 2 ds
Euser (v) =
0
U ser(x(s), y(s))ds
(penalize rapid changes in surface normals over the image)
2
2
2
2
2
2 y
BU