convert_image_4d_to_3d (CLI)
Command-line interface for splitting a 3D/4D image into a 3D time series.
Reads a 3D or 4D medical image and writes one .mha file per temporal frame
to the chosen output directory. Supported inputs:
A single 4D file readable by ITK (NRRD, NIfTI, MHA, …); each temporal frame is written separately.
A single 3D file readable by ITK; it is written as a one-frame series.
A directory containing a DICOM series (3D or 4D / gated); slices are grouped by temporal phase and each phase is written as a 3D frame.
- physiotwin4d.cli.convert_image_4d_to_3d.main()[source]
CLI entry point for 4D-to-3D image conversion.
- Return type:
See CLI & Scripts Overview for where this fits in the pipeline.