600 likes | 644 Views
Segmentation of Building Facades using Procedural Shape Prior. Olivier Teboul , Loïc Simon, Panagiotis Koutsourakis and Nikos Paragios. Problem. Rectified Facade image. Problem. Rectified Facade image. Problem. Rectified Facade image Segmentation into K classes. Problem.
E N D
Segmentation of Building Facades using Procedural Shape Prior Olivier Teboul, Loïc Simon, PanagiotisKoutsourakisand Nikos Paragios
Problem Rectified Facade image
Problem Rectified Facade image
Problem Rectified Facade image Segmentation into K classes
Problem • Rectified Facade image • Segmentation into K classes • windows
Problem • Rectified Facade image • Segmentation into K classes • windows • walls
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops • Enforce architectural constraints
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops • Enforce architectural constraints • alignment
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops • Enforce architectural constraints • alignment • consistent topology
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops • Enforce architectural constraints • alignment • consistent topology • Allow flexibility among façade layouts
Problem • Rectified Facade image • Segmentation into K classes • windows • walls • balconies • doors • roofs • sky • shops • Enforce architectural constraints • alignment • consistent topology • Allow flexibility among façade layouts • # floors • # windows • geometry
Applications • Image-based Modeling • Texture Databases
State of the Art • Grammar-free methods Mean Shift, Level Set, MRF-based methods Do not guarantee architectural consistency ! • Grammar-based methods • Image Driven : • Müller et al. Siggraph 07 • Koutsourakis et al. ICCV 09 • Grammar Driven : • Ripperda et al. DAGM 06 So far, lack of tying shape grammar strength with strong image support
Contributions • Shape Grammar driven approach • Learning the visual appearance of semantics • Energy minimization framework combining supervised learning with procedural shape prior • Database of Parisian facades http://www.mas.ecp.fr/vision/Personnel/teboul/data.html
Split Grammars • Shape grammar [Stiny 72] • Dictionnary of shapes • Replacement rules • Split rules only, along a direction [Wonka & al. Siggraph 03] • The semantics of the rule LHS, and (RHSi) are part of the dictionary D. • The geometry of the rule is LHS RHS1 RHS2 RHS3 … w1 w2 w3
Shape Grammar For Façade Modeling • Start from an axiom (Image) • Sequentially apply replacement rules • The derivation tree keeps track of the building structure
Shape Grammar For Façade Modeling • Start from an axiom (Image) • Sequentially apply replacement rules • The Derivation tree keeps track of the building structure
Shape Grammar For Façade Modeling • Start from an axiom (Image) • Sequentially apply replacement rules • The Derivation tree keeps track of the building structure
Shape Grammar For Façade Modeling • Start from an axiom (Image) • Sequentially apply replacement rules • The Derivation tree keeps track of the building structure
Shape Grammar For Façade Modeling • Start from an axiom (Image) • Sequentially apply replacement rules • The Derivation tree keeps track of the building structure
Constraining the grammar : factorization • If rules are applied independently, the derivation may lead to inconsistent buildings, in terms of alignment and topology across floors • Idea : apply the same rules on the same semantics
Advantages of Factorization • Produces only realistic buildings • Reduces the dimension of the space of shapes Factorization is a natural way to fight the curse of dimensionality • Allows a uniform representation of facade segmentations (independently from the layout topology). A segmentation is described by a fixed sequence of rules: π = (r1, r2, …, rM)
Learning the vocabulary • Randomized Forest classifiers [Lepetit & Fua PAMI 06] • Code available at: www.mas.ecp.fr/vision/Personnel/teboul/source_code.html data annotations
Learning the vocabulary • The feature vectors are patches around the pixels data annotations
Learning the vocabulary Histogram
Learning the vocabulary Tests Histogram
Segmentation from Classification • Learning with 20 annotated images • Test on 10 other 10 annotated images input classification Ground truth Window probability Wall probability (red= 0 blue = 1)
Segmentation from Classification • Learning with 20 annotated images • Test on 10 other 10 annotated images
Segmentation energy • Single Pixel x
Segmentation energy • Single Pixel x
Segmentation energy • Single Pixel x • Single Region R R
Segmentation energy • Single Pixel x • Single Region R R
Segmentation energy • Single Pixel x • Single Region R R
Segmentation energy • Single Pixel x • Single Region R • Segmentation π
Segmentation energy • Single Pixel x • Single Region R • Segmentation π
Segmentation energy The energy ties the versatile grammar (π), with a strong (but noisy) image support from supervised learning.
Optimization • Start from an initial seed π0 = (r10, r20, …, rM0) π0
Optimization • Start from an initial seed π0 = (r10, r20, …, rM0) • Perform perturbations of the rulesπi = (r1i, r2i, …, rMi) π0
Optimization • Start from an initial seed π0 = (r10, r20, …, rM0) • Perform perturbations of the rulesπi = (r1i, r2i, …, rMi) π0