Match registered MR to RT Struct

33 views
Skip to first unread message

Ramón Emiliani

unread,
May 18, 2022, 4:09:59 PM5/18/22
to Plastimatch
Hi! I was trying to import some data to XNAT using an MR registered to a CT that has an associated RT Struct with some annotations. The upload for the RT Struct failed most probably because the Referenced SOP Instance UID point to the DICOM files of the CT and not the MR.

Assume I have an `input` folder with the MR (registered) DICOM series and the RT Struct that was created using the CT as reference. What I did was to first convert the RT-Struct to masks using plastimatch:

`plastimatch convert --input /input --output-prefix /output/mask`

After this I reconverted the masks generated to a DICOM series using:

`plastimatch convert --input /input/  --input-prefix /output/mask --output-dicom /output`

For this newly created DICOM series I had no problem and could upload to XNAT with the also created RT Struct. Could someone give me a good insight of what is happening under the hood? What would be the best way to associate the registered MR to the RT Struct without access to the CT.


Sharp, Gregory C.

unread,
May 18, 2022, 7:24:38 PM5/18/22
to Plastimatch
Hi Ramon,

Good question. Is /input the directory containing the DICOM MR? If so, I would think that should work. If it does not work, is there a data set you can share?

Nevertheless, there are options. To attach a structure set to an existing DICOM image, one would normally do something like this:

plastimatch convert --input-prefix prefix/ --output-dicom output-structs/ --referenced-ct mr-dicom/

The input-prefix directory should be in the same (or similar) geometry as the referenced-ct directory. Does this do as expected?

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Ramón Emiliani <ra...@afxmedical.com>
Sent: Wednesday, May 18, 2022 4:09 PM
To: Plastimatch
Subject: [Plastimatch] Match registered MR to RT Struct

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/7282e034-f459-4561-98a6-0db626e5c82dn%40googlegroups.com<https://secure-web.cisco.com/1pA9jUjnlC5dUeYQD8Eqbr3AXwOeaZ7H5I1gU1r6zymMqgsS2ALRrFNIcHw_nnQcCiR3p20l-7YhmlfM_wIw6fen4j_SqmLSIGmkOsL-11joWLYE8XiExLaDoIS0Bvt79uQjeie1SamNF671bV_0UktBLInFTC8aid5hq1mB47A6pHH4zLVq9xLbHmsDd-Es263Ez0ZzJYkmq5sfMC5QY4pbn9py9GzdCvfja5AzQWKCTUjqoGm9Xg9N2yoxBBDYcm97h9ud60p8SMT926jxeVHkmdLQ_rPOE5o8lVlmvUzBOlQzvxqDOU5c1WeMVvK0J9cNO-eLZKGxIX7pjRHAM4A/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F7282e034-f459-4561-98a6-0db626e5c82dn%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.

Ramón Emiliani

unread,
May 20, 2022, 11:15:14 AM5/20/22
to Plastimatch
Hi Greg, I appreciate your quick response.

Yes, the DICOM MR is inside the directory and the commands work. The only thing is that converting to mask and back makes the contours lose some quality on the process. The naive approach I tried was to overwrite the RT Structure file and match the tags to the registered image (for example `Referenced SOP Class UID` on the contour data). I was able to load the annotations and no quality was lost, though I am not sure if it is the best approach, seems a bit arbitrary. Would the best way be to construct a new RT Struct file? Does the plastimatch convert command cover this case? I feel more than conversion is just reconstructing the RT.

Sorry if the question feels a bit out of scope and I am grateful for your help.

Ramón

Sharp, Gregory C.

unread,
May 26, 2022, 3:31:24 PM5/26/22
to Plastimatch
Hi Ramon,

I'd have to take a look more deeply to see if this can be done directly from DICOM. I suspect it might work if you just dump the RTSTRUCT into the same directory as the MR and convert DICOM -> DICOM.

There is another option. There is a lossless contour-based text format called CXT. If you convert the RTSTRUCT to CXT (using --output-cxt option), then you convert back to DICOM as --input-cxt option with --referenced-ct set to the DICOM MR directory.

