Non-rigid Registration Marcel Lthi Graphics and Vision Research - - PowerPoint PPT Presentation

โ–ถ
non rigid registration
SMART_READER_LITE
LIVE PREVIEW

Non-rigid Registration Marcel Lthi Graphics and Vision Research - - PowerPoint PPT Presentation

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL Non-rigid Registration Marcel Lthi Graphics and Vision Research Group Department of Mathematics and Computer Science University of Basel > DEPARTMENT OF MATHEMATICS


slide-1
SLIDE 1

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Non-rigid Registration

Marcel Lรผthi

Graphics and Vision Research Group Department of Mathematics and Computer Science University of Basel

slide-2
SLIDE 2

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Outline

  • Non-rigid registration: The basic formulation
  • Exercise: Parametric registration in Scalismo
  • Advanced Priors
  • Likelihood functions
  • Exercise: ASMs in Scalismo
  • Optimization
slide-3
SLIDE 3

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

ฮฉ

The registration problem

3

Reference: ๐ฝ๐‘†: ฮฉ โ†’ โ„ Target: ๐ฝ๐‘ˆ: ฮฉ โ†’ โ„ ๐œ’: ฮฉ โ†’ ฮฉ

๐‘ฆ

๐œ’(๐‘ฆ) ฮฉ

slide-4
SLIDE 4

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Why is it important?

  • Do automatic measurements
  • Compare shapes
  • Statistics
  • Build statistical models
  • Transfer labels and annotations
  • Atlas based segmentation

ฮฉ ๐œ’: ฮฉ โ†’ ฮฉ ฮฉ

Maybe the most important problem in computer vision and medical image analysis

slide-5
SLIDE 5

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Registration as analysis by synthesis

Parameters ๐œ„

Comparison: ๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘†) Update using ๐‘ž(๐œ„|๐ฝ๐‘ˆ, ๐ฝ๐‘†) Synthesis ๐œ’[๐œ„]

Prior ๐œ’[๐œ„] โˆผ ๐‘ž(๐œ„) ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-6
SLIDE 6

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

The registration problem

Mapping ๐œ’[๐œ„โˆ—] is trade-off that

  • how well does the mapping explain the target image

(likelihood function)

  • matches the prior assumptions (prior distribution)

Probabilistic formulation ๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ„ ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ„

๐‘ž ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐œ„, ๐ฝ๐‘†)

slide-7
SLIDE 7

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

ฮฉ

The registration problem

ฮฉ

๐œ’[๐œ„]

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ„ ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ„

๐‘ž ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐œ„, ๐ฝ๐‘†)

slide-8
SLIDE 8

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

ฮฉ

The registration problem

ฮฉ ๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ„ ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ„

๐‘ž ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐œ„, ๐ฝ๐‘†)

๐œ’[๐œ„]

slide-9
SLIDE 9

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

ฮฉ

The registration problem

ฮฉ

๐œ’[๐œ„]

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ„ ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ„

๐‘ž ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐œ„, ๐ฝ๐‘†)

slide-10
SLIDE 10

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

The registration problem

Main questions:

  • How do we represent the mapping?
  • How do we define the prior?
  • What is the likelihood function?
  • How can we solve the optimization problem?

Probabilistic formulation ๐œ’โˆ— = arg max

๐œ’

๐‘ž ๐œ’ ๐ฝ๐‘ˆ, ๐ฝ๐‘† = arg max

๐œ’

๐‘ž ๐œ’ ๐‘ž(๐ฝ๐‘ˆ|๐œ’, ๐ฝ๐‘†)

slide-11
SLIDE 11

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Representation of the mapping ๐œ’

slide-12
SLIDE 12

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Representation of the mapping ๐œ’

slide-13
SLIDE 13

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Representation of the mapping ๐œ’

Assumption: Images are rigidly aligned

  • Mapping can be represented as a

displacement vector field: ๐œ’ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ ๐‘ฆ ๐‘ฃ โˆถ ฮฉ โ†’ โ„๐‘’

๐‘ฆ u(๐‘ฆ)

slide-14
SLIDE 14

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Representation of the mapping ๐œ’

Assumption: Images are rigidly aligned

  • Mapping can be represented as a

displacement vector field: ๐œ’ ๐‘ฆ = ๐‘ฆ + ๐‘ฃ ๐‘ฆ ๐‘ฃ โˆถ ฮฉ โ†’ โ„๐‘’ Observation: Knowledge of ๐‘ฃ and ๐ฝ๐‘† allows us to synthesize target image ๐ฝ๐‘ˆ

slide-15
SLIDE 15

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Registration as analysis by synthesis

Parameters ๐œ„

