qurit / rt-utils

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

ValueError: could not broadcast input array from shape (512,512) into shape (156,105) #62

Open Suman-c21 opened 1 year ago

Suman-c21 commented 1 year ago

rectu reter1 reter2

IgnacioHernandezAbad commented 1 year ago

I have this type of error too, did anyone found a way to solve it? Thanks!!

edwardwang1 commented 1 week ago

I had this issue as well, and in my case it's because the RTDose file was in the same parent folder as my CT and RTStruct files. My RTDose files have different dimensions than the CT scan, and for some reason rt-utils was grabbing the rows and columns from the dose rather than the CT. To fix this, I just removed my dose file from the parent folder.

Parent folder --CT1 --CT2 --RD --RS