Model Registration Modules

Model registration classes align PyVista meshes and derived image masks. They are used by WorkflowFitStatisticalModelToPatient.

Available Classes

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()

See Also