motion denoising with application to time-lapse...

24
Michael Rubinstein MIT CSAIL Motion Denoising with Application to Time-lapse Photography Ce Liu Microsoft Research NE Peter Sand Fredo Durand MIT Bill Freeman MIT

Upload: others

Post on 21-Jul-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Michael Rubinstein MIT CSAIL

Motion Denoising with Application to Time-lapse Photography

Ce Liu Microsoft Research NE

Peter Sand Fredo Durand MIT

Bill Freeman MIT

Page 2: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Time-lapse Videos

Construction

Natural phenomena Medical Biological/Botanical

Page 3: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

For Personal Use Too!

Source: YouTube

9 months

7 years

16 years

http://www.danhanna.com/aging_project/p.html

Page 4: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

“Stylized Jerkiness”

Page 5: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Motion Denoising

Time

World Time-lapse

Space

Motion denoising

Page 6: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Motion Denoising

Motion

denoising

Page 7: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Video summarization (video time-lapse)

• Time-lapse editing

Time-lapse in Vision/Graphics Research

[Bennett and McMillan 2007] [Pritch et al. 2008]

[Sunkavalli et al. 2007]

Page 8: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Naïve low-pass (temporal) filtering

– Pixels of different objects are averaged

• Smoothing motion trajectories

– Motion estimation in time-lapse videos is hard!

* Motion discontinuities

* Color inconsistencies

Motion Denoising is Challenging!

KLT tracks

Page 9: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Key idea: long-term events in videos can be statistically explained within some local spatiotemporal support, while short-term events are more distinctive

– Assumption: world is smooth

– Short-term variation = noise, long-term variation = signal

• Our algorithm reshuffles the pixels in both space and time to maintain long-term events in the video, while removing short-term noisy motions

Formulation

Page 10: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

𝐸 𝑤 = |𝐼 𝑝 + 𝑤(𝑝) − 𝐼(𝑝

𝑝

)|

+ 𝛼 𝐼(𝑝 + 𝑤 𝑝 ) − 𝐼 𝑟 +𝑤(𝑟) 2

𝑝,𝑟∈𝑁𝑡(𝑝)

+ 𝛾 𝜆𝑝𝑞|𝑤 𝑝 −𝑤 𝑞 |

𝑝,𝑞∈𝑁(𝑝)

Formulation

𝑝 = (𝑥, 𝑦, 𝑡) 𝐼 – input video, 𝐼(𝑝 + 𝑤 𝑝 ) – output video

𝑁𝑡 𝑝 - Temporal neighbors of 𝑝, 𝑁 𝑝 - Spatiotemporal neighbors of 𝑝 𝑤 𝑝 ∈ 𝛿𝑥 , 𝛿𝑦 , 𝛿𝑡 : |𝛿𝑥| ≤ Δ𝑠, 𝛿𝑦 ≤ Δ𝑠 , 𝛿𝑡 ≤ Δ𝑡 - displacement field

𝜆𝑝𝑞 = exp −𝛽 𝐼 𝑝 − 𝐼 𝑞2 , 𝛽 = 2 𝐼 𝑝 − 𝐼 𝑞 2 −1

Fidelity (to input)

Temporal coherence

(of the result)

Regularization

(of the warp)

Page 11: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Optimized discretely on a 3D MRF

– Nodes represent pixels

– state space of each pixel = volume of possible spatiotemporal shifts

• Complicated (huge!) inference problem

– E.g. 5003 nodes, 103 states per node

– Optimize using Loopy Belief Propagation

Optimization

Page 12: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Potential functions message passing

– Message structure stored on disk; read and write message chunks on need

𝜓𝑝 𝑤 𝑝 = 𝐼 𝑝 + 𝑤 𝑝 − 𝐼 𝑝

𝜓𝑝𝑟𝑡 𝑤 𝑝 ,𝑤 𝑟 = 𝛼 𝐼 𝑝 +𝑤 𝑝 − 𝐼 𝑟 +𝑤 𝑟

𝟐+

𝛾𝜆𝑝𝑟|𝑤 𝑝 − 𝑤 𝑟 |

𝜓𝑝𝑞𝑡 𝑤 𝑝 ,𝑤 𝑞 = 𝛾𝜆𝑝𝑞|𝑤 𝑝 − 𝑤 𝑞 |

Optimization

Linear in state space +

Pre-compute

Quadratic in state space

(non convex)

Quadratic in state space

But can be computed in linear

time (distance transforms)

Page 13: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• Spatiotemporal video pyramid

– Smooth spatially

– Sample temporally

• Displacements in the coarse level used as centers for the search volume in the finer level

Multi-scale Processing

Page 14: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Results

x

y

future

past

Page 15: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Comparing with Other Optimization Techniques

Page 16: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Results

x

y

future

past

Page 17: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Results

Page 18: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Comparison with Naïve Temporal Filtering

x

t

Page 19: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Support Size

Page 20: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Motion-scale Decomposition

Page 21: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Motion-scale Decomposition

Page 22: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

Other Scenarios

Page 23: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

• User-controlled motion scales

– Not necessarily binary decomposition into long-term and short-term

• Modify the time-lapse capturing process to help post-processing

– E.g. use short videos instead of still images and find best “path” through the video

• Explore motion-denoising with time-lapse from other domains

– Embryos research, satellite imagery

Future Work

Page 24: Motion Denoising with Application to Time-lapse Photographypeople.csail.mit.edu/mrub/timelapse/timelapse-presentation.pdf · •User-controlled motion scales – Not necessarily binary

http://csail.mit.edu/mrub/timelapse

Thank you!