A Fast Spatial Patch Blending Algorithm for Artefact Reduction in - - PowerPoint PPT Presentation
A Fast Spatial Patch Blending Algorithm for Artefact Reduction in - - PowerPoint PPT Presentation
A Fast Spatial Patch Blending Algorithm for Artefact Reduction in Pattern-based Image Inpainting Maxime Daisy, David Tschumperl e, Olivier L ezoray GREYC - UMR 6072 CNRS, ENSICAEN, University of Caen Image team SIGGRAPH Asia 21
Outlines
1 Inpainting : Context and State of the Art 2 Patch Blending for Inpainting 3 Results and Comparisons
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 2 / 41
Outlines
1 Inpainting : Context and State of the Art 2 Patch Blending for Inpainting 3 Results and Comparisons
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 3 / 41
Image Inpainting : Overview
Original
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 4 / 41
Image Inpainting : Overview
Masked image
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 5 / 41
Image Inpainting : Overview
Inpainted image
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 6 / 41
Image Inpainting : a little history
- Masnou and Morel : Level lines based disocclusion, ICIP 1998
- Efros and Leung : Texture synthesis by non-parametric
sampling, ICCV 1999
- Bertalm´
ıo et al. : Image Inpainting, SIGGRAPH 2000
- Criminisi et al. : Object Removal by Exemplar-based
Inpainting, CVPR 2003
- Wexler et al. : Space-time video completion, CVPR 2004
- Sun et al. : Image Inpainting by Patch Propagation Using
Patch Sparsity IEEE 2010
- Darabi et al. : Image Melding : Combining Inconsistent
Images using Patch-based Synthesis, SIGGRAPH 2012
- . . .
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 7 / 41
Criminisi et al. : overview
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 8 / 41
Good texture reconstruction
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 9 / 41
Good texture reconstruction
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 10 / 41
Local geometry inconsistencies
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 11 / 41
Since Criminisi et al. 2003 inpainting algorithm
Content Aware Filling 2010
- Wexler et al. 2007 : Space-time completion of videos
- Barnes et al. 2009 : PatchMatch
⇒ blurry textures Le Meur et al. 2011
- local geometry aware : structure tensors analysis
- K-nearest neighbours averaging
⇒ blurry textures, geometry inconsitencies
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 12 / 41
Since Criminisi et al. 2003 inpainting algorithm
(a) Content-aware filling (b) Le Meur et al. 2011
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 13 / 41
The question
How to keep both good textures and geometry consistency ?
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 14 / 41
Outlines
1 Inpainting : Context and State of the Art 2 Patch Blending for Inpainting 3 Results and Comparisons
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 15 / 41
Spatial patch blending - Extreme case
Masked image.
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 16 / 41
Spatial patch blending - Extreme case
Inpainted image : Criminis et al. 2003.
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 17 / 41
Spatial patch blending - Extreme case
Diffusion PDE inpainting result.
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 18 / 41
Spatial patch blending - Extreme case
Content-aware filling algorithm.
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 19 / 41
Spatial patch blending - Extreme case
Effect of spatial patch blending.
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 20 / 41
σ(p) : an adaptative blending amplitude
(c) Break field R(p) (d) Blending amplitude field σ(p)
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 21 / 41
Spatial Patch Blending : explanation
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 22 / 41
Mathematical expression
- Usage of reconstruction points and patch locations, saved
during inpainting process Ji(p) = ∑
ψq∈Ψp
w(q,p) ψi
q(p −q)
ε + ∑
ψq∈Ψp
w(q,p)
- Ψp : set of patches used for the reconstruction around p
- ψi
q(p −q) : pixel value at ((N/2,N/2)T +(p −q)) in ψi q
- σ(p) : blending amplitude at p
- w(q,p) gaussian weight of variance σ(p)2
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 23 / 41
Fast algorithm - Blend scales
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 24 / 41
Outlines
1 Inpainting : Context and State of the Art 2 Patch Blending for Inpainting 3 Results and Comparisons
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 25 / 41
Time Comparison
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 26 / 41
Result - Nature
Original Image
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 27 / 41
Result - Nature
Content-aware Filling
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 28 / 41
Result - Nature
Criminisi + our spatial patch blending
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 29 / 41
Result - Fake Owl
Original Image
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 30 / 41
Result - Fake Owl
Criminisi et al. 2004
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 31 / 41
Result - Fake Owl
Content-aware Filling
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 32 / 41
Result - Fake Owl
Criminisi + our spatial patch blending
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 33 / 41
Result - Savanna
Original Image
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 34 / 41
Result - Savanna
Criminisi et al. 2005
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 35 / 41
Result - Savanna
Content-aware Filling
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 36 / 41
Result - Savanna
Criminisi + our spatial patch blending
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 37 / 41
GIMP Software Integration : G’MIC plugin
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 38 / 41
GIMP Software Integration : G’MIC plugin
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 39 / 41
GIMP Software Integration : G’MIC plugin
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 40 / 41
GIMP Software Integration : G’MIC plugin
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 41 / 41
GIMP Software Integration : G’MIC plugin
- M. Daisy (GREYC)
SIGGRAPH Asia 2013 21 November 2013 42 / 41