Comparison: ๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘†) Update using ๐‘ž(๐œ„|๐ฝ๐‘ˆ, ๐ฝ๐‘†) Synthesis ๐œ’[๐œ„]

Prior ๐œ’[๐œ„] โˆผ ๐‘ž(๐œ„) ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-16
SLIDE 16

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Priors

Define the Gaussian process ๐‘ฃ โˆผ ๐ป๐‘„ ๐œˆ, ๐‘™ with mean function ๐œˆ: ฮฉ โ†’ โ„2 and covariance function ๐‘™: ฮฉ ร— ฮฉ โ†’ โ„2ร—2 .

slide-17
SLIDE 17

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Zero mean: ๐œˆ ๐‘ฆ = 0 Squared exponential covariance function (Gaussian kernel) ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = s1exp โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ1

2

s2exp โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ2

2

Example prior: Smooth 2D deformations

slide-18
SLIDE 18

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

๐‘ก1 = ๐‘ก2 small, ๐œ1 = ๐œ2 large

Example prior: Smooth 2D deformations

slide-19
SLIDE 19

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

๐‘ก1 = ๐‘ก2 small, ๐œ1 = ๐œ2 small

Example prior: Smooth 2D deformations

slide-20
SLIDE 20

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

๐‘ก1 = ๐‘ก2 large, ๐œ1 = ๐œ2 large

Example prior: Smooth 2D deformations

slide-21
SLIDE 21

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

  • We have a finite, parametric representation of the process.
  • We know the pdf for a deformation ๐‘ฃ

๐‘ž ๐‘ฃ[๐›ฝ] = ๐‘ž ๐›ฝ = เท‘

๐‘—=1 ๐‘ 

1 2๐œŒ exp(โˆ’๐›ฝ๐‘—

2/2) = 1

๐‘Ž exp(โˆ’ 1 2 ๐›ฝ 2) Represent ๐ป๐‘„(๐œˆ, ๐‘™) using only the first ๐‘  components of its KL-Expansion ๐‘ฃ = ๐œˆ + เท

๐‘—=1 ๐‘ 

๐›ฝ๐‘— ๐œ‡๐‘— ๐œš๐‘—, ๐›ฝ๐‘— โˆผ ๐‘‚(0, 1)

Parametric representation of Gaussian process

slide-22
SLIDE 22

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Registration as analysis by synthesis

Parameters ๐œ„

Comparison: ๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘†) Update using ๐‘ž(๐œ„|๐ฝ๐‘ˆ, ๐ฝ๐‘†) Synthesis ๐œ’[๐œ„]

Prior ๐œ’[๐œ„] โˆผ ๐‘ž(๐œ„) ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-23
SLIDE 23

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Likelihood function: Image registration

Assumptions:

  • Corresponding points have the same image intensity (up to i.i.d. noise)

๐‘ฆ ๐œ’[๐œ„](๐‘ฆ) ๐ฝ๐‘† ๐ฝ๐‘ˆ ๐‘ž ๐ฝ๐‘ˆ(๐œ’[๐œ„](๐‘ฆ)) ๐ฝ๐‘†, ๐œ„, ๐‘ฆ โˆผ ๐‘‚ ๐ฝ๐‘† ๐‘ฆ , ๐œ2 Images are similar when the intensities match

slide-24
SLIDE 24

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Likelihood function: Image registration

๐‘ฆ ๐œ’[๐œ„](๐‘ฆ) ๐ฝ๐‘† ๐ฝ๐‘ˆ ๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘†, ๐œ„ = เท‘

๐‘ฆโˆˆฮฉ

๐‘ž ๐ฝ๐‘ˆ(๐œ’[๐œ„](๐‘ฆ)) ๐ฝ๐‘†, ๐œ„, ๐‘ฆ = เท‘

๐‘ฆโˆˆฮฉ

1 ๐‘Ž exp โˆ’ (๐ฝ๐‘ˆ ๐œ’ ๐‘ฆ โˆ’ ๐ฝ๐‘† ๐‘ฆ ) 2 ๐œ2 Images are similar when the intensities match Assumptions:

  • Corresponding points have the same image intensity (up to i.i.d. noise)

Image term outside mapping function. Makes problem really difficult

slide-25
SLIDE 25

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Registration as analysis by synthesis

Parameters ๐œ„

Comparison: ๐‘ž ๐ฝ๐‘ˆ ๐œ„, ๐ฝ๐‘†) Update using ๐‘ž(๐œ„|๐ฝ๐‘ˆ, ๐ฝ๐‘†) Synthesis ๐œ’[๐œ„]

Prior ๐œ’[๐œ„] โˆผ ๐‘ž(๐œ„) ๐ฝ๐‘ˆ ๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„]

