The unigradicon-register CLI command performs medical image registration.
Basic Usage
Register a single pair of images by specifying the fixed and moving images, their modalities, and output paths for the transform and the warped image.
Instance Optimization (IO) Options
You can enable or disable Instance Optimization (IO) using --io_iterations.
- Set
--io_iterations None to disable IO. - Set
--io_iterations [number] to enable IO with a specific number of iterations.
When using IO, you can specify a similarity measure with --io_sim. Supported values:
lncc: LNCClncc2: Squared LNCCmind: MIND SSC
Masking and Loss Functions
- Background Masking: Provide segmentations for both images using
--fixed_segmentation and --moving_segmentation to mask out the background before registration. - Loss Function Masking: Use
--loss_function_masking to apply segmentation-based masking during the IO process. - Intensity Conservation: For CT modality (where -1000 HU represents air), use
--intensity_conservation_loss to apply determinant-based intensity correction during IO.
Model Selection
Use --model to choose between available weights:
unigradicon (default)multigradicon (for multimodal registration)
unigradicon-register --fixed=RegLib_C01_2.nrrd --fixed_modality=mri --moving=RegLib_C01_1.nrrd --moving_modality=mri --transform_out=trans.hdf5 --warped_moving_out=warped_C01_1.nrrd