Skip to main content
. Author manuscript; available in PMC: 2016 Jan 22.
Published in final edited form as: SIAM J Imaging Sci. 2015 Apr 30;8(2):1007–1029. doi: 10.1137/130933423

Algorithm 1.

Kalman multiatlas segmentation.

1: Affine register Ji to Ji−1 for i = 1, …, N − 1 by minimizing the MSE, and record the transformations Ãii1. This can be done offline before I is available
2: Initialize P0+, Q, and R
3: When I is available, register I0 to I and record the transformations A0(α0+)
4: for i = 1, 2, …, N − 1 do
5:   Predict transformation: αi=Fiαi1+
6:   Covariance matrix: Pi=Fi1Pi1+Fi1+Q
7:   Get observation: affine register Ii to I by minimizing the dissimilarity measure and record the transformation βi
8:   Kalman gain: K=Pi(Pi+Ri)1
9:   Update state: αi+=αi+K(βiαi)
10:   Update covariance matrix: Pi+=(IdK)Pi
11: end for