Custom Photon Block?

19 views
Skip to first unread message

Zach Carter

unread,
Apr 15, 2019, 10:05:09 PM4/15/19
to dicompyler
Hello,

I am in need of creating a custom photon block for a research project for a Varian 21IX linac in Eclipse. I need to algorithmically create various shapes and create a block with these shapes. In Eclipse, the only way to make a block is to "Fit to structure" which is not accurate enogh geometrically for my purposes, and the only other way is to manually place a single circle or a single rectangle in the field, and no more than one aperture.

Is anyone aware of a way to edit RT Plans with dicompyler or another software such that you can create a photon block in python and write it into the RT plan file? And Eclipse will read it?

Thanks,

Zach

Andrew Miller

unread,
Apr 15, 2019, 10:36:32 PM4/15/19
to dicom...@googlegroups.com
Have you had a rummage around Slicer3D?

A

--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en
---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Darcy Mason

unread,
Apr 16, 2019, 11:23:55 AM4/16/19
to dicompyler
You could just use pydicom - all DICOM (including DICOM-RT) is the same, so you could add your coordinates directly with python code.  Not sure what exactly Eclipse would accept, but valid DICOM according to the standards documents should work.

Aditya Panchal

unread,
Apr 17, 2019, 11:13:32 PM4/17/19
to dicom...@googlegroups.com
Darcy is right. Using pydicom is probably the easiest way to accomplish that. If you wanted to distribute it, you could turn that Python code into a dicompyler plugin, but if it's for internal use, a Python script should suffice.

--

Zach Carter

unread,
Apr 18, 2019, 2:01:26 PM4/18/19
to dicompyler
Thank you all for the suggestions! I was able to create a block with the pattern that I want using pydicom. The only issue is with the multiple apertures. The dicom standard says that the BlockData is a list of the (x,y) coordinates of the edges of the shape, but it is interpreted as a closed polygon. I want a single block with multiple closed polygons enclosed (multiple apertures). Eclipse is able to do this using the freehand tool, so it must be possible. When I import my block into eclipse, the edges of my apertures are there but they are not open in the correct places. It drew lines between all of the apertures instead of having each one be an individual aperture.  This could just be an issue with the way I am defining the coordinates.

Thank you for your help.


On Wednesday, April 17, 2019 at 11:13:32 PM UTC-4, Aditya Panchal wrote:
Darcy is right. Using pydicom is probably the easiest way to accomplish that. If you wanted to distribute it, you could turn that Python code into a dicompyler plugin, but if it's for internal use, a Python script should suffice.

On Tue, Apr 16, 2019 at 10:23 AM Darcy Mason <darcy...@gmail.com> wrote:
You could just use pydicom - all DICOM (including DICOM-RT) is the same, so you could add your coordinates directly with python code.  Not sure what exactly Eclipse would accept, but valid DICOM according to the standards documents should work.


On Monday, April 15, 2019 at 10:05:09 PM UTC-4, Zach Carter wrote:
Hello,

I am in need of creating a custom photon block for a research project for a Varian 21IX linac in Eclipse. I need to algorithmically create various shapes and create a block with these shapes. In Eclipse, the only way to make a block is to "Fit to structure" which is not accurate enogh geometrically for my purposes, and the only other way is to manually place a single circle or a single rectangle in the field, and no more than one aperture.

Is anyone aware of a way to edit RT Plans with dicompyler or another software such that you can create a photon block in python and write it into the RT plan file? And Eclipse will read it?

Thanks,

Zach

--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicom...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en

---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicom...@googlegroups.com.

Aditya Panchal

unread,
Apr 18, 2019, 2:05:41 PM4/18/19
to dicom...@googlegroups.com
Sounds like you are on the right track.

If Eclipse is able to do it, can you inspect the coordinate data in the DICOM RT Plan when making the shapes via the freehand tool?

-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en

---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages