Architecture
PhysioMotion4D is organized around explicit workflow classes and smaller
registration, segmentation, geometry, and USD utilities. Runtime workflow
classes inherit from PhysioMotion4DBase for logging and common runtime
configuration.
Warning
PhysioMotion4D 2026.05.07 beta is not validated for clinical use. It is a research and visualization toolkit, not a medical device.
Data Flow
4D CT / time-series CT
|
v
ConvertNRRD4DTo3D / ImageTools
|
v
RegisterTimeSeriesImages
| |
| +--> RegisterImagesANTs / RegisterImagesICON
v
SegmentChestTotalSegmentator / SegmentHeartSimpleware
|
v
ContourTools + TransformTools
|
v
WorkflowConvertCTToVTK / ConvertVTKToUSD / WorkflowConvertVTKToUSD
|
v
OpenUSD assets for NVIDIA Omniverse
Primary Workflows
WorkflowConvertHeartGatedCTToUSDConverts a 4D cardiac CT file or 3D CT time series into registered anatomy contours and painted animated USD files.
WorkflowConvertCTToVTKSegments a 3D CT image and exports anatomy groups as VTK surfaces and voxel meshes.
WorkflowCreateStatisticalModelAligns a population of meshes to a reference and builds a PCA statistical shape model.
WorkflowFitStatisticalModelToPatientFits a template/statistical model to patient-specific surfaces with ICP, optional PCA fitting, mask-to-mask registration, and optional image refinement.
WorkflowReconstructHighres4DCTReconstructs higher-resolution 4D CT frames from a time series and a fixed high-resolution reference image.
WorkflowConvertVTKToUSDConverts VTK files to animated USD scenes through the supported workflow wrapper. The lower-level
physiomotion4d.vtk_to_usdpackage exposes advanced file conversion primitives.
Component Boundaries
Segmentation classes produce anatomy masks or labelmaps from ITK images. Registration classes produce ITK transforms or transformed meshes. Geometry utilities bridge ITK masks and PyVista meshes. USD tools are responsible for OpenUSD stage creation, material assignment, coordinate conversion, and time samples.
The high-risk boundary is the ITK-to-PyVista-to-USD path. Image data remains in ITK image space until contours are extracted. Meshes are represented as PyVista objects before USD export. The VTK-to-USD layer applies the repository’s RAS-to-Y-up coordinate transform during USD conversion.
CLI Boundary
The installed CLI commands in pyproject.toml are thin wrappers around the
workflow classes. They are the preferred examples for executable API usage:
physiomotion4d-heart-gated-ctphysiomotion4d-convert-ct-to-vtkphysiomotion4d-create-statistical-modelphysiomotion4d-fit-statistical-model-to-patientphysiomotion4d-convert-vtk-to-usdphysiomotion4d-reconstruct-highres-4d-ctphysiomotion4d-visualize-pca-modes