Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
24/01/2014
1
Shape-from-Template
Adrien BartoliALCoV-ISIT, Clermont-Ferrand
Florent Brunet, Toby Collins, Vincent Gay-Bellile, Mathieu Perriollat, Daniel Pizarro, Richard Hartley
Computer Vision Mini Workshop
Toulouse, January 24, 2014
3D Reconstruction: to Recover Shape from Images
Active methods Passive methods
Image from [Crandall et al, CVPRโ11]Using Shape-from-Motion
Image by Visnjic, 2010Using Kinect
Escaping Criticism by del Caso, 1874
Model Town by Matt West, 2006
Blur ShadingMotion OcclusionsStereoscopy Texture
[Gibson ~ 1960 ; Marr ~ 1970]
Passive Single-View Reconstruction: Visual Cues
Blur ShadingMotion OcclusionsStereoscopy
Unapplicableto single-view
Very weak hereUnapplicableto single-view
Weak in general
Very weak here Very weak here
Texture
+ database
[Hoeim et al, SIGGRAPHโ05]
Passive Single-View Reconstruction: Shape Priors
Low dimensional shape space
3D Morphable Face Model[Blanz and Vetter, PAMIโ03]
High dimensional shape spaceโฆ
โฆ but simple deformation model!
Ob
ject
leve
l
High dimensional shape space
Scen
ele
vel
Faces Newspapers
Detection Recognition
Shape-from-Template
ShapeImage
Shape-from-Template
MaterialShapeAppearance
Template
Scope: object-specific passive single-view reconstruction using simple physics-based deformation from a known reference shape and a matchable appearance
[Gumerov et al, ECCVโ04 ; Salzmann et al, BMVCโ05 ; Perriollat et al, BMVCโ08]
Detection
Shape-from-Template
Template not found
Template not found
Shape-from-Template
Shape-from-Template
Shape-from-Template
Shape-from-Template
Shape-from-Template
Template not found
ShapeAppearance
Template
Material
24/01/2014
2
Shape-from-Template
Template not found
Template not found
Template not found
Shape-from-Template
ShapeAppearance
Template
Material
Template not found
Augmented Reality for Deformable Surfaces
Differential Geometric Setup
3D
2D
๐ข๐ฃ-map - ฮฉ โ โ2 Image
Shape
Cameraprojection ฮ
๐ โ ๐ถ2 ฮฉ,โ3
ฮ โ ๐ถโ โ3, โ2
ShapeAppearance
Template
Material
โ ฮ โ ๐=โ
โ ๐ =
Image warp ๐
๐
Two-Step Approach
3D
2D
๐ข๐ฃ-map - ฮฉ โ โ2 Image
Image warp ๐
Cameraprojection ฮ
Shape
1 โ Image registration
2 โ Shape inference
Differential Problem Statement
ShapeAppearance
Template
Material
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2Find s.t.
๐ =
โ ฮ โ ๐=
Shape-from-Template
Problem Relaxation
ShapeAppearance
Template
Material
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2Find s.t.
๐ =
โ ฮ โ ๐=
Shape-from-Template
๐ผ โ ? ?๐ผ
๐๐2๐ฟ2 ๐ โ min
24/01/2014
3
Image Registration
ShapeAppearance
Template
Material
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2Find s.t.
๐ =
โ ฮ โ ๐=
Shape-from-Template
๐ผ โ ? ?๐ผ
๐๐2๐ฟ2 ๐ โ min
Find s.t. = โ ๐Warp ๐ โ ๐ถ2 ฮฉ,โ2
1 โ Image registration
Factoring the Warp into Embedding and Projection
ShapeAppearance
Template
Material
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2Find s.t.
๐ =
โ ฮ โ ๐=
Shape-from-Template ๐ผ = ๐ท โ ๐
Shape Inference
ShapeAppearance
Template
Material
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2Find s.t.
๐ =
โ ฮ โ ๐=
Shape-from-Template ๐ผ = ๐ท โ ๐
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
Shape-from-Template
Two-Step Approach
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
Template
Find s.t. = โ ๐Warp ๐ โ ๐ถ2 ฮฉ,โ2
1 โ Image registration
Appearance Shape Material
Step 1: Image Registration, in a Nutshell
Find s.t. = โ ๐Warp ๐ โ ๐ถ2 ฮฉ,โ2
1 โ Image registration
Putative keypoint matches [Lowe, IJCVโ04]
Densification[Bookstein, PAMIโ89]
Template not found
Local consistency [Pizarro et al, IJCVโ12]
1
2
[Schmid et al, PAMIโ97]
Step 1: Image Registration, in a Nutshell
Local consistency [Pizarro et al, IJCVโ12]
Partial self-occlusion detection[Pizarro et al, IJCVโ12]
Densification [Bookstein, PAMIโ89]
Self-occlusion aware densification[Pizarro et al, IJCVโ12]
Color-based refinement[Gay-Bellile et al, PAMIโ10]
2
3
4
5
6
24/01/2014
4
Step 1: Image Registration, Results Step 1: Image Registration, Results
Shape-from-Template
Two-Step Approach
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
Template
Find s.t. = โ ๐Warp ๐ โ ๐ถ2 ฮฉ,โ2
1 โ Image registration
Appearance Shape Material
Step 2: Shape Inference
3D
2D
๐ข๐ฃ-map - ฮฉ โ โ2 Image
Cameraprojection ฮ
Image warp ๐
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
Calibratedpinhole
Zeroth Order Methods
3D
2D
๐ข๐ฃ-map - ฮฉ โ โ2 Image
Cameraprojection ฮ
Image warp ๐
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
๐ป๐โค๐ป๐ = I
Main result: shape-wise solution of a convex relaxation[Perriollat et al, IJCVโ11; Salzmann et al, PAMIโ11; Brunet et al, ACCVโ10; รstlund et al, ECCVโ12]
Zeroth orderreprojection
[Perriollat et al, IJCVโ11; Salzmann et al, PAMIโ11]
First Order Methods
3D
2D
๐ข๐ฃ-map - ฮฉ โ โ2 Image
Cameraprojection ฮ
Image warp ๐
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
๐ป๐โค๐ป๐ = I
Zeroth orderreprojection
๐ป๐ = ๐ปฮ โ ๐ ๐ป๐
First orderreprojection
[Bartoli et al, CVPRโ12]
24/01/2014
5
First Order Methods
Find s.t.
2 โ Shape inference
Embedding ๐ โ ๐ถ2 ฮฉ,โ3
Projection ฮ โ ๐ถโ โ3, โ2๐ =
๐ = ฮ โ ๐
๐ป๐โค๐ป๐ = I
Zeroth orderreprojection
๐ป๐ = ๐ปฮ โ ๐ ๐ป๐
First orderreprojection
๐ 22๐ป๐พโค๐ป๐พ + ๐พ2๐ป๐โค๐ป๐ + ๐พ ๐ป๐พโค๐โค๐ป๐ + ๐ป๐โค๐๐ป๐พ = I
Let ๐พ โ ๐ถ1 ฮฉ, โ be the depth function
Shape inference is this first-order quadratic PDE in ๐ธ
Main result: exact point-wise solution
[Bartoli et al, CVPRโ12]
Intuition: neglect the dependency between ๐พ and ๐ป๐พ
First Order Methods
๐ 22๐ป๐พโค๐ป๐พ + ๐พ2๐ป๐โค๐ป๐ + ๐พ ๐ป๐พโค๐โค๐ป๐ + ๐ป๐โค๐๐ป๐พ = I
Isometric developable
Conformal
๐ 22๐ป๐พโค๐ป๐พ + ๐พ2๐ป๐โค๐ป๐ + ๐พ ๐ป๐พโค๐โค๐ป๐ + ๐ป๐โค๐๐ป๐พ = ๐๐ปฮโค๐ปฮ
๐ 22๐ป๐พโค๐ป๐พ + ๐พ2๐ป๐โค๐ป๐ + ๐พ ๐ป๐พโค๐โค๐ป๐ + ๐ป๐โค๐๐ป๐พ = ๐ปฮโค๐ปฮ
Isometric non-developable object
Isometric (infinitesimal) weak-perspective
๐ป๐พ 22 + ๐พ2 ๐ป๐๐ป๐โค + ๐ผ2๐ป๐พโค๐ป๐พ = ๐๐ปฮโค๐ปฮ
Isometric, unknown focal length
๐2 ๐ป๐พ 22 + ๐พ2 ๐ป๐๐ป๐โค + ๐ผ2๐ป๐พโค๐ป๐พ = ๐๐ปฮโค๐ปฮ
โtrueโ ๐ = 2040 pixels
3.8% relative error
Estimated ๐ = 2118 pixels
๐ = 5870 pixels
Non-flattenable Objects
3D
2D
Image warp ๐
Cameraprojection ฮ
Deformation ฮจ
Conformal flattening ฮโ1
๐ข๐ฃ-map - ฮฉ โ โ2 Image
ฮ โ ๐ถ2 ฮฉ,โ3
ฮจ = ๐ โ ฮโ1
Step 2: Shape Inference, Results
Ground-truth(Rigid Shape-from-Motion)
Shape-from-Template
Step 2: Shape Inference, Results Step 2: Shape Inference, Results
24/01/2014
6
Some Extensions
ShapeAppearance
Template 1
Material ShapeAppearance
Template 2
Material
Multiobject shape-from-template [Alcantarilla et al, BMVCโ12]
etc.
Linear elastic deformations [Malti et al, CVPRโ13]
template image shape
Isowarp and Conwarp [Pizarro et al, BMVCโ13]
Differential constraints on ๐ so that ๐ = ฮ โ ๐
Main Surface Types
Physical flattening Virtual flattening
Iso
met
ric
def
orm
atio
nEl
asti
cd
efo
rmat
ion
Gynecologic Surgery
Proceduresโข Benign conditionsโข Cancerโข Infertilityโข Incontinence
Organs of the female reproductive system
Located in the pelvic cavity
Scope
Abdominal (open, laparotomy)
Hysteroscopic(through vagina)
Laparoscopic(small incisions)
Types
Preoperative Imaging
MRI US
โข Diagnosisโข Procedureโข Type of surgery
Uterine Fibroids or Myomas
โข Microscopic to extremely large sizeโข Often several of them
Benign tumors from the myometrium
May be invisible in laparoscopy(and hysteroscopy)
Intramural myomas (type b)
Clearly visible in MRI
Laparoscopic Augmented Reality
3 Displaying
Augmenting
Augmentation data
2
Registration
1 Filming
24/01/2014
7
Registration is Challenging
Blur Occlusions
Bleeding Smoke
Augmentation data
Preoperative MRI Preparation
Axial Sagittal Coronal
Uterus surface First fibroid Second fibroid
Augmented Reality Framework
1 Registration
2 Augmentation
Current frame
Current frame
Registration ฮฆ๐ :โ3 โ โ2
Requirements:R1 โ deformable R2 โ multimodalR3 โ realtime R4 โ automatic
Two-Step Registration
Registration ฮฆ๐ :โ3 โ โ2
1 Registration
Current frame
Reference frame
1b
Reference shape1a
Requirements: (R1), R3, R4
Requirements:R1 โ deformable R2 โ multimodalR3 โ realtime R4 โ automatic
Relax requirements with ฮฆ๐ = ฮ๐ โ ฮ0
Preoperative to intraoperative reference
Intraoperativereference to current frame
WBMTR (Wide-Baseline Multi-Texturemap Registration)[Collins et al, MIAR@MICCAIโ13]
Registration ฮฆ๐ :โ3 โ โ2
1 Registration
Reference frame
Requirements:R1 โ deformable R2 โ multimodalR3 โ realtime R4 โ automatic
Relax requirements with ฮฆ๐ = ฮ๐ โ ฮ0
Current frame
Shape-from-Motion
Pose with keypoints from best reference frame
Reference frames
Reference shape
WBMTR Registration Results
24/01/2014
8
WBMTR Registration Results Generalizing Rigid Pose to Deformations
Registration ฮฆ๐ :โ3 โ โ2
1 Registration
Current frame
Reference shape
Requirements:R1 โ deformable R2 โ multimodalR3 โ realtime R4 โ automatic
Relax requirements with ฮฆ๐ = ฮ๐ โ ฮ0
ฮจ๐ :โ3 โ โ3
ฮ :โ3 โ โ2
Deformation
Projection
Shape-from-TemplateTo recover ฮจ๐ (and ฮ )
Uterine Shape-from-Template Results
First order, isometricZeroth order, isometric
[Salzmann et al, PAMIโ09]First order, conformal
Shape-from-Template
Adrien BartoliALCoV-ISIT, Clermont-Ferrand
Florent Brunet, Toby Collins, Vincent Gay-Bellile, Mathieu Perriollat, Daniel Pizarro, Richard Hartley
Computer Vision Mini Workshop
Toulouse, January 24, 2014