qurit / rt-utils

A minimal Python library to facilitate the creation and manipulation of DICOM RTStructs.
MIT License
191 stars 56 forks source link

How to create mask for tandem and ovoid? #60

Open Suman-c21 opened 1 year ago

Suman-c21 commented 1 year ago

We have tandem and ovoid in the brachytherapy. I have problem in creating a mask for tandem and ovoid using the rtutils. This package successfully load and create an existing RT structure contour as mask for OARs like Bladder, rectum, sigmoid and hrctv. But it gives and error for creating mask for tandem and ovoid. Could anyone help me in figuring out?

Thank you

asim-shrestha commented 1 year ago

What kind of dicom files are your tandem and ovoids found in? What error is it giving you?

Suman-c21 commented 1 year ago

Hi all

The error is shown below. The first attached figure shows the contour data and second shows the error displayed.

[image: image.png] [image: image.png]

With Best Regards

Suman Gautam

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 10/12/22, 09:47:35 AM

On Tue, Oct 11, 2022 at 10:14 PM Asim Shrestha @.***> wrote:

What kind of dicom files are your tandem and ovoids found in? What error is it giving you?

— Reply to this email directly, view it on GitHub https://github.com/qurit/rt-utils/issues/60#issuecomment-1275494816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBQPVVWVK36SHN27LAPK23WCYNHPANCNFSM6AAAAAAQ3WAHBQ . You are receiving this because you authored the thread.Message ID: @.***>

Suman-c21 commented 1 year ago

The error is AttributeError: 'Dataset' object has no attribute 'ContourImageSequence'

asim-shrestha commented 1 year ago

Are you loading an existing RTStruct or are you creating a new one?

Suman-c21 commented 1 year ago

I am loading the existing one.

With Best Regards

Suman Gautam

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 10/15/22, 07:51:53 AM

On Sat, Oct 15, 2022 at 1:53 AM Asim Shrestha @.***> wrote:

Are you loading an existing RTStruct or are you creating a new one?

— Reply to this email directly, view it on GitHub https://github.com/qurit/rt-utils/issues/60#issuecomment-1279669301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBQPVR2BGUMPZ7TN7Y5DGDWDJBGPANCNFSM6AAAAAAQ3WAHBQ . You are receiving this because you authored the thread.Message ID: @.***>

asim-shrestha commented 1 year ago

Is your RT Struct file properly constructed? Each ROI should have an associated contour sequence that has a contour image sequence with contour data per slice

Suman-c21 commented 1 year ago

Hi guys

I have the following error when getting the mask of the rectum from rtstructre and images files.

Could you please help me.

[image: rectu.PNG]

[image: reter1.PNG]

[image: reter2.PNG]

With Best Regards

Suman Gautam

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 10/31/22, 10:17:11 AM

On Mon, Oct 17, 2022 at 9:22 PM Asim Shrestha @.***> wrote:

Is your RT Struct file properly constructed? Each ROI should have an associated contour sequence that has a contour image sequence with contour data per slice

— Reply to this email directly, view it on GitHub https://github.com/qurit/rt-utils/issues/60#issuecomment-1281688802, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBQPVQH4U5I2ULDVVOGHKLWDX3VLANCNFSM6AAAAAAQ3WAHBQ . You are receiving this because you authored the thread.Message ID: @.***>

Suman-c21 commented 1 year ago

Hi Asim

Many of my dicom files are giving the above error? Do you know what is the problem with the files?

ValueError couldnot broadcast....

With Best Regards

Suman Gautam

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 11/21/22, 03:45:30 PM

asim-shrestha commented 1 year ago

Hi @Suman-c21, I can't actually see your images here. Can you send the full error code?

Suman-c21 commented 1 year ago

Capture

Suman-c21 commented 1 year ago

Hi

I have attached there and here also.

If you have any queries let me know.

[image: image.png]

With Best Regards

Suman Gautam

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 11/27/22, 12:10:12 PM

On Sun, Nov 27, 2022 at 1:48 AM Asim Shrestha @.***> wrote:

Hi @Suman-c21 https://github.com/Suman-c21, I can't actually see your images here. Can you send the full error code?

— Reply to this email directly, view it on GitHub https://github.com/qurit/rt-utils/issues/60#issuecomment-1328183128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOBQPVWWACNAWGGCWA6CBKTWKL75JANCNFSM6AAAAAAQ3WAHBQ . You are receiving this because you were mentioned.Message ID: @.***>