slide-26
SLIDE 26

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Registration problem

๐›ฝโˆ— = ๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐œ’[๐œ„], ๐ฝ๐‘†) = arg max

๐œ„

1 ๐‘Ž1 exp โˆ’ 1 2 ๐œ„ 2 1 ๐‘Ž2 เท‘

๐‘ฆ

exp โˆ’ ๐ฝ๐‘ˆ ๐œ’ ๐œ„ ๐‘ฆ โˆ’ ๐ฝ๐‘†(๐‘ฆ))

2

๐œ2

  • Parametric problem, since:

๐œ’[๐œ„](๐‘ฆ) = ๐‘ฆ + ๐œˆ(๐‘ฆ) + เท

๐‘—=1 ๐‘ 

๐œ„๐‘— ๐œ‡๐‘— ๐œš๐‘—(๐‘ฆ)

  • Can be optimized using gradient descent
slide-27
SLIDE 27

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Variational formulation

๐›ฝโˆ— = arg max

๐œ„

1 ๐‘Ž1 exp โˆ’ 1 2 ๐œ„ 2 1 ๐‘Ž2 เท‘

๐‘ฆ

exp โˆ’ ๐ฝ๐‘ˆ ๐œ’ ๐œ„ ๐‘ฆ โˆ’ ๐ฝ๐‘†(๐‘ฆ))

2

๐œ2 arg max

๐œ„

ln 1 ๐‘Ž1 exp โˆ’ 1 2 ๐œ„ 2 + ln 1 ๐‘Ž2 เท‘

๐‘ฆ

exp โˆ’ ๐ฝ๐‘ˆ ๐œ’ ๐œ„ ๐‘ฆ โˆ’ ๐ฝ๐‘†(๐‘ฆ))

2

๐œ2 = arg max

๐œ„

ln 1 ๐‘Ž1 โˆ’ 1 2 ๐œ„ 2 + ln 1 ๐‘Ž2 โˆ’ เท

๐‘ฆโˆˆฮฉ

๐ฝ๐‘ˆ ๐œ’ ๐œ„ ๐‘ฆ โˆ’ ๐ฝ๐‘†(๐‘ฆ))

2

๐œ2 = arg min

๐œ„

เท

๐‘ฆโˆˆฮฉ

๐ฝ๐‘ˆ ๐œ’ ๐œ„ ๐‘ฆ โˆ’ ๐ฝ๐‘†(๐‘ฆ))

2

๐œ2 + ๐œ‡ 2 ๐œ„ 2

Image metric Regularizer

slide-28
SLIDE 28

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

The registration problem

Probabilistic formulation ๐œ„โˆ— = arg min

๐œ„ โˆ’ ln ๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘†, ๐œ’ ๐œ„

โˆ’ ln ๐‘ž ๐œ’ ๐œ„ Variational formulation ๐œ„โˆ— = arg min

๐œ„ ๐ธ ๐ฝ๐‘ˆ, ๐ฝ๐‘†, ๐œ’[๐œ„] + ๐œ‡๐‘†[๐œ’ ๐œ„ ]

slide-29
SLIDE 29

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Exercise: Registration in Scalismo

Type into the codepane: goto(โ€œhttp://shapemodelling.cs.unibas.ch/exercises/Exercise14.htmlโ€) Scalismo 0.16: Check examples in https://github.com/unibas-gravis/pmm2018

slide-30
SLIDE 30

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

A selection of Gaussian process priors

slide-31
SLIDE 31

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Why are priors interesting?

๐œ„

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘†, ๐œ’[๐œ„])

slide-32
SLIDE 32

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Why are priors interesting?

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘†, ๐œ’[๐œ„])

๐œ„

slide-33
SLIDE 33

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Models of smooth deformations

  • Typical assumption:
  • Deformation field is smooth
  • GP approach
  • Choose smooth kernel functions

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘ก exp(โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ2 )

  • Regularization operators
  • Penalize large derivatives

โ„› ๐‘ฃ = ๐‘†๐‘ฃ 2 = เท

๐‘—=0 ๐‘œ

๐›ฝ๐‘— ๐ธ๐‘—๐‘ฃ 2

slide-34
SLIDE 34

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Connection between regularizer and kernel

Discrete setting: Finite difference operators Regularizer: โ„› เทœ ๐‘ฃ = เทก ๐ธเทœ ๐‘ฃ

2

เทก ๐ธเทœ ๐‘ฃ = โˆ’2 1 1 โˆ’2 1 1 โˆ’2 1 1 โˆ’2 1 1 โˆ’2 1 โ‹ฑ ๐‘ฃ(๐‘ฆ1) ๐‘ฃ(๐‘ฆ2) ๐‘ฃ(๐‘ฆ3) ๐‘ฃ(๐‘ฆ4) ๐‘ฃ(๐‘ฆ5) โ‹ฎ

