12랑 똑같음
Motion Field
Image velocity of a point moving in the scene

Optical Flow
Motion of brightness pattern in the image
Ideally, Optical flow = Motion field
Problem Definition: Given two consecutive image frames, estimate the motion of each pixel
consecutive:

Optical Flow != Motion Field
제자리에서 돌아가면 motion field 있고 optical flow 없음
광원이 움직이면 motion field 없고 optical flow 있음
Barber pole illusion, Donguri wave illusion
Key Assumption
1. Brightness (Color) Constancy
implication: Allows for pixel to pixel comparison (not image features)
I(x(t),y(t),t) = C
2. Small Motion
pixels only move a little bit
implication: Linearization of the brightness constancy constraint
Look for nearby pixels(small motion) with the same color(brightness constancy)
Brightness Constancy Equation
Insight: If the time step is really small, we can linearize the intensity function
크게 보면 곡선이어도 짧은 부분은 직선과 같다


shorthand notation
vector form



Assumptions:
• Flow is locally smooth
• Neighboring pixels have same displacement
Using a 5×5 image patch, gives us 25 equations

Lucas-Kanade Optical Flow:
Solvable:
invertible,
not too small- not too small,
well conditioned- not too large
Eigenvecotrs and eigenvalues of relate to edge direction and magnitude

Low-texture region (bad)
: Gradients have small magnitude, small
Edges (so so)- Aperture problem
gradients are very large or very small, Large , small
high-texture region (good)
: Gradients are different, large magnitude, Large , large
Aperture problem
v 구함, u 구해야함- 다음내용
-_ actual motion >
small visible image patch, preceived motion /^


What if we have large motion?
• Taylor series approximation is not valid.
Solution: Reduce the resolution!
u = 1.25, 2.5, 5, 10 pixels
Gaussian pyramid, run iterative L-K -> warp & upsample


Optical Mouse, Traffic Monitoring, Slow Motion Effect(Video Retiming), Video Stabilization


Tracking
non-linear function -> assume

good initial guess p (assumption)
: small incremental adjustment, solve it!

still non-linear(quadratic) 2차 함수
-> Talyor series approximation






Other Methods

What are good features for tracking?
avoid smooth regions and edges
define?

H should be invertible, not be too small
H should be well conditioned- not too large
Example: translation model


define?
solution:
Big Eigenvalues means good for tracking
Algorithm
Algorithm
1. Find patches satisfying:
2. For each patch compute displacement to next frame using the Lucas-Kanade method
3. Store displacement of each patch, update patch position
4. (Optional) Add more patches every 5 frames using 1
5. Repeat 2 to 4
6. Returns long trajectories for each patch