RT Structure #512
Replies: 1 comment
-
Thank you for your interest in DICOM-rs. The easiest part is loading the DICOM file as an object, of which there are many examples already. For RT structure files, I would say that consulting the standard for the modules that you are looking for from the IOD is key. In this case, the RT Structure Set IOD comprises the ROI Contour module, and among the list of attributes we have ROI Contour Sequence, which can be consulted with something like this: use dicom_object::open;
use dicom_dictionary::std::tags;
let file = open("file.dcm")?;
let contours = file.element(tags::ROI_CONTOUR_SEQUENCE)?;
for contour in contours.items().flatten() {
let referenced_roi_number: i32 = contour.element(tags::REFERENCED_ROI_NUMBER)?.to_int()?;
let source_pixel_planes = contour.get(tags::SOURCE_PIXEL_PLANES_CHARACTERISTICS_SEQUENCE)?;
// ...
} The documentation on |
Beta Was this translation helpful? Give feedback.
-
Hi,
Are there any examples of how to use this library with contour data in RT Structure Dicom files? Any help or suggestions on what to look into would be greatly appreciated.
Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions