Yes, RT structures are a set of polylines. The plastimatch
converter can indeed convert images to polylines for making RT structs.
I have never tried import to Eclipse, but I guess it should be ok.
Here are some hints:
(1) You specify that a.nrrd is a "structure set image" on the command
line, like this:
plastimatch convert --input-ss-img a.nrrd --output-dicom foo
(2) The structure set image needs to be in a special format: each voxel
should be a 32-bit unsigned int, where each bit of the unsigned int
marks if the voxel is contained in one of (up to) 32 separate
structures. If your image isn't in this format, it won't work easily.
(3) In order to set the correct names for the structures, you can
supply a "ss list" file, like this:
plastimatch convert --input-ss-img a.nrrd --input-ss-list a.txt
An example of the ss list format is like this:
0|255\0\0|Patient
1|127\127\0|Tumor
2|0\255\0|R Lung
The first column is the "bit number" within the 32-bit unsigned integer.
The second column is the RGB values for the structure color.
The third column is the name of the structure.
(4) In order for the RT structure set to load in a commercial system,
you (almost always) have to match DICOM UIDs. This means that you need
to tell plastimatch which CT image the structure set should be attached
to. If your CT image is in the directory "my_ct", you do it like this:
plastimatch convert --input-ss-img a.nrrd --dicom-dir my_ct
If it is a newly created CT, you can create both at the same time:
plastimatch convert --input ct.nrrd --input-ss-img a.nrrd \
--output-dicom foo
I also had problems with images created with ITK-based programs such
as 3D Slicer. The most common reasons are: (a) images are not defined
as CT modality, (b) they are missing SliceThickness tag, or (c) they are
missing slope/offset tags. Plastimatch CT images are more likely to
work correctly, but I don't have Eclipse, so unfortunately I can't test.
-Greg
Your understanding of the process seems to be perfect.
I followed the same procedure, and got the same results.
The problem was a bug in plastimatch which I fixed. Could you
update and retry?
Regarding the question of inspecting the DICOM-RT structure
sets, I also sometimes create images like you did. The
other method that I use is "dcmdump". The actual contours
are stored in a section which looks like this:
(3006,0042) CS [CLOSED_PLANAR] # 14, 1 ContourGeometricType
(3006,0046) IS [591] # 4, 1 NumberOfContourPoints
(3006,0050) DS [17.7731\123.779\-187.5\16.5036\123.779\-187.5\15.234\123.779\-187....
If you don't find these sections, you will know that the contours
weren't created. You can also find things like contour names, etc.
-Greg
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Hi Bhawna,
Which XML schema would be appropriate for this task?
Greg
From: plast...@googlegroups.com [mailto:plast...@googlegroups.com]
On Behalf Of Bhawna
Sent: Wednesday, August 27, 2014 7:29 PM
To: plast...@googlegroups.com
Cc: yi....@gatech.edu
Subject: [Plastimatch] Re: binary nrrd file to RTStruct (it's a polyline type of structure, right?)
Hello everyone,
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
plastimatch...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.