io.write_dicom#
- bartorch.io.write_dicom()#
Write a real image as one DICOM MR image series, a file per image.
Parameters and conversion are those of
to_dicom(). Files are namedEX<StudyID>_<SeriesNumber:02>_<SeriesDescription>_<InstanceNumber:03>.dcmin the directorypath, which is created.- Returns:
The files written, in instance order.
- Return type:
list of pathlib.Path