Analysis by Synthesis - Statistical Shape Modelling

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Probabilistic Morphable Models
- An overview Marcel Lüthi
Graphics and Vision Research Group
Department of Mathematics and Computer Science
University of Basel
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Outline
Comparison
Analysis by synthesis
Update πœƒ
Parame
ters πœƒ
Synthesis πœ‘(πœƒ)
Medical image analysis verse computer vision
The space of images
GRAVIS 2016 | BASEL
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Probabilistic Morphable Models
Online Course
Summer school
Shape Modelling
Model fitting
Scalismo
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Conceptual Basis: Analysis by synthesis
Comparison
Parameters πœƒ
Update πœƒ
Synthesis πœ‘(πœƒ)
β€’ If we are able to synthesize an image, we can explain it.
β€’ We can explain unseen parts and reason about them
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Synthesizing images
Comparison
Parameters πœƒ
Update πœƒ
Synthesis πœ‘(πœƒ)
Computer graphics
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Synthesizing images
Comparison
Parameters πœƒ
Update πœƒ
Synthesis πœ‘(πœƒ)
β€’ Warping atlas images
β€’ Simulating DRRs
β€’ Virtual CTs
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Mathematical Framework: Bayesian inference
Comparison: 𝑝 Image πœƒ)
Prior 𝑝(πœƒ)
Parameters πœƒ
Update using 𝑝(πœƒ|Image)
Synthesis πœ‘(πœƒ)
β€’ Principled way of dealing with uncertainty.
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Algorithmic implementation: MCMC
Comparison: 𝑝 Image πœƒ)
Prior 𝑝(πœƒ)
Parameters πœƒ
Sample from 𝑝(πœƒ|Image)
Synthesis πœ‘(πœƒ)
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Course programme
Tuesday
Morning
Afternoon
β€’ Introduction
β€’ The course at a glance
β€’ Basics of Computer Graphics
β€’ Basic tasks in Scalismo-faces
β€’ Bayesian modelling
β€’ Welcome reception
Wednesday
β€’ Probabilistic model fitting
using MCMC
β€’ Exercises: MCMC Fitting
β€’ Introduction to course project
Thursday
β€’ Face image analysis
β€’ Course project
Friday
β€’ Connections to medical image β€’ Course project
analysis
β€’ Advanced topics in Gaussian
processes
Saturday
β€’ Project presentation
β€’ Social event
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
The course in context
Pattern Theory
Text
Music
Ulf Grenander
Computational
anatomy
Research at
Gravis
Medical Images
Fotos
Natural language
Speech
This course /
PMM
11
12
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Pattern theory vs PMM
β€’ Pattern theory is about developing a theory for understanding realworld signals
β€’ Probabilistic Morphable Models are about using theoretical well
founded concepts to analyse images.
β€’ GPs for modelling
β€’ MCMC for model fitting
β€’ Working software
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Images: Medical Image Analysis vs Computer Vision
Source: OneYoungWorld.com
18
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Images in medical image analysis
Goal: Measure and visualize the unseen
β€’ Acquired with specific purpose
β€’ Controlled measurement
β€’ Done by experts
β€’ Calibrated, specialized devices
Source: www.siemens.com
19
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Images in medical image analysis
(0,0,0)
β€’ Images live in a coordinate system (units: mm)
GRAVIS 2016 | BASEL
20
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Images in medical image analysis
280 π‘šπ‘š
300 π‘šπ‘š
(100,720, 800)
(0,0,0)
21
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Images in medical image analysis
Values measure properties of the
patient’s tissue
β€’ Usually scalar-valued
β€’ Often calibrated
β€’ CT Example:
-1000 HU -> Air
3000 HU -> cortical bone
GRAVIS 2016 | BASEL
24
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Images in computer vision
Goal: Capture what we see in a realistic
way
β€’ Perspective projection from 3D object
to 2D image
β€’ Many parts are occluded
GRAVIS 2016 | BASEL
25
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Images in computer vision
β€’ Can be done by anybody
β€’ Acquisition device usually unknown
β€’ Uncontrolled background, lighting, …
β€’ No clear scale
β€’ What is the camera distance?
β€’ No natural coordinate system
β€’ Unit usually pixel
Source: twitter.com
26
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Images in computer vision
β€’ Pixels represent RGB values
β€’ Values are measurement of light
β€’ Reproduce what the human eye would
see
β€’ Exact RGB value depends strongly on
lighting conditions
β€’ Shadows
β€’ Ambient vs diffuse light
GRAVIS 2016 | BASEL
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Images: Medical Image analysis vs Computer Vision
Medical image
β€’ Controlled measurement
Computer vision
β€’ Uncontrolled snapshot
β€’ Values have (often) clear
interpretation
β€’ Values are mixture of different
(unknown factors)
β€’ Explicit setup to visualize unseen
β€’ Many occlusion due to perspective
β€’ Coordinate system with clear scale
β€’ Scale unknown
Many complications of computer vision arise in different form also in a
medical setting.
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
The space of images
GRAVIS 2016 | BASEL
29
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
The space of images
GRAVIS 2016 | BASEL
30
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
The space of images
β€’ 10 x 10 image
β€’ 2 colours
How long would you need to watch TV (24 fps)
until you have seen all such images?
β€’ Number of images: 2100 β‰ˆ 1.2e30
β€’ Watching 100 years continuously
24 x 60 x 60 x 24 x 365 x 100 β‰ˆ7.5e10
Source: bbc.co.uk
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
The space of images
β€’ Most images are uninteresting
Think of interesting
images like this
β€’ Only very few of all possible
images are of interest to us
Not this
ℝ100
32
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
Structure in images
β€’ Images have a rich structure
Our mission:
β€’ Images are depictions of objects in the
world β€’ Model this structure
β€’ Needs only few parameters
β€’ Explain image by finding appropriate
parameters that reflect objects / laws /
processes
β€’ Structure is due to objects, laws and
processes
GRAVIS 2016 | BASEL
> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
GRAVIS 2016 | BASEL
Next stop: Computer graphics
Comparison: 𝑝 Image πœƒ)
Image
Parameters πœƒ
Sample from 𝑝(πœƒ|Image)
Synthesis πœ‘(πœƒ)
β€’ Computer graphics