Exporting Contours to DICOM-RT Structure Set

Please use this identifier to cite or link to this publication: http://hdl.handle.net/1926/1521
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.
There is no code review at this time.

plus Good implementation of "old" way of doing things by Dan Mueller on 2009-01-30 05:30:07 for revision #4
starstarstarstarstar expertise: 3 sensitivity: 5
Add a new review
Quick Comments
Comment by Subrahmanyam Gorthi yellow
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:

Good Luck!
Comment by Artem Mamonov yellow
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.

Download All
Download Paper , View Paper
Download Source code

Statistics more
Global rating: starstarstarstarstar
Review rating: starstarstarstarstar [review]
Code rating:
Paper Quality: plus minus

Information more
Categories: DICOM, PointSet
Keywords: DICOM-RT, RTSTRUCT, Radiotherapy
Toolkits: ITK, CMake
Export citation:


Linked Publications more
Diffeomorphic Demons Using ITK's Finite Difference Solver Hierarchy Diffeomorphic Demons Using ITK's Finite Difference Solver Hierarchy
by Vercauteren T., Pennec X., Perchant A., Ayache N.
Reader/Writer for Analyze Object Maps for ITK Reader/Writer for Analyze Object Maps for ITK
by Hawley J., Johnson H.

View license
Loading license...

Send a message to the author
ISSN 2327-770X
Powered by Midas