
Exporting Contours to DICOM-RT Structure Set
Please use this identifier to cite or link to this publication: http://hdl.handle.net/1926/1521 |
Published in The Insight Journal - 2009 January - June.
Submitted by Subrahmanyam Gorthi on 01-29-2009.
This paper presents an ITK implementation for exporting the contours of the automated segmentation results to DICOM-RT Structure Set format. The “radiotherapy structure set” (RTSTRUCT) object of the DICOM standard is used for the transfer of patient structures and related data, between the devices found within and outside the radiotherapy department. It mainly contains the information of regions of interest (ROIs) and points of interest (E.g. dose reference points). In many cases, rather than manually drawing these ROIs on the CT images, one can indeed benefit from the automated segmentation algorithms already implemented in ITK. But at present, it is not possible to export the ROIs obtained from ITK to RTSTRUCT format. In order to bridge this gap, we have developed a framework for exporting contour data to RTSTRUCT. We provide here the complete implementation of RTSTRUCT exporter and present the details of the pipeline used. Results on a 3-D CT image of the Head and Neck (H&N) region are presented.
Code
Reviews






Quick Comments
Comment by Artem Mamonov
Hello. I compiled your code with ITK 4.7.2 and I am getting the following error when running mask2contour using your example:
ExceptionObject caught!
itk::ExceptionObject (0x2354300)
Location: "void itk::ExtractImageFilterTInputImage TOutputImage::GenerateOutputInformation() [with TInputImage = itk::Imageunsigned char 3u TOutputImage = itk::Imageunsigned char 2u]"
File: /homes/5/amamonov/src/InsightToolkit-4.7.2/Modules/Core/Common/include/itkExtractImageFilter.hxx
Line: 244
Description: itk::ERROR: ExtractImageFilter(0x2353d10): It is required that the strategy for collapsing the direction matrix be explicitly specified. Set with either myfilter-SetDirectionCollapseToIdentity() or myfilter-SetDirectionCollapseToSubmatrix() PN3itk9ImageBaseILj3EEE
Please advise.

Hello. I compiled your code with ITK 4.7.2 and I am getting the following error when running mask2contour using your example:
ExceptionObject caught!
itk::ExceptionObject (0x2354300)
Location: "void itk::ExtractImageFilterTInputImage TOutputImage::GenerateOutputInformation() [with TInputImage = itk::Imageunsigned char 3u TOutputImage = itk::Imageunsigned char 2u]"
File: /homes/5/amamonov/src/InsightToolkit-4.7.2/Modules/Core/Common/include/itkExtractImageFilter.hxx
Line: 244
Description: itk::ERROR: ExtractImageFilter(0x2353d10): It is required that the strategy for collapsing the direction matrix be explicitly specified. Set with either myfilter-SetDirectionCollapseToIdentity() or myfilter-SetDirectionCollapseToSubmatrix() PN3itk9ImageBaseILj3EEE
Please advise.
Resources
![]() |
|
Download All | |
Download Paper , View Paper | |
Download Source code | |
Github |
Statistics more
![]() |
|
Global rating: | ![]() ![]() ![]() ![]() ![]() |
Review rating: | ![]() ![]() ![]() ![]() ![]() |
Code rating: | |
Paper Quality: |
![]() ![]() |
2 comments |
Information more
![]() |
|
Categories: | DICOM, PointSet |
Keywords: | DICOM-RT, RTSTRUCT, Radiotherapy |
Toolkits: | ITK, CMake |
Export citation: |
Share
![]() |
Linked Publications more
![]() |
||
![]() by Padfield D., Miller J.
|
||
![]() by Vercauteren T., Pennec X., Perchant A., Ayache N.
|
View license
Loading license...
Send a message to the author

The code was developed & compiled on ITK 3.10.1 (patch 1) version that time and it hasn't been updated later for the later versions.
You may try compiling on the same ITK version:
http://sourceforge.net/projects/itk/files/itk/3.10/
Good Luck!