sketch2photo: internet image montagepingtan/projects/sketch2photo/ppt.pdf · sketch2photo: internet...

32
Sketch2Photo: Internet Image Montage Tao Chen 1 Ming-Ming Cheng 1 Ping Tan 2 Ariel Shamir 3 Shi-Min Hu 1 1 TNList, Department of Computer Science and Technology, Tsinghua University 2 National University of Singapore 3 The Interdisciplinary Center

Upload: others

Post on 08-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Sketch2Photo: Internet Image MontageTao Chen1 Ming-Ming Cheng1 Ping Tan2

Ariel Shamir3 Shi-Min Hu1

1TNList, Department of Computer Science and Technology, Tsinghua University2National University of Singapore 3The Interdisciplinary Center

Page 2: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Motivation

Page 3: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Motivation

Page 4: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Motivation

Challenges?

Page 5: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

• Automatically find good image components

• Seamlessly compose these components

Challenges

Page 6: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

• Automatically find good image components– Extensive filtering of internet images

• Seamlessly compose these components– Hybrid compositing technique

Contributions

+ + + =

Page 7: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

System Overview

Page 8: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Involved Problems

• Image search• Image segmentation• Image composition

Difficult problems in general!• Key point:

Use simple images by filtering!

Page 9: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

User Interface

Page 10: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Image Filtering

Saliency Filtering– Identify salient region– Over-segment all images– Choose simple images (less segments in non-salient region)

Page 11: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Saliency Filtering– Identify salient region– Over-segment all images– Choose simple images (less segments in non-salient region)

Image Filtering

Page 12: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Image Filtering

Contour filtering– Image segmentation (by Grabcut [Rother et al 2004])– Check consistency between segmentation boundary and

user sketched contour (by shape-context [Belongie et al. 2002] )– Choose consistent images

Page 13: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Contour filtering– Image segmentation (by Grabcut [Rother et al 2004] & dilation)– Check consistency between segmentation boundary and

user sketched contour (by shape-context [Belongie et al. 2002] )– Choose consistent images

Image Filtering

Page 14: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Content filtering – Group segmented images in a feature space

– Choose images associated with large (>5%) clusters

Image Filtering

Page 15: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Filtering Performance

Sailboat Moto Red Car Wedding Seagull Sheep Kid Ski Salmon Bear DogRider Kiss Jump Catch

100%

50%

0%

: False Positive

: True Positive

In Top 100 Images

Statistics:

Saliency Filtering:

Contour Filtering:

Content Filtering:

Download Images:

Page 16: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Some observations:– Contour filtering is critical– Saliency filtering is helpful– Additional verbs are necessary

Man throw Dog jump Frisbee Sailboat Moto rider Seagull Dog

IS (%) 83 65 79 71 86 72 97

SF (%) 81 66 80 61 81 70 97

CF1 (%) 30 21 31 35 27 29 77

CF2 (%) 29 15 27 27 24 23 68

IS = internet search; SF = saliency filtering; CF1 = contour consistency filtering; CF2 = content consistency filtering

False positive rate at each stage of the filtering

Filtering Performance

Dog jump

65

--

47

37

Page 17: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Limitations of previous methods

Improved Image Composition

Inputs Drag & Drop PastingPhoto Clip ArtMatting

Page 18: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Super-pixel level boundary optimization– Evaluate image consistencies at super-pixels

– Find a most consistent chain of super-pixels

– Mark out inconsistent super-pixels (shown in red)

blending boundary optimization

Page 19: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Pixel level boundary optimization

blending boundary optimization

Page 20: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Pixel level boundary optimization– Boundary in red cells: matting boundary

– Boundary in green cells: optimized by Drag & Drop Paste [Jia et al. 2006]

blending boundary optimization

Page 21: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

• Poisson blending with mixed boundary condition

– Fix pixel value on purple boundary– Fix pixel gradient on yellow boundary

• Alpha blending

hybrid blending

Page 22: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

example

Source Image Target ImageSegments around blending boundary

Segments of background

Superpixel

Page 23: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

example

• Evaluate consistency for each superpixel:– Texture Similarity– Color Similarity– Matting Feasibility

• In consistent super-pixels are marked in red

• Optimize pixelwise blending boundary Superpixel

Page 24: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

example

• Evaluate consistency for each mutual superpixel:– Texture Similarity– Color Similarity– Matting Feasibility

• In consistent super-pixels are marked in red

• Optimize pixelwise blending boundary

• Final blending result

Page 25: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Image Combination OptimizationOptimize image combination

– Rank by the consistency score over the optimized boundary

Blending cost is 0.2, 0.4, 0.6 and 0.8 from left to right.

Page 26: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Interactive Refinement• Discard compositions with incorrect scene items

• Refine segmentation

Page 27: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

More Results

Page 28: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

More Results

Page 29: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

User Study (more in paper)User Study II: to evaluate the generalization

– Four novice subjects (one specifies composition tasks, the others generate results accordingly)

– Evaluated by 5 evaluators, 78% success rate

Page 30: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

• Image filtering is still limited– Background filtering works better for landscapes

– Each scene item often has 30% false positive

• Other possible artifacts:– Incorrect perspective

– Incorrect occlusion

– Incorrect scales

Limitations

Page 31: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

A method to convert a sketch to a photo-realistic picture

– A novel filtering scheme leads to small false positive

– A novel blending algorithm tolerates large image differences

Conclusion

Page 32: Sketch2Photo: Internet Image Montagepingtan/Projects/Sketch2Photo/PPT.pdf · Sketch2Photo: Internet Image Montage Tao Chen 1Ming-Ming Cheng Ping Tan2 Ariel Shamir3 Shi-Min Hu1 1TNList,

Thank you!