Model Registration Modules
Model registration classes align PyVista meshes and derived image masks. They
are used by WorkflowFitStatisticalModelToPatient.
Available Classes
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 physiomotion4d import WorkflowFitStatisticalModelToPatient
workflow = WorkflowFitStatisticalModelToPatient(
template_model=pv.read("template_heart.vtu"),
patient_models=[pv.read("lv.vtp"), pv.read("rv.vtp")],
patient_image=itk.imread("patient_ct.nii.gz"),
)
result = workflow.run_workflow()