What I would like to do is to export a clipped region (from Dynamic Modeler) into a DICOM-RT file. I have searched throughout the Forum with no answer. It has bothered me for a long time. Any help from your side will be much appreciated.
Operating system: Windows 10
Slicer version: 4.11.20210226
Expected behavior: Export a Segmentation in DICOM-RT format
Actual behavior:
My workflow is as follows:
Imput a CT data set with some heart Segmentations (in RTSTRUCT format);
“Export visible segments to models”;
Generate a Segmentation (ClippedRegion) by Dynamic Modeler (using curve cut);
“Convert model to segmentation node”;
Right click this segmentation, then click “Export to DICOM…”;
Get the error message “Must export the primar anatomical (CT/MR) image” (see the screenshot below).
And it seems that the new Segmentation is not “linked” to the primary CT data set? When I click the CT data set in this Export window, the label of the original segmentation with the CT will turn green. I guess this means the original segmentation is “linked” with the CT. This is maby another problem.
It is great that it works now. @cpinter is there a specific reason why the segmentation must be a directly under the study item? Should we make the export mechanism more robust (e.g., do a recursive search from the study level)? If we don’t implement a fix right now then we should at least add an issue to the tracker to remember to work on this later.