I hope that explanation was clear.
Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Ramón Emiliani <ra...@afxmedical.com>
Sent: Friday, May 20, 2022 11:15 AM
To: Plastimatch
Subject: Re: [Plastimatch] Match registered MR to RT Struct
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/7282e034-f459-4561-98a6-0db626e5c82dn%40googlegroups.com<https://secure-web.cisco.com/1Qx9LMwUv3h9P8ZIQQjAtJGA8nqWO1N-rAogk5qaF6V9z9L3AGwsWCJ1X1OKfpmIbXUaICDv-RplRY3bmRtCv_za_lyPFrunosfEDayKWmhEfhy8aeHTUBIvB_ip_Y0EYdwXEllV49RlQWfOWZni61lfwNg8K9BNKJTlUhrcjvFODi50lroAYbM8ny76uOPhoPqBQ_vEn1q7kC68PgsEulF0Zry23owBp1iAXDEe0Gnzn3M3sssMp0ZsW-COVMga5d9nUwhiXIfFTwn5P_RrHQhBH8f6yNpTbkC7h-21BiVPN7idcMkAn0xo93UMAFVcpAP5fdyJjW2zEzhhxunl_JA/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F7282e034-f459-4561-98a6-0db626e5c82dn%2540googlegroups.com><https://secure-web.cisco.com/1pA9jUjnlC5dUeYQD8Eqbr3AXwOeaZ7H5I1gU1r6zymMqgsS2ALRrFNIcHw_nnQcCiR3p20l-7YhmlfM_wIw6fen4j_SqmLSIGmkOsL-11joWLYE8XiExLaDoIS0Bvt79uQjeie1SamNF671bV_0UktBLInFTC8aid5hq1mB47A6pHH4zLVq9xLbHmsDd-Es263Ez0ZzJYkmq5sfMC5QY4pbn9py9GzdCvfja5AzQWKCTUjqoGm9Xg9N2yoxBBDYcm97h9ud60p8SMT926jxeVHkmdLQ_rPOE5o8lVlmvUzBOlQzvxqDOU5c1WeMVvK0J9cNO-eLZKGxIX7pjRHAM4A/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F7282e034-f459-4561-98a6-0db626e5c82dn%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://secure-web.cisco.com/1yT4VLSZ53iX5U_Mt4NIp52r62PmqhWOgNEw0dgxjGM28HD0U1PwW2wUV_rmXkfW2yhZdUQyWBLn_SYmj0dfU-wFWIDVeZUUR8tv-Guq7IcZdGlLg9hNpSuba0GBYEQlKCiyWUOIwl_Cb89Mr7s3DkdXVhB46T9AFp9AhGsBJXmgUD-6PzmFYHnittdV35KljZEY25ciVRgGv0FCzQ7g__wjrlk7XG7iRXJMW0LLJR5qFPQQ6JZqVbK0VCtcmdW9nU0QTMeYn_R2gzL9TD8yd2-FaVNQj4SAdpLUI0RQiHuIqhhVPxYCl9rGrJ7LbCzvjBd2eD4BpV0D-z5s6eL0qDA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1yT4VLSZ53iX5U_Mt4NIp52r62PmqhWOgNEw0dgxjGM28HD0U1PwW2wUV_rmXkfW2yhZdUQyWBLn_SYmj0dfU-wFWIDVeZUUR8tv-Guq7IcZdGlLg9hNpSuba0GBYEQlKCiyWUOIwl_Cb89Mr7s3DkdXVhB46T9AFp9AhGsBJXmgUD-6PzmFYHnittdV35KljZEY25ciVRgGv0FCzQ7g__wjrlk7XG7iRXJMW0LLJR5qFPQQ6JZqVbK0VCtcmdW9nU0QTMeYn_R2gzL9TD8yd2-FaVNQj4SAdpLUI0RQiHuIqhhVPxYCl9rGrJ7LbCzvjBd2eD4BpV0D-z5s6eL0qDA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
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.


--
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/98a2ed5e-9e01-4031-ae86-fe45f1dadbf8n%40googlegroups.com<https://secure-web.cisco.com/1eObNhvhZt8xBiTXgWyjtWXYQA57oqiC2REUXgtXa3fo6LQLzei47HAp322vnK0mARV4uJNd2j0Fn1peFAsKKKaf2kjI2zIRSN1ulRuJndjWQPR4LrnBooK9FJZkETSadzQsy-LUNEPHxZLMfij2HCoU3OJrSOL6acnh47aIG94GRylUUZ9qk6J_723Bk0UOYyjPWPGZaRxpVxNfplTCpAdM7hI9ZvkP-YvAPSLuyIKpsxx4rfyj0jn4s0GQxXPy2VHeNiuoOcANO6DqZ_euVEBaDsLyFBrNhKLXYNa4q82hd2n8bOs_1qlK3H_vdErXqXyBikC04aNNI1hNha4n1IQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F98a2ed5e-9e01-4031-ae86-fe45f1dadbf8n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
Reply all
Reply to author
Forward
0 new messages