April 2020
Intermediate to advanced
438 pages
12h 2m
English
Execute the following steps to implement image registration with SimpleITK:
fixed_image = sitk.ReadImage("images/ct_scan_11.jpg", \ sitk.sitkFloat32)moving_image = sitk.ReadImage("images/mr_T1_06.jpg", \ sitk.sitkFloat32)
fixed_image_array = sitk.GetArrayFromImage(fixed_image)moving_image_array = sitk.GetArrayFromImage(moving_image)print(fixed_image_array.shape, moving_image_array.shape)# (512, 512) (512, 512)
The following screenshot shows the fixed and the moving images and their initial alignment ...
Read now
Unlock full access