Custom rasterization in RTStruct from coronal MR images

30 views
Skip to first unread message

MatGoDro

unread,
Jan 19, 2023, 10:48:27 PM1/19/23
to Plastimatch
Hello all, 

We are trying to convert a RTStruct to a .mha file using Plastimatch. The RTStruct is linked to MR images with coronal orientation. As shown below, the geometry is well understood from PIH. However, it seems like the transformation is not applied to the rasterization geometry and the resulting warp is wrong. 

Does someone know an easy fix for this? 

Thanks ! 

 
Loading RDD
Loading RDD complete
Found RTSTUCT, UID=1.2.246.352.205.5444169130388358802.14782284185064941716
Found DCM_ReferencedFrameOfReferenceSequence!
Found DCM_RTReferencedStudySequence!
Trying to load rt structure set.
Adding structure (2), GTV
Structure 2 has color 255\0\0
Setting PIH from RDD
PIH is:
Origin = -170.63 -13.8712 -13.8712
Size = 256 256 25
Spacing = 1.40625 1.40625 4.8
Direction = 1 0 0 0 0 -1 -0 1 0
Rt_study_warp: Convert ss_img to cxt.
Rt_study_warp: Apply dicom_dir.
Rt_study_warp: Set geometry from PIH.
Rt_study_warp: Set rasterization geometry.
Warning, slice spacing of RTSS may be unequal
-21.51 - -22.18 = 0.67 vs. 0.35
Warning, slice spacing of RTSS may be unequal
-19.8 - -20.62 = 0.820002 vs. 0.35
Warning, slice spacing of RTSS may be unequal
-9.47 - -10.08 = 0.61 vs. 0.35
Warning, slice spacing of RTSS may be unequal
-2.33 - -2.92 = 0.59 vs. 0.35
Warning, slice spacing of RTSS may be unequal
-1.56 - -2.33 = 0.77 vs. 0.35
Warning, slice spacing of RTSS may be unequal
-0.54 - -1.56 = 1.02 vs. 0.35
Warning, slice spacing of RTSS may be unequal
2.35 - 1.2 = 1.15 vs. 0.35
Warning, slice spacing of RTSS may be unequal
7.81 - 7.22 = 0.59 vs. 0.35
Warning, slice spacing of RTSS may be unequal
10.31 - 9.74 = 0.570001 vs. 0.35
rast_dim = 512 512 133
rast_offset = -101.315 32.105 -23.44
rast_spacing = 0.0922852 0.0922852 0.35
Rt_study_warp: warp and save ss.
Warp_and_save_ss: seg->rasterize
Rasterizing...
Converting...
Finished rasterization.
Warp_and_save_ss: save_ss_img
save_ss_img: save_prefix

Sharp, Gregory C.

unread,
Feb 2, 2023, 4:45:45 PM2/2/23
to Plastimatch
Hi Mathieu,

Sorry for the delay in response. Regrettably, this is a known limitation.

The first workaround I can think of is 3D Slicer, but I cannot guarantee. If you are able workaround please post to the list.

Fixing plastimatch to work on these images would be good. Would you be able to share an anonymized data set?

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of MatGoDro <gaudreaul...@gmail.com>
Sent: Thursday, January 19, 2023 10:48 PM
To: Plastimatch
Subject: [Plastimatch] Custom rasterization in RTStruct from coronal MR images

External Email - Use Caution
--
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<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/96d20243-a1ba-4711-aca8-50034257c652n%40googlegroups.com<https://secure-web.cisco.com/1Z98b6xruLo9xOtRovv06zEjdXmtMPfw5o5d5RG3I8_ZCNCkfu_od9liReRqDxWI-F_KxNM3RyiwDiWzuJ96-GWyaL1B4cUja2ghKT83PQmywJqTYvjqKPSqAondXjB4CIpBa13vTOYBdfAdFeKlAMPUVqUX5bb6NHh-g-vRxqzoONg3YbVjDubOua0VzgXP18z0QkwR-pyLtG_1YMICeTaMHDj2VQNRvrVkyfXqzrXyFP2SbrUpGiYcaWiu672UYhSBG-5X9_3nLAOJ40otb7DpNmzibsd3B6PYAuBIKR0XIFo0OLgiETZqTuShqvTblf4XDJrH1qAlKFnJztq7bBA/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F96d20243-a1ba-4711-aca8-50034257c652n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
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 Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

Reply all
Reply to author
Forward
0 new messages