Lecture 11 - Optical Flow Flashcards

(38 cards)

1
Q

What is a video?

A

A sequence of frames captured overtime, where the image data is a function of space and time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is motion useful?

A
  • We know what is moving and not moving
  • Detect moving objects and make decisions
  • Determines direction (i.e. which way is traffic is moving)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is optical flow?

A

The movement of pixels overtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the goal of optical flow?

A
  • To generate a motion vector for each pixel in an image between t0 and t1 by looking at two images
  • By computing the motion vector between each frame in a video we can track the flow of objects or the brightness patterns over an extended period of time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s an issue with optical flow?

A

It is only limited to representing the apparent motion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the assumptions (constraints) of optical flow?

A
  • Brightness should be constant
  • Small motion (large motions make it hard to track)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a motion field?

A

Image velocity of a point that is moving in the scene

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the formula for motion?

A
  • I (x,y,t)
  • Where:
    ○ The horizontal component is u(x, y)
    ○ The vertical component is v(x, y)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When does optical flow not equal motion field?

A
  • If source is moving and object is stationary it an optical flow
  • If the object is moving and the source is stationary we have motion field
    REFER TO EXAMPLES
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the formula for displacement (shift)?

A

I(x+u, y+v, t+1) = I(x,y,t), as you can see it is the same a the orginal formula for motion as brightness doesnt change

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the two assumptions of optical flow?

A
  • Brightness of the point will remain the same
    ○ Encapsulates Spatial smoothness - neighbouring pixels are lilely to belog to the same surface
  • Small motion
    ○ Displacement with change is x and y
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the formula of optical flow?

A

Formula for optical flow: (u,v) = (change in x (x/time), change in y (y/time))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the brightness constancy equation for optical flow?

A
  • Ixu + lyv + It = 0
  • Allows for change across two frames
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What do the terms of brightness constancy equation represent?

A
  • Ix and Iy represent the image gradient at point p
  • u and v represent the flow velocities
  • It represents the temporal gradient
  • We can compute Ix, Iy and It from the image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you compute Ix and Iy derivatives?

A
  • Using forward difference
  • Sobel filter
  • Derivative of Gaussian Filter
  • More specifically
    ○ You can apply [-1 0 1] to find Ix
    ○ You can apply [-1 0 1]^T to find Iy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you compute temporal derivative?

A
  • Frame differencing
    ○ Which is subtracting one frame from another
    ○ t - (t+1) = It
17
Q

What is the aperture problem?

A

Where the movement is ambiguous, looks like it’s moving in one direction but if going in another direction
- We recover the v of the optical flow but not the u

18
Q

Why does the aperture problem happen?

A
  • Due to viewing only constant areas
  • This problem does not occur in corners where you can see the movement
19
Q

What is the Lucas-Kanade Solution?

A
  • Same as the brightness constancy equation but uses k and l instead
    • Ix(k,l)u + iy(k,l)v + It(k,l) = 0
20
Q

Where do we get more equations to determine u and v?

A

We know that u and v are unknown (cannot find in image) so we need two equations to find it
- We use the constant flow of the surrounding patch (which can be of varying size for example 5x5)
○ This means we will get 25 total equations that can be written as:
§ X = (A^T * A)^-1 * A^T *b

21
Q

What are the properties of the equations to determine u and v??

A
  • A^T *A should be invertible
  • A^T * A should not be too small (if small it’s not a corner)
  • A^T * A should we well-conditioned
22
Q

Why is the smooth region for optical flow bad?

A
  • Cannot reliably compute the flow
  • As the pixel moved, but the brightness did not change so we can’t find optical flow
23
Q

Why are edges bad in optical flow?

A
  • We don’t know how the edges are moving
  • Basically aperture problem
  • Badly conditioned and prominent gradient in one direction
24
Q

Why are Textured areas good for optical flow?

A
  • Well-conditioned
  • Large and diverse gradient magnitudes
  • Can easily compute
25
Why do we do coarse to fine optical movement?
- Because the movement or difference between two images is too high - The Taylor expansion does not hold and therefore cannot compute the optical flow - The simple linear constrain equation does not hold either where: ○ Ix + Iy + It does not equal 0
26
How do you reduce the displacement in and image?
Basically go coarse to fine - You make the image smaller by halving for example - For example: ○ I have 100x100 image with 16x16 pixel displacement ○ Then half is 50x50 image with 8x8 pixel displacement, etc This allows you to compute the optical flow
27
What are the traditional applications of optical flow?
- Dense structure from motion - Estimation of camera motion - Detection of surface boundaries
28
What are the more general applications of optical flow?
- Image processing - Computer graphics - Video compression - Motion - Animation
29
What are the effects of optical flow?
Painterly effect Bullet time Realistic deformation of faces in slow motion uses 3D meshes Estimating 3D structures
30
What is the Painterly effect?
Transfer real world into a painting
31
What is bullet time?
- Use optical flow to compute the correspondence between different camera views - Allows for smooth interpolation between views
32
How can you find the background object using optical flow?
The background is constant or not moving but the object is moving
33
What is Motion segmentation
Segmenting the video in to multiple moving objects
34
What is recognising events and activities?
- Based on motion you can recognise what people are doing - What actions are being performed
35
What are the Application of optical flow?
- Optical mouse - Traffic monitoring - Video stabilisation - Slow motion - use optical flow to estimate where pixel will be between frames - Object removal - Motion magnification
36
How can 3D shapes acquired?
- Laser point - RGB with depth image
37
What is laser time flight scanner?
Fire a laser and measure its time delay after reflection from an object
38
How do you represent 3D data?
- 3D data is just a collection of points called pointcloud - Its is a 3x3 matrix [X, Y, Z] ^T coordinates of the scene that was scanned - Pointclouds are converted to mesh by connecting nearest points to form triangles/polygons - Polygons are filled and shaded to render surface === The general steps is pointcloud -> mesh -> polygons