Steinke, Florian, and Bernhard Schรถlkopf. "Kernels, regularization and differential equations." Pattern Recognition 41.11 (2008): 3271-3286. ๐‘ฃ(๐‘ฆ1) ๐‘ฃ(๐‘ฆ๐‘—) ๐‘ฆ1 ๐‘ฆ๐‘—

slide-35
SLIDE 35

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Connection between regularizer and kernel

p เทœ u = exp(โˆ’ 1 2 โ„› เทœ ๐‘ฃ ) = exp(โˆ’ 1 2 เทก ๐ธเทœ ๐‘ฃ

2)

= exp(โˆ’ 1 2 เทก ๐ธเทœ ๐‘ฃ

๐‘ˆ(เทก

๐ธเทœ ๐‘ฃ) = exp(โˆ’ 1 2 เทœ ๐‘ฃ๐‘ˆ เทก ๐ธ๐‘ˆ เทก ๐ธเทœ ๐‘ฃ )

เทก ๐ธ๐‘ˆ เทก ๐ธ = ๐ฟโˆ’1

  • D specifies the โ€œinverseโ€ covariance matrix
  • Can compute K from:

เทก ๐ธ๐‘ˆ เทก ๐ธ๐ฟ = ๐ฝ

slide-36
SLIDE 36

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Greenโ€™s functions and covariance functions

โ„› ๐‘ฃ = ๐‘†๐‘ฃ 2 = เท

๐‘—=0 ๐‘œ

๐›ฝ๐‘— ๐ธ๐‘—๐‘ฃ 2 Corresponding covariance function for GP is the Greens function G: ๐‘†โˆ—๐‘†๐ป ๐‘ฆ, ๐‘ง = ๐œ€(๐‘ฆ โˆ’ ๐‘ง)

  • We can define Gaussian processes, which mimic typical regularization operators.
  • T. Poggio and F. Girosi; Networks for Approximation and Learning, Proceedings of the IEEE, 1990
slide-37
SLIDE 37

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Example: Gaussian kernel

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = exp(โˆ’ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 ๐œ2 )

โ„› ๐‘ฃ =

๐‘†๐‘ฃ 2 = เท

๐‘—=0 โˆž ๐œ2๐‘—

๐‘—! 2๐‘— ๐ธ๐‘—๐‘ฃ 2

  • Non-zero functions are penalized
  • pushes functions to zero away from data

Yuille, A. and Grzywacz M. A mathematical analysis of the motion coherence theory. International Journal of Computer vision

slide-38
SLIDE 38

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Example: Exponential kernel (1D case)

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = 1 2๐›ฝ exp(โˆ’๐›ฝ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ ) โ„› ๐‘ฃ = ๐‘†๐‘ฃ 2 = ๐›ฝ2๐‘ฃ + ๐ธ1๐‘ฃ 2

Rasmussen, Carl Edward, and Christopher KI Williams. Gaussian processes for machine learning. Vol. 1. Cambridge: MIT press, 2006.

slide-39
SLIDE 39

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Matรฉrn class of kernels

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘ก 21โˆ’๐œ‰ ฮ“ ๐œ‰ 2 2๐œ‰ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ ๐œ

๐œ‰

๐ฟ๐‘ค( 2๐œ‰ ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ ๐œ )

  • ฮ“ is the ฮ“ function, ๐‘™๐œ‰ the modified Bessel function and ๐œ‰, ๐œ are parameters
  • Process ๐‘ฃ~๐ป๐‘„ 0, ๐‘™ is ๐œ‰ โˆ’ 1 times m.s. differentiable
  • Special cases:
  • ๐œ‰ =

1 2 : ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘ก exp(โˆ’ ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

)

  • ๐œ‰ =

3 2 : k x, xโ€ฒ = ๐‘ก(1 + 3 ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

) exp(โˆ’

3 ๐‘ฆโˆ’๐‘ฆโ€ฒ ๐œ

)

  • ๐œ‰ โ†’ โˆž Gaussian kernel
slide-40
SLIDE 40

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Thin-plate splines

  • Minimizes the bending energy of a metal sheet

๐‘† ๐‘ฃ = ๐›ผ๐‘ˆ๐›ผ๐‘ฃ

2

  • Corresponding covariance function

๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = 1 12 2 ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 3 โˆ’ 3๐‘†( ๐‘ฆ โˆ’ ๐‘ฆโ€ฒ 2 + ๐‘†3 where ๐‘† = max

๐‘ฆ,๐‘ฆโ€ฒโˆˆฮฉ โ€–๐‘ฆ โˆ’ ๐‘ฆโ€ฒโ€– Rohr, Karl, et al. "Landmark-based elastic registration using approximating thin-plate splines." IEEE Transactions on medical imaging 20.6 (2001): 526-534.

Williams, Oliver and Fitzgibbon Andrew, โ€œGaussian process implicit surfacesโ€

slide-41
SLIDE 41

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

B-Splines

  • We can build a covariance function from B-Spline basis functions ๐›พ

(๐‘ก is a scaling constant) ๐‘™ ๐‘ฆ, ๐‘ง = เท

๐‘™โˆˆโ„ค๐‘’

๐›พ ๐‘ก๐‘ฆ โˆ’ ๐‘™ ๐›พ ๐‘ก๐‘ง โˆ’ ๐‘™

  • Corresponding deformation model often called โ€œfree form deformationsโ€
  • Rueckert, Daniel, et al. "Nonrigid registration using free-form deformations: application to breast MR images."

IEEE transactions on medical imaging 18.8 (1999): 712-721.

  • Klein, Stefan, et al. "Elastix: a toolbox for intensity-based medical image registration." IEEE transactions on

medical imaging 29.1 (2010): 196-205.

slide-42
SLIDE 42

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Many standard models for registration can be formulated using Gaussian processes

  • Yields probabilistic interpretation
  • We can sample and visualize deformation fields
  • Can use them as building blocks for more complicated priors
slide-43
SLIDE 43

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

  • 1. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘” ๐‘ฆ ๐‘” ๐‘ฆโ€™ ๐‘ˆ, ๐‘”: ๐‘Œ โ†’ โ„๐‘’
  • 2. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐›ฝ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ , ๐›ฝ โˆˆ โ„+

(scaling)

  • 3. k ๐‘ฆ, ๐‘ฆโ€ฒ = ๐ถ๐‘ˆ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ ๐ถ, B โˆˆ โ„๐‘ ร—๐‘’ (lifting)
  • 4. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ + ๐‘™2 ๐‘ฆ, ๐‘ฆโ€ฒ

(or relationship)

  • 5. ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ โ‹… ๐‘™2(๐‘ฆ, ๐‘ฆโ€ฒ)

(and relationship)

Constructing s.p.d. kernels

slide-44
SLIDE 44

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Multi-scale kernels

Add kernels that act on different scales: ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = เท

๐‘—=0 ๐‘œ

เท

๐‘™โˆˆโ„ค๐‘’

๐›พ 2โˆ’๐‘—๐‘ฆ โˆ’ ๐‘™ ๐›พ 2โˆ’๐‘—๐‘ฆโ€ฒ โˆ’ ๐‘™

  • Wavelet like multiscale representation

Opfer, Roland. "Multiscale kernels." Advances in computational mathematics 25.4 (2006): 357-380.

slide-45
SLIDE 45

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Multi-scale kernel

slide-46
SLIDE 46

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Anisotropic priors

Scale deformations differently in each direction k ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘†๐‘ˆ ๐‘ก1 ๐‘ก2 ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ ๐‘ก1 ๐‘ก2 ๐‘†

  • R is a rotation matrix
  • ๐‘™ is scalar valued
  • ๐‘ก1, s2 scaling factors
slide-47
SLIDE 47

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Anisotropic priors

slide-48
SLIDE 48

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Spatially-varying priors

Use different models for different regions ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ = ๐œ“ ๐‘ฆ ๐œ“ ๐‘ฆโ€ฒ ๐‘™1 ๐‘ฆ, ๐‘ฆโ€ฒ + 1 โˆ’ ๐œ“ ๐‘ฆ (1 โˆ’ ๐œ“ ๐‘ฆโ€ฒ ) ๐‘™2(๐‘ฆ, ๐‘ฆโ€ฒ) ฯ‡ ๐‘ฆ = แ‰Š1 if ๐‘ฆ โˆˆ thumb region

  • therwise

๐œ“ ๐‘ฆ = 1 ๐œ“ ๐‘ฆ = 0 Freiman, Moti, Stephan D. Voss, and Simon K. Warfield. "Demons registration with local affine adaptive regularization: application to registration of abdominal structures." Biomedical Imaging: From Nano to Macro, 2011 IEEE International Symposium on. IEEE, 2011.

slide-49
SLIDE 49

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Spatially-varying priors

slide-50
SLIDE 50

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Statistical deformation models

Estimate mean and covariance function from data:

๐œˆ ๐‘ฆ = ๐‘ฃ ๐‘ฆ = 1 ๐‘œ เท

๐‘—โˆ’1 ๐‘œ

๐‘ฃ๐‘— (๐‘ฆ) ๐‘™๐‘‡๐‘ ๐‘ฆ, ๐‘ฆโ€ฒ = 1 ๐‘œ โˆ’ 1 เท

๐‘— ๐‘œ

(๐‘ฃ๐‘— ๐‘ฆ โˆ’ ๐‘ฃ(๐‘ฆ)) ๐‘ฃ๐‘— ๐‘ฆโ€ฒ โˆ’ ๐‘ฃ(๐‘ฆโ€ฒ)

๐‘ˆ

๐‘ฃ1 โˆถ ฮฉ โ†’ โ„2 ๐‘ฃ2 โˆถ ฮฉ โ†’ โ„2 โ€ฆ ๐‘ฃ๐‘œ โˆถ ฮฉ โ†’ โ„2

slide-51
SLIDE 51

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Example 5: Statistical deformation models

slide-52
SLIDE 52

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

A selection of likelihood functions

slide-53
SLIDE 53

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Landmark likelihood

For one landmark pair (๐‘š๐‘†, ๐‘š๐‘ˆ): ๐‘ž ๐‘š๐‘ˆ ๐œ„, ๐‘š๐‘† = ๐‘‚ ๐œ’ ๐œ„ ๐‘š๐‘† , ๐ฝ2๐‘ฆ2๐œ2 For many landmarks ๐‘€ = ((๐‘š๐‘†

1, ๐‘š๐‘ˆ 1), โ€ฆ , (๐‘š๐‘† ๐‘œ, ๐‘š๐‘ˆ ๐‘œ))

๐‘ž ๐‘š1

๐‘ˆ, โ€ฆ , ๐‘š๐‘œ ๐‘ˆ ๐œ„, ๐‘š๐‘† 1, โ€ฆ , ๐‘š๐‘† ๐‘œ

= เท‘

๐‘—

๐‘‚ ๐œ’ ๐œ„ ๐‘š๐‘† , ๐ฝ2๐‘ฆ2๐œ2

๐‘š1

๐‘†

๐‘š1

๐‘ˆ

๐‘š๐‘—

๐‘†

๐‘š๐‘—

๐‘ˆ

slide-54
SLIDE 54

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Landmark likelihood: Some remarks

  • Classical problem in registration
  • Needs either many landmark points or good structure of prior to achieve good results

Rohr, Karl, et al. "Landmark-based elastic registration using approximating thin-plate splines." IEEE Transactions on medical imaging 20.6 (2001): 526-534.

slide-55
SLIDE 55

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Given:

  • Gaussian process: ๐‘ฃ โˆผ ๐ป๐‘„(๐œˆ, ๐‘™)
  • Observations: {(๐‘š๐‘—

๐‘†, เทค

๐‘ฃ๐‘—), ๐‘— = 1 , โ€ฆ , ๐‘œ} Assume: เทค ๐‘ฃ๐‘— = ๐‘ฃ ๐‘š๐‘— + ๐œ— with ๐œ— โˆผ ๐‘‚(0, ๐œ2๐ฝ2ร—2). Goal:

  • Find posterior distribution

๐‘ฃ | ๐‘š1

๐‘†, โ€ฆ , ๐‘š๐‘œ ๐‘†, เทค

๐‘ฃ1, โ€ฆ , เทค ๐‘ฃ๐‘œ

๐‘ฃ๐‘œ

Landmark registration using GP Regression

๐‘ฃ1 ๐‘š๐‘†

1

๐‘š๐‘†

๐‘œ

slide-56
SLIDE 56

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

๐œˆ๐‘ž(๐‘ฆ) = ๐œˆ ๐‘ฆ + ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘œร—2๐‘œ )โˆ’1 เทฅ ๐’— โˆ’ ๐œˆ(๐‘) ๐‘™๐‘ž ๐‘ฆ, ๐‘ฆโ€ฒ = ๐‘™ ๐‘ฆ, ๐‘ฆโ€ฒ โˆ’ ๐ฟ ๐‘ฆ, ๐‘ (๐ฟ ๐‘, ๐‘ + ๐œ2๐ฝ2๐‘œร—2๐‘œ )โˆ’1๐ฟ(๐‘, ๐‘ฆโ€ฒ)

The posterior ๐‘ฃ |๐‘š1

๐‘†, โ€ฆ , ๐‘š๐‘œ ๐‘†, เทค

๐‘ฃ1, โ€ฆ , ๐‘œ is a Gaussian process

๐ป๐‘„ ๐œˆ๐‘ž, ๐‘™๐‘ž

Its parameters are known analytically.

Gaussian process regression

slide-57
SLIDE 57

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Landmark registration using GP Regression

slide-58
SLIDE 58

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Hybrid registration

  • Combine landmark registration with intensity:
  • 1. Use Gaussian process regression to obtain posterior from ๐ป๐‘„(๐œˆ, ๐‘™) from landmarks
  • 2. Use ๐ป๐‘„(๐œˆ๐‘ž, ๐‘™๐‘ž) as new prior model for registration
  • Simple solution to otherwise difficult problem

Wรถrz, Stefan, and Karl Rohr. "Hybrid spline-based elastic image registration using analytic solutions of the navier equation." Bildverarbeitung fรผr die Medizin 2007. Springer Berlin Heidelberg, 2007. 151-155. Lu, Huanxiang, Philippe C. Cattin, and Mauricio Reyes. "A hybrid multimodal non-rigid registration of MR images based on diffeomorphic demons." Engineering in Medicine and Biology Society (EMBC), 2010 Annual International Conference of the IEEE. IEEE, 2010.

slide-59
SLIDE 59

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Likelihood function: Image registration

Assumptions:

  • Corresponding points have the same image intensity (up to i.i.d. noise)

๐‘ฆ ๐œ’[๐œ„](๐‘ฆ) ๐ฝ๐‘† ๐ฝ๐‘ˆ ๐‘ž ๐ฝ๐‘ˆ(๐œ’[๐œ„](๐‘ฆ)) ๐ฝ๐‘†, ๐œ„, ๐‘ฆ โˆผ ๐‘‚ ๐ฝ๐‘† ๐‘ฆ , ๐œ2 Images are similar when the intensities match

slide-60
SLIDE 60

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Likelihood function: Image registration

๐‘ฆ ๐œ’[๐œ„](๐‘ฆ) ๐ฝ๐‘† ๐ฝ๐‘ˆ ๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘†, ๐œ„ = เท‘

๐‘ฆโˆˆฮฉ

๐‘ž ๐ฝ๐‘ˆ(๐œ’[๐œ„](๐‘ฆ)) ๐ฝ๐‘†, ๐œ„, ๐‘ฆ = เท‘

๐‘ฆโˆˆฮฉ

1 ๐‘Ž exp โˆ’ (๐ฝ๐‘ˆ ๐œ’ ๐‘ฆ โˆ’ ๐ฝ๐‘† ๐‘ฆ ) 2 ๐œ2 Images are similar when the intensities match Assumptions:

  • Corresponding points have the same image intensity (up to i.i.d. noise)

Image term outside mapping function. Makes problem really difficult

slide-61
SLIDE 61

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Image vs. Landmark registration

  • Landmark registration is easy
  • All components are Gaussian
  • Closed form solution using Gaussian process regression
  • Image registration is hard
  • Image destroys Gaussian assumption
  • Likelihood function is not Gaussian
  • Problem with many local minima
slide-62
SLIDE 62

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

What about surface registration?

Reference (surface): ฮ“๐‘† ฮ“๐‘† ฮ“๐‘ˆ ๐œ’ Target (surface): ฮ“๐‘ˆ

slide-63
SLIDE 63

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

A trick: Implicit definition of a surface

  • Any surface ฮ“ can be represented as

the zero level set of a level set function ฮฆ ฮ“ = ๐‘ฆ ฮฆ ๐‘ฆ = 0}

  • Popular choice is the signed distance

