Model Registration Modules
Model registration classes align PyVista meshes and derived image masks. They
are used by WorkflowFitStatisticalModelToPatient.
Available Classes
RegisterModelsBase: the shared contract and theregistration_methodhook.RegisterModelsICP: initial surface alignment.RegisterModelsICPITK: ITK point-set registration.RegisterModelsDistanceMaps: distance-map based deformable registration.RegisterModelsPCA: statistical shape model fitting.
Workflow-Level Use
Most users should access model registration through the workflow:
import itk
import pyvista as pv
from monai_physio import WorkflowFitStatisticalModelToPatient
workflow = WorkflowFitStatisticalModelToPatient(
template_model=pv.read("template_heart.vtu"),
)
result = workflow.process(
patient_models=[pv.read("lv.vtp"), pv.read("rv.vtp")],
patient_image=itk.imread("patient_ct.nii.gz"),
)