binary shading using geometry and appearance bert buchholz tamy boubekeur doug decarlo marc alexa...

37
Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin Computer Graphics Forum Vol. 29, N. 6, 2010 Presented at Eurographics 2011

Upload: nicole-townsley

Post on 14-Dec-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Binary Shading using Geometry and Appearance

Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa

Telecom ParisTech – CNRS Rutgers University TU Berlin

Computer Graphics Forum Vol. 29, N. 6, 2010Presented at Eurographics 2011

Page 2: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Binary Drawing

Depicting scenes using 2 colors

Page 3: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Conversion

Binary Rendering

3 D S c e n e

Lighting Reflectance

Geometry

Camera

Page 4: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Related Work

Line Drawing [DeCarlo 2003][Judd 2007]

Image Binarization [Mould and Kaplan 2008]

Local shading operators [Vergne 2008]

Half-Toning [Floyd and Steinberg 1976][Ostromoukhov and Hersch 1995]

Page 5: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Analysis

Variational Rendering Model

Per-pixel decision

Contradictory criteria

Geometry enhancement

Low shading depiction power

Page 6: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

VARIATIONAL BINARY RENDERING

Page 7: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Variational Binary Shading

• Deferred shading framework• Rendering data structured as a ST image graph• Edges energies derived from geometry and appearance• Final rendering as a min cut in the image graph

Page 8: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Deferred Shading

Generate a set of arrays (render buffers)– Geometric Properties– Appearance Properties nm

iA 1,0

nmiG

1,0

Rasterization

Ray Tracing

Page 9: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Graph construction

Standard Source-to-Sink Image Graph {V,E}

TiSi

pi eeeE

TSpV i

ImagePixels

Source(white)

Sink(black)

ImageConnectivity

Edges to Source

Edges toSInk

Page 10: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Appearance Contribution to the Graph

• Through terminal weights on • Appearance initiate B/W

segmentation• Experiments using :– Diffuse component– Specular component– Headlight component– Ambient Occlusion/Accessibility

component

TiSi ee

yxWi ,

yxBi ,TerminalWeights

Page 11: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Appearance Graph Terms

Global to local feature control using spatial averages

2

22)(

,

,, ih

vyux

vuii evuAyxA

Support

sizeLocal term: yxAyxAyxA iii ,,,'

Sign:locally lighter or darker

Weighted combination to the global measure.

yxAgyxAgyxB

yxAgyxAgyxW

iiiii

iiiii

,',0max1,1,

,',0max1,,

Page 12: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Global versus Local Thresholding

Global Local

Page 13: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Geometry Contribution to the Graph

• Modelled with neighbor edge weights• Tailors anisotropic, non-local B/W diffusion• Redistributes B/W values to enhance

geometric features• Based on:– View depth values – View dependent curvature, estimated as screen

space normal derivatives [Judd 2007]

pie 1100 ,,, yxyxN

yxz ,

11001100 ,,,,,, 2 yxnyxndyxyxS

Geodesic distance on the Gauss sphereUnit surface normal gathered at 00 , yx

Page 14: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Geometric Term

Local curvature normalization:

2

22

,1100 ,,,,,, c

vyux

vu

evuyxyxyx

Support

size

Yields neighbor edge weights:

2

211001100 ,,,,,,

11001 ,,, k

yxyxyxyx

eyxyxN

Page 15: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Geometry Contribution Modulation

Page 16: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Geometry Contribution Modulation

Small components are successively connected

Page 17: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Graph Minimum Cut

• Max Flow Min Cut Theorem– Shortest split path in the graph→Feature size control through

graph energy• Separate the graph in two components• Boykov and Kolmogorov

implementation [2004]

Page 18: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Cut performance

• Rendering buffers can be speed up using rasterization• Measured on a Core2Duo 1.83GHz (single thread)

Page 19: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

RESULTS

Page 20: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Binary Shading

• Global to local features• Appearance & geometry depiction• Large variety of style• Interactive control

Page 21: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Comparison to Line Drawing

Line Drawing Binary Shading

Page 22: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Combination with Line Drawing

Page 23: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Combination with Line Drawing

RGBN Picture Rendering [Toler-Franklin 2007]

Page 24: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Combination with Line Drawing

Page 25: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Comparison to Thresholding

Diffuse Component

Thresholding ThresholdingOver Gaussian Filtering

Binary Rendering

Page 26: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Comparison to Thresholding

Page 27: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Comparison to Image Binarization

(b,e) equivalent to [Mould and Kaplan 2008]

Page 28: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

INTERACTIVE CONTROLOn-going work

Page 29: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Interactive Control

• Solution 1: slider-based, for experts– Accurate control– « Too much » control for novice users

• Solution 2: painting interface

Page 30: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Paint Interface

• Supervised sparse B/W contraints• Derive the graph energy structure

Page 31: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Paint Interface

Page 32: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

LIMITATIONS AND FUTURE WORK

Page 33: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Animation

… most of straightforward solutions have some temporal coherency failure cases.

Works most of the time but…

Page 34: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

K-color Rendering

• Extend to multi-label cuts• Alternative energy minimizer– Lloyd relaxation/k-means– Mean Shift

• k-Component cut• Vector Rendering

Page 35: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

CONCLUSION

Page 36: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Binary Shading as a Single Cut

• Global solution• Local to global control• Appearance vs geometry control• High level control

• For automatic binary drawing from 3D Scenes, decals, cut-out, etc…

Page 37: Binary Shading using Geometry and Appearance Bert Buchholz Tamy Boubekeur Doug DeCarlo Marc Alexa Telecom ParisTech – CNRS Rutgers University TU Berlin

Thank you

Binary Shading Using Geometry and Appearance.Bert Buchholz, Tamy Boubekeur, Doug DeCarlo and Marc Alexa

Computer Graphics Forum Vol. 29, Nb. 6, 2010Presented at Eurographics 2011