Você está na página 1de 43

A Fast Spatial Patch Blending Algorithm for Artefact Reduction in Pattern-based Image Inpainting1

Olivier Lezoray Maxime Daisy, David Tschumperle,


GREYC - UMR 6072 CNRS, ENSICAEN, University of Caen Image team

SIGGRAPH Asia
November 21, 2013
1

This project is funded by Action 3DS National Project.

Outline

Inpainting : Context and State of the Art Contribution : Fast Multiscale Patch Blending for Inpainting Results and Comparisons with the State of the Art

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

2 / 43

Outline

Inpainting : Context and State of the Art Contribution : Fast Multiscale Patch Blending for Inpainting Results and Comparisons with the State of the Art

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

3 / 43

Image Inpainting : Overview

Original
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 4 / 43

Image Inpainting : Overview

Masked image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 5 / 43

Image Inpainting : Overview

Inpainted image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 6 / 43

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, IEEE PAMI 2007 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, Caen - FRANCE) SIGGRAPH Asia 2013 7 / 43

Criminisi et al. 2003 : overview

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

8 / 43

Good texture reconstruction

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

9 / 43

Good texture reconstruction

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

10 / 43

Local geometric inconsistencies

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

11 / 43

Since Criminisi et al. 2003 inpainting algorithm

Content-aware Filling, Adobe 2010


Wexler et al. 2007 : Space-time completion of videos Barnes et al. 2009 : PatchMatch

some blurry textures Le Meur et al. 2011


local geometry aware : structure tensor analysis K-nearest neighbours averaging

blurry textures, geometric inconsistencies

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

12 / 43

Since Criminisi et al. 2003 inpainting algorithm

Content-aware lling

Le Meur et al. 2011

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

13 / 43

The question

How to keep better textures and geometry consistency ?

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

14 / 43

Outline

Inpainting : Context and State of the Art Contribution : Fast Multiscale Patch Blending for Inpainting Results and Comparisons with the State of the Art

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

15 / 43

Spatial patch blending - Extreme case

Masked image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 16 / 43

Spatial patch blending - Extreme case

Inpainted image Criminisi et al. 2003


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 17 / 43

Spatial patch blending - Extreme case

Diffusion PDE inpainting result 2006 Tschumperle


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 18 / 43

Spatial patch blending - Extreme case

Content-aware lling algorithm Adobe 2010


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 19 / 43

Spatial patch blending - Extreme case

Effect of our spatial patch blending Our Contribution


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 20 / 43

(p) : an artefact-aware blending amplitude

Break eld R (p)


M. Daisy (GREYC, Caen - FRANCE)

Blending amplitude eld (p)


SIGGRAPH Asia 2013 21 / 43

Spatial Patch Blending : principle

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

22 / 43

Mathematical expression

Usage of reconstruction points and patch locations,

saved during any patch-based inpainting process w (q , p) q (p q ) + w (q , p )


q p

J (p) =

q p

p : set of patches used for the reconstruction around p q (p q ) : pixel value at ((N /2, N /2)T + (p q )) in q (p ) : blending amplitude at p w (q , p ) gaussian weight of variance (p )2
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 23 / 43

Fast algorithm - Blend scales

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

24 / 43

Outline

Inpainting : Context and State of the Art Contribution : Fast Multiscale Patch Blending for Inpainting Results and Comparisons with the State of the Art

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

25 / 43

Processing Times

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

26 / 43

Result - Nature

Original Image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 27 / 43

Result - Nature

Content-aware Filling
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 28 / 43

Result - Nature

Criminisi + our spatial patch blending


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 29 / 43

Result - Fake Owl

Original Image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 30 / 43

Result - Fake Owl

Criminisi et al. 2003


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 31 / 43

Result - Fake Owl

Content-aware Filling
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 32 / 43

Result - Fake Owl

Criminisi et al. 2003 + our spatial patch blending


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 33 / 43

Result - Fake Owl

Criminisi et al. 2003


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 34 / 43

Result - Savanna

Original Image
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 35 / 43

Result - Savanna

Criminisi et al. 2003


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 36 / 43

Result - Savanna

Content-aware Filling
M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 37 / 43

Result - Savanna

Criminisi et al. 2003 + our spatial patch blending


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 38 / 43

GIMP Software Integration : GMIC plugin

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

39 / 43

GIMP Software Integration : GMIC plugin

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

40 / 43

GIMP Software Integration : GMIC plugin

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

41 / 43

GIMP Software Integration : GMIC plugin

M. Daisy (GREYC, Caen - FRANCE)

SIGGRAPH Asia 2013

42 / 43

GIMP Software Integration : GMIC plugin

maxime.daisy@ensicaen.fr http ://gmic.sourceforge.net/gimp.shtml https ://daisy.users.greyc.fr/daisy-etal-siggraph-asia-2013


M. Daisy (GREYC, Caen - FRANCE) SIGGRAPH Asia 2013 43 / 43

Você também pode gostar