RTSTRUCT
The mandatory modules contained by the RTSTRUCT are presented in Table 1. These modules are grouped based on the type of information entity that they represent. Here is a brief description of each of these modules:
[2] contains a comprehensive documentation of the DICOM standard covering all the modules. Refer to [1] for a brief summary of the RTSTRUCT.

Table 1: Mandatory Modules of RTSTRUCT.
Implementation
Figure 1 illustrates the pipeline that we use for exporting the automated segmentation results to RTSTRUCT format. It mainly contains three steps: Automated Segmentation, Mask to Contour Conversion and RTSTRUCT-Exporter.

Figure 1: Block diagram illustrating the pipeline for exporting the automated segmentation results to RTSTRUCT.
The inputs to the RTSTRUCT-Exporter are:
All of these parameters are passed to the RTSTRUCT-Exporter through a text file.
Example
The DICOM CT image used in this paper is acquired during routine clinical practice at Divisions of Radiotherapy, Fribourg Hospital (HFR) in Switzerland. The image is acquired on GE Medical System (Model: LightSpeedRT16). The size of each slice is 512 × 512 pixels with a spacing of 1.27 mm × 1.27 mm; the inter-slice distance is 2.5 mm. There are 116 slices in total.
Since we are interested only in the first 83 slices of the patient’s image, the original DICOM image is cropped in the Z-direction to contain only these slices, and a new image file (with .mhd extension) is created. The image is then thresholded in selected regions for removing the bed and other immobilization devices. Figure 2 shows the thresholded image. We created separate masks for the external-contour and bones through simple windowing of the image, as shown in Figure 2. These masks are shown in Figures 3 and 4. The contours of these masks are obtained using the “Mask to Contour Convertor”. The contour data, along with a slice of the DICOM CT image and other information, is passed to the RTSTRUCT-Exporter using a parameter-file. Figure 5 shows the resultant RTSTRUCT file superposed over the original DICOM CT image.
Conclusions & Future Work
An ITK implementation of the RTSTRUCT-Exporter is presented. The details of the pipeline used and description of each module in the pipeline is presented. The implementation is validated on a 3D CT image, by exporting the ROIs of the external-contour and bones to RTSTRUCT format.
We would also like to mention the recent work of Dowling et al. [4] that presents a method to do the reverse, i.e., importing the contours from the RTSTRUCT. It would be interesting to integrate these two implementations. RTSTRUCT-Exporter is currently tested only on the DICOM CT images acquired from a GE Medical System (Model: LightSpeedRT16). A thorough testing on more images, acquired from various manufacturers and models, will make it more robust.

Figure 2: Sagittal, Coronal and Axial views of the 3-D CT image of the Patient. This is a cropped image containing
only the first 83 slices of the original image.

Figure 3: Sagittal, Coronal and Axial views of the mask for external-contour of the 3-D CT image.

Figure 4: Sagittal, Coronal and Axial views of the mask for bones of the 3-D CT image.

Figure 5: A screen-shot showing the contours of the external-contour and bones in the RTSTRUCT file,
superposed over the original DICOM CT image.
Acknowledgments
This work is supported in part by the Swiss National Science Foundation under Grant 3252B0-107873, 205321-124797, and by the Center for Biomedical Imaging (CIBM) of the Geneva--Lausanne Universities and the EPFL, as well as the foundations Leenaards and Louis-Jeantet. We thank Dr. A. S. Allal, Dr. Pierre-Alain Tercier and Dr. Pachoud Marc for providing us the data and helping us in testing. We thank Mathieu Malaterre for his valuable suggestions.
References
[1] S. Gorthi, M. Bach Cuadra, and J.-P. Thiran, “Exporting contours to DICOM-RT Structure Set,” Insight Journal, 2009.
[Online] hdl.handle.net/1926/1521
[2] “DICOM home page.” [Online] http://medical.nema.org/
[3] Z. Pincus, “ContourExtractor2DImageFilter: A subpixel-precision image isocontour extraction filter,” Insight Journal, 2006.
[Online] hdl.handle.net/1926/165
[4] J. Dowling, M. Malaterre, P. B. Greer, and O. Salvado, “Importing contours to DICOM-RT Structure Sets,” Insight Journal, 2009.
[Online] hdl.handle.net/10380/3132
Subrahmanyam Gorthi is currently pursuing his PhD at Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland. His research interests include medical image registration, segmentation and variational methods in image analysis.
Dr. Meritxell Bach Cuadra is currently with the Signal Processing Core of the Biomedical Imaging Center (CIBM), responsible for signal processing research at the Lausanne University Hospital (CHUV). Her main research interests are related to magnetic resonance (MR) and diffusion MR imaging, atlases, registration, segmentation, and classification.
Dr. Jean-Philippe Thiran is currently an Assistant Professor at Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland. His research interests include image segmentation, prior knowledge integration in image analysis, partial differential equations and variational methods in image analysis, multimodal signal processing, medical image analysis, including multimodal image registration, segmentation, computer-assisted surgery, and diffusion MRI.