What problem does it solve? Processing 4D CT perfusion time series into quantitative perfusion maps requires careful motion correction, AIF/VOF-based deconvolution, and unit validation that ad-hoc scripts often get wrong, producing unreliable CBF, CBV, MTT, and Tmax values. ## Core Features & Use Cases - Rigid Motion Correction: Align 4D CT frames to a precontrast reference frame with SimpleITK mutual-information registration, per-frame displacement metrics, and coverage masks. - cSVD Deconvolution: Compute CBF, CBV, MTT, and Tmax maps from baseline-subtracted HU curves using block-circulant truncated SVD with optional VOF-based AIF scaling. - Supplied-Map Summarization: Validate and summarize vendor-derived CBF/CBV/MTT/Tmax maps with explicit unit checks, grid matching, and ROI statistics. - Use Case: A researcher with a motion-corrected 4D CTP NIfTI series, brain mask, and AIF mask runs the compute mode to generate perfusion maps, ROI summaries, QC plots, and a run manifest for cohort analysis. ## Quick Start Run the ctp compute script on my motion-corrected 4D CT perfusion NIfTI series with my brain mask, AIF mask, and acquisition metadata JSON to produce CBF, CBV, MTT, and Tmax maps with QC outputs.