autods_pet.imaging.registration#
Rigid PET-to-CT registration using SimpleElastix.
Registers a PET image onto the CT grid (same spacing, origin, direction, and size as CT) using mutual information with a rigid transform.
- autods_pet.imaging.registration.rigid_register_pet_to_ct(ct, pet, log_to_console=False, report_path=None)[source]#
Rigidly register pet onto the ct grid.
- Parameters:
ct (
Image) – CT image (fixed / reference frame).pet (
Image) – PET image (moving).log_to_console (
bool(default:False)) – If True, print Elastix iteration logs to stdout.report_path (
Path|None(default:None)) – If set, Elastix writesTransformParameters.0.txttoreport_path.parentand it is renamed to report_path.
- Returns:
PET resampled onto the CT grid (float64).
- Return type:
Image