feat(core): add DICOM fields to manage source image
Description
This adds functions to DICOM API in series
to manage DICOM SourceImageSequence
which allows making DERIVED
image (ex: a reconstructed volume derived from US frames sequence):
-
[s|g]et_image_type()
: Sets/gets theImageType
of the series. TheImageType
is a\
separated string with the following format:[Pixel Data Characteristics:ORIGINAL|DERIVED], [Patient Examination Characteristics:PRIMARY|SECONDARY], [modality specific:xxx|yyy|...], [zzz], ...
: See ImageType (0008,0008) DICOM tag. The exact definition is modality dependent, but the two first elements ([ORIGINAL|DERIVED] and [PRIMARY|SECONDARY]) are fixed. This allows to set a reconstructed volume asDERIVED
and the original frame sequence asORIGINAL
and, optionally, other attributes. -
[s|g]et_referenced_sop_class_uid()
and[s|g]et_referenced_sop_instance_uid()
: Sets/gets the referenced series. Both are required for a valid DICOM. - Preliminary work to simplify the fiducials DICOM API: code factorization (more can be done like introducing high level fiducials functions in
has_fiducials
)
Breaking change(s)
None expected.
How to test it?
- CI and unit tests