Parametric maps¶
Author a DICOM Parametric Map from a real-valued array (ADC, perfusion, dose, a model's continuous output) and read one back — the standard parametric-map capability.
Write¶
import pydcm
# adc: float array aligned to the reference series geometry
pydcm.write_paramap(
"dwi_series/",
adc,
units="10^-6 mm2/s",
quantity="Apparent Diffusion Coefficient",
label="ADC",
output="adc_pm.dcm",
)
referencesupplies geometry and demographics, exactly as for SEG.- The float values are stored faithfully with a self-consistent
slope / intercept; pass
slope/interceptto fix the quantisation, ordtypeto choose the stored representation. - Omit
outputto receive Part-10bytes.