Registration: Spatial Image Definitions
Outline
Image Resampling
Image Origin and Spacing
Origin (Ox,Oy)
Spacing (Sy)
Spacing (Sx)
x
y
Image Sampling Grid
Origin (Ox,Oy)
Spacing (Sy)
Spacing (Sx)
Image Pixel
Spacing (Sy)
Pixel Value
Pixel Region
Origin (Ox,Oy)
Spacing (Sx)
Image Indices
Spacing (Sy)
Spacing (Sx)
Origin (Ox,Oy)
[0,0]
[1,0]
[2,0]
[3,0]
[4,0]
[5,0]
[0,1]
[0,2]
[0,3]
[0,4]
[0,5]
[4,7]
[0,6]
[0,7]
Pixel Index
Index to Physical Coordinates
Spacing (Sy)
Spacing (Sx)
Origin (Ox,Oy)
[0,0]
[1,0]
[2,0]
[3,0]
[4,0]
[5,0]
[0,1]
[0,2]
[0,3]
[0,4]
[0,5]
[4,7]
[0,6]
[0,7]
Pixel Index
P[0] = Index[0] x Spacing[0] + Origin[0]
P[1] = Index[1] x Spacing[1] + Origin[1]
Index[0] = floor( ( P[0] - Origin[0] ) / Spacing[0] + 0.5 )
Index[1] = floor( ( P[1] - Origin[1] ) / Spacing[1] + 0.5 )
Image Region
Spacing (Sy)
Pixel Value
Pixel Region
Origin (Ox,Oy)
Spacing (Sx)
Image Region
Image Region
Spacing (Sy)
Pixel Value
Pixel Region
Origin (Ox,Oy)
Spacing (Sx)
Image Region
Starting Index
Region Size
[2,3]
[3,5]
Axes directions
Origin (Ox,Oy)
[0,0]
[1,0]
[2,0]
[3,0]
[4,0]
[5,0]
[0,1]
[0,2]
[0,3]
[0,4]
[0,5]
[4,7]
[0,6]
[0,7]
Pixel Index
x (1,0,0)
y (0,1,0)
Axes directions
Origin (Ox,Oy)
[0,0]
[1,0]
[2,0]
[3,0]
[4,0]
[5,0]
[0,1]
[0,2]
[0,3]
[0,4]
[0,5]
[4,7]
[0,6]
[0,7]
Pixel Index
x (0.866,0.5,0)
y (-0.5, 0.866,0)
30° rotation
Axes directions
Origin (Ox,Oy)
[0,0]
[1,0]
[2,0]
[3,0]
[4,0]
[5,0]
[0,1]
[0,2]
[0,3]
[0,4]
[0,5]
[4,7]
[0,6]
[0,7]
Pixel Index
x (-1,0,0)
y (0,1,0)
x axis flip
Basic Resampling
Image Pixel
Spacing (Sy)
Origin (Ox,Oy)
Spacing (Sx)
Sub-Sampling by Half
Spacing (Sy)
Origin (Ox,Oy)
Spacing (Sx)
Image Region
Spacing
( 2 x Sy )
Spacing ( 2 x Sx )
Sub-Sampling by Half
New Origin
(O’x,O’y)
New Spacing
S’y
New Spacing
S’x
Origin (Ox,Oy)
Image Pixel
Spacing (Sy)
Origin (Ox,Oy)
Spacing (Sx)
Super-Sampling by Double
Spacing (Sy)
Origin (Ox,Oy)
Spacing (Sx)
Image Region
Spacing ( Sy/2 )
Spacing ( Sx/2 )
Super-Sampling by Double
Origin (Ox,Oy)
New Spacing
S’x
New Spacing
S’y
New Origin
(O’x,O’y)
Resampling in ITK
Resampling in ITK
Transform
Interpolator
Origin
Spacing
Region Start
Region Size
Resample Filter
Input Image
Output Image
Coordinate System Conversions
Image Grid
j
i
y
x
Physical Coordinates
Image Grid
j
i
Space Transform
y’
x’
Physical Coordinates
x
y
Things I will not do…
I will not register images in pixel space
I will not register images in pixel space
I will not register images in pixel space
I will not register images in pixel space
I will not register images in pixel space
I will not register images in pix
Fixed Image & Moving Image
y
x
Physical Coordinates
Space Transform
y’
x’
Physical Coordinates
x
y
y
x
Physical Coordinates
Image Grid
j
i
Image Grid
j
i
Selecting Moving & Fixed Images
Registration Frameworks in ITK
Registration Optimization Framework
PDE Deformable Registration (Demons)
FEM Registration
Registration Optimization Framework
Parameteric Spatial Transforms
Enjoy ITK !