Академический Документы
Профессиональный Документы
Культура Документы
Under Construction
c Jan Modersitzki
FAIR
Contents
1
Introduction
1.1
Image Registration . . . . . .
1.2
Brief Outline . . . . . . . . . .
1.3
Literature and Links . . . . .
1.3.1
Image Registration
1.3.2
Optimization . . .
1.3.3
Matlab . . . . .
1.3.4
Other Software . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
13
13
14
15
15
15
16
16
FAIRConcepts
2.1
FAIR Theory . . . . . . . . . . . . . . . . . . . .
2.1.1
Images and Transformations . . . .
2.1.2
Distances and Regularization . . . .
2.2
FAIR Numerics . . . . . . . . . . . . . . . . . .
2.2.1
Discretize then Optimize . . . . . .
2.2.2
A Family of Nested Approximations
2.2.3
Optimization Techniques . . . . . .
2.3
FAIR Matlab . . . . . . . . . . . . . . . . . . .
2.3.1
Comments on Comments . . . . . .
2.3.2
Notation and Conventions . . . . . .
2.3.3
Coordinate System . . . . . . . . . .
2.3.4
Arguments, Parameter, and Defaults
2.3.5
Overwriting Default Parameter . . .
2.3.6
Matlabs @ Constructor . . . . .
2.3.7
FAIR Administration . . . . . . . . .
2.3.8
Memory versus Clarity . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
17
17
18
20
20
20
21
21
21
21
21
22
22
23
23
23
24
Image Interpolation
3.1
Cells, Grids, and Numbering . . . . . . . . . . . . . . . . . . .
3.2
Next Neighbor Interpolation . . . . . . . . . . . . . . . . . . .
3.3
Linear Interpolation . . . . . . . . . . . . . . . . . . . . . . . .
3.3.1
Linear Interpolation for One Dimensional Data . .
3.3.2
Linear Interpolation for Higher Dimensional Data
3.4
Spline Interpolation . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
25
25
29
29
29
30
31
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
c Jan Modersitzki
3.5
3.6
3.7
3.8
3.9
4
FAIR
3.4.1
Spline Interpolation for One Dimensional Data . .
3.4.2
Spline Interpolation for Higher Dimensional Data
Derivatives of Interpolation Schemes . . . . . . . . . . . . . .
3.5.1
Derivative of the Interpolant . . . . . . . . . . . .
3.5.2
Derivative of Multivariate Interpolant . . . . . . .
3.5.3
Testing the Implementation of a Derivative . . . .
Multiscale Spline Interpolation . . . . . . . . . . . . . . . . . .
3.6.1
Multiscale Interpolation in One Dimension . . . .
3.6.2
Truncating High Frequencies . . . . . . . . . . . .
3.6.3
Multiscale Interpolation in Higher Dimensions . .
Multiresolution of Data . . . . . . . . . . . . . . . . . . . . . .
Summarizing the Interpolation Toolbox . . . . . . . . . . . . .
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
32
34
35
35
36
36
37
38
40
41
42
43
45
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
49
49
50
51
52
52
54
54
56
57
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
59
60
61
63
64
66
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
67
68
70
70
71
72
74
75
77
79
82
83
83
84
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
c Jan Modersitzki
FAIR
6.6
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
89
90
91
91
92
Distance Measures
7.1
Sum of Squared Differences . . . . . . . . . . . . . . . . .
7.1.1
SSD and Forces . . . . . . . . . . . . . . . .
7.1.2
Discretized SSD . . . . . . . . . . . . . . . .
7.2
Cross-Correlation . . . . . . . . . . . . . . . . . . . . . .
7.2.1
Continuous Normalized Cross-Correlation . .
7.2.2
Discretized Normalized Cross-Correlation . .
7.3
Mutual Information . . . . . . . . . . . . . . . . . . . . .
7.3.1
Estimating the Joint Density, Principles . . .
7.3.2
Estimating the Joint Density of Two Images
7.3.3
Mutual Information . . . . . . . . . . . . . .
7.3.4
Discretizing Mutual Information . . . . . . .
7.4
Normalized Gradient Field . . . . . . . . . . . . . . . . .
7.4.1
Continuous Normalized Gradient Field . . .
7.4.2
Discretized Normalized Gradient Field . . . .
7.5
Derivatives of Distance Measures . . . . . . . . . . . . .
7.6
Summarizing the Distance Measures Toolbox . . . . . . .
7.7
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
95
95
96
97
97
97
99
100
102
105
106
106
107
107
109
110
111
116
Regularizer
8.1
Ill-posedness . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2
L2 -Norm Based Regularizer . . . . . . . . . . . . . . . . . .
8.3
Discretizing L2 -Norm Based Regularizer . . . . . . . . . . .
8.3.1
Discretizing First Order Derivatives . . . . . . .
8.3.2
The Discretized Diffusion and Elastic Operators
8.3.3
The Discretized Curvature Operator . . . . . . .
8.3.4
The Discretized L2 -Norm Based Regularizer . .
8.4
Matrix Free Operations . . . . . . . . . . . . . . . . . . . . .
8.4.1
Matrix Free Elastic Operator . . . . . . . . . . .
8.4.2
Matrix Free Curvature Operator . . . . . . . . .
8.5
Summarizing the Regularization . . . . . . . . . . . . . . . .
8.6
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
117
118
120
122
122
126
126
128
128
129
129
130
131
6.7
6.8
7
.
.
.
.
.
.
.
.
.
.
10
137
5
c Jan Modersitzki
11
12
13
14
15
6
General Tools
11.1
Get Cell Centered Grids . . . . . . . . .
11.2
Visualize 2D Data . . . . . . . . . . . . .
11.3
Checking Derivatives . . . . . . . . . . .
11.4
Set-up Data from an Ultrasound Image .
11.5
Set-up the Hand Example . . . . . . . .
11.6
Set-up the HNSP Example . . . . . . . .
11.7
Set-up the PET/CT Example . . . . . .
11.8
Setting Persistent Options . . . . . . . .
11.9
Creating Multilevel Data Representation
FAIR
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
139
139
140
140
141
142
143
144
145
147
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
149
149
149
150
150
151
151
152
152
153
154
155
156
Parameterization Tools
13.1
Translations in 2D . . . . . . . . . . . . . .
13.2
Affine Linear Transformations in 2D . . . .
13.3
Rigid Transformations in 2D . . . . . . . .
13.4
Rotations around the domain center in 2D
13.5
Spline Based Transformations in 2D . . . .
13.6
Affine Linear Transformations in 3D . . . .
13.7
Rigid Transformations in 3D . . . . . . . .
13.8
Generic Parameteric Transformation . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
157
157
157
158
158
159
160
160
161
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
163
163
163
164
164
164
165
165
165
.
.
.
.
.
.
.
.
167
[August 13, 2008, 13:12]
c Jan Modersitzki
FAIR
15.1
15.2
15.3
15.4
15.5
16
Objective Function . . . . . . . . . . . . . . . . . .
Regularization . . . . . . . . . . . . . . . . . . . . .
Armijo Line Search . . . . . . . . . . . . . . . . . .
Gau-Newton Based Parametric Image Registration
MLPIR: Multilevel Parametric Image Registration .
Distance Measures
16.1
Sum of Squared Differences . .
16.2
Normalized Cross Correlation
16.3
Joint Density Estimator . . .
16.4
Mutual Information . . . . . .
16.5
Normalized Gradient Fields .
16.6
FAIR Distance . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
167
168
169
170
172
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
175
175
175
176
177
179
180
17
Regularization
181
17.1
The Elastic Matrix . . . . . . . . . . . . . . . . . . . . . . . . . 183
17.2
The Curvature Matrix . . . . . . . . . . . . . . . . . . . . . . . 184
17.3
FAIR Regularizer . . . . . . . . . . . . . . . . . . . . . . . . . . 186
18
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
187
187
189
191
192
c Jan Modersitzki
FAIR
FAIR Listing
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
FAIR
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
19
45
56
60
63
64
70
72
77
79
99
105
106
109
111
120
130
134
c Jan Modersitzki
10
FAIR
List of Figures
1.1
14
2.1
2.2
18
19
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.13
3.14
3.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
26
27
29
30
31
32
33
35
37
39
40
43
44
48
4.1
4.2
51
53
5.1
5.2
5.3
60
62
65
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
68
71
73
73
74
80
84
84
11
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
c Jan Modersitzki
12
FAIR
6.9
6.10
6.11
6.12
6.13
6.14
6.15
6.16
6.17
6.18
6.19
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
7.10
8.1
8.2
8.3
8.4
. . . . . .
derivative.
. . . . . .
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
85
85
86
86
87
88
89
90
90
91
92
119
122
123
124
List of Tables
4.1
55
6.1
6.2
6.3
6.4
75
80
81
87
7.1
8.1
8.2
8.3
8.4
13
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
125
125
127
127