Convert 3D dose distribution to DICOM RT dose

I send the links again. The first link is for voxel dose distribution, the second one is for 3D dose distribution.

Indeed the geometry is not contained by these files. You will probably need to export them seperately as @Hamburgerfinger mentioned above.

The files otherwise seem to be straightforward to load, it should be easy to write an importer.

What do you mean by geometry, please? Is the geometry file (phantom) used for simulation? if so here is the link to it:

I think the easiest way to plot the DVH is by using the DICOM RT dose file. My idea is to use the original DICOM RT dose file and replace the dose distribution by the data obtained from MC simulation. By the way, I use for simulation the code Penelope/penEasy.
Is there a way to do that with Slicer, please?

So it looks like you have the ‘region labels’ in the left column, where you have 5 different regions defined (it looks like they have been defined by thresholding of CT data), see Labelmap.png, attached. Here 5 is red, 4 is magenta, 3
is blue, 2 is green, and 1 is yellow.

Then in the right column, you have the density in each voxel; see Density.png, attached.

So yes in principle this is the geometry you need to define as a segmentation in Slicer for DVH. One issue is, in your region label map, bone for instance mostly has a region label of ‘5’ but there are other non-bone structures that also
have this label; soft tissue mostly has a region label of ‘4’ but there are other non-tissue structures with this label also; etc. So you could use these regions for DVH, but there will be some error due to the other non-tissue structure with the same labels
in your dataset.

To fix this, you could import the data in the left column into Slicer as a segmentation, and edit it in the segment editor, and then use for DVH. Or you could import the density map (or, better, use the CT it was derived from) segment
the regions of interest, and use that for DVH.

Thank you very much for these explanation.
In fact the region of interest is a small volume in the soft tissue region defined in the DICOM files. I want to use this region for DVH. For that I want to convert my file to DICOM file.

If you have means to convert this to any type of file that can be read from Slicer (nrrd, nifti, mha, etc.), then your problem is solved. Otherwise a reader needs to be implemented for this file format.

Hello cpinter,

I just read the discussion. I am looking for an Viewer/ Reader which is able to handle .3ddose files from DOSXYZnrc. Is it possible to Import and visualize .3ddose files and maybe convert them to DICOM RT files for further comparisons in a Treatment planning system?

Kind regards, bode

Yes. Have the SlicerRT extension installed, drag&drop the 3ddose file onto Slicer, then do DICOM export as usual:

That said you can do comparisons using SlicerRT. It has DVH and gamma comparison tools.