function defined as ๐ธฮ“ ๐‘ฆ = CP

ฮ“(๐‘ฆ) โˆ’ ๐‘ฆ

with CP

ฮ“(๐‘ฆ) = arg min ๐‘ฆโ€ฒโˆˆฮ“ โ€–๐‘ฆ โˆ’ ๐‘ฆโ€ฒโ€– ๐ธฮ“ ๐‘ฆ = โˆ’30 ๐ธฮ“ ๐‘ฆ = โˆ’15 ๐ธฮ“ ๐‘ฆ = 0

๐ธฮ“ ๐‘ฆ = 15 ๐ธฮ“ ๐‘ฆ = 30 ๐ธฮ“ ๐‘ฆ = 45

slide-64
SLIDE 64

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Reference ๐ธ๐‘†: ฮฉ๐‘† โ†’ โ„ Target ๐ธ๐‘ˆ โˆถ ฮฉ๐‘ˆ โ†’ โ„

Likelihood function: Surface registration

  • We define the distance functions and use image to image likelihoods

๐‘ž ๐ธ๐‘ˆ ๐œ’[๐œ„](๐‘ฆ) ๐œ„, ๐ธ๐‘†, ๐‘ฆ โˆผ ๐‘‚ ๐ธ๐‘†๐œ’[๐œ„](๐‘ฆ), ๐œ2

  • Most likely solution will map points on the zero level-sets to each other
  • Noise parameter ๐œ2 has geometric interpretation (variance of distance between the mapped

points)

๐‘ฆ

๐œ’[๐œ„](๐‘ฆ)

slide-65
SLIDE 65

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

๐œ1 ๐‘ฆ1

Likelihood function: Active shape models

  • ASMs model each profile ๐œ(๐‘ฆ๐‘—) as a normal

distribution ๐‘ž ๐œ(๐‘ฆ๐‘—) = ๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

  • Single profile point ๐‘ฆ๐‘—:

๐‘ž ๐œ(๐œ’[๐œ„](๐‘ฆ๐‘—))|๐œ„, ๐‘ฆ๐‘— = ๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

  • Image likelihood:

๐‘ž ๐œ(๐œ’[๐œ„](๐‘ฆ))|๐œ„, ฮ“

๐‘† = เท‘ ๐‘—

๐‘‚(๐œˆ๐‘—, ฮฃ๐‘—)

Extracts profile (feature) from image

Shape is well matched if environment around profile points is likeli under trained model.

slide-66
SLIDE 66

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Exercise: Active Shape Models in Scalismo

Type into the codepane: goto(โ€œhttp://shapemodelling.cs.unibas.ch/exercises/Exercise16.htmlโ€) Scalismo 0.16: Check examples in https://github.com/unibas-gravis/pmm2018

slide-67
SLIDE 67

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Summary: Modelling

  • GPs provide probabilistic interpretation to classic registration models
  • Can visualize assumptions
  • New ways to combine priors to individual applications.
  • Modelling of prior is separate from likelihood
  • Any GP model can be combined with any likelihood function
  • Flexible framework to tailor model and algorithm to

needs of applications

  • No increase in complexity
  • Modelling and model fitting are separated
  • Gradient based methods are important, but not the only method
slide-68
SLIDE 68

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Optimization

slide-69
SLIDE 69

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

The optimization problem

  • The final problem is a difficult
  • ptimization problem
  • Possibly many local minima
  • Non-linearity due to image term
  • Not possible to avoid it
  • Flexible models makes things worse

๐œ„โˆ— = arg max

๐œ„

๐‘ž ๐œ’ ๐œ„ ๐‘ž(๐ฝ๐‘ˆ|๐ฝ๐‘† โˆ˜ ๐œ’[๐œ„])

๐œ„

slide-70
SLIDE 70

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Local minima

  • Rigid Transformation
  • Minima due to structure of object

Possible approach: Multi-resolution

  • Non-rigid Transformation
  • Minima appear/dissappear when shape changes

Possible approach: Multi-scale models, regularization

slide-71
SLIDE 71

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Multi resolution

Idea: Solve optimzation problem for a sequence of smoothed out objects.

slide-72
SLIDE 72

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Implementation

  • Smooth the input shapes
  • For images, achieved by Gaussian blurring

72 Almost no local minima No-details Many local minima All-details Initial registration Final registration

slide-73
SLIDE 73

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Multi-scale / Regularization

Idea: Solve optimzation problem for a sequence of increasingly detailed deformations Only large, smooth deformations Large regularization value Allow detailed deformations Almost no regularization Initial registration Final registration

slide-74
SLIDE 74

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Doing the registration

Strategies:

  • Gradient-based registration
  • Compute gradient and use local optimization methods
  • Quasi-Newton schemes , SGD, โ€ฆ
  • Gradient free registration
  • Use global optimization method directly on cost function
  • Examples: Simulated annealing, Particle Swarm, โ€ฆ
  • ICP-based methods
  • Assume correspondence and solve in each iteration analytic problem
  • Examples: Non-rigid ICP, Active Shape models, CPD
slide-75
SLIDE 75

> DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE GRAVIS 2018 | BASEL

Model-fitting using Markov Chain Monte Carlo

  • Can obtain full posterior distribution

using the Metropolis Hastings algorithm

  • Needs only point-wise evaluation of

unnormlized posterior

  • Leads to principled way to integrate

unreliable bottom up methods

  • Automatically detected landmarks

MAP Solution ๐œ’โˆ— = arg max

๐œ’

๐‘ž ๐œ’ ๐ฝ๐‘ˆ, ๐ฝ๐‘†

๐‘ž ๐œ’ ๐ฝ๐‘ˆ, ๐ฝ๐‘†) = ๐‘ž ๐œ’[๐›ฝ] ๐‘ž ๐ฝ๐‘ˆ ๐ฝ๐‘†, ๐œ’[๐›ฝ] ๐‘‚(๐ฝ๐‘ˆ)

More on this tomorrow!