Closed GoogleCodeExporter closed 9 years ago
This seems to be a new issue, in that the error seems to be that the RT
Structure Set does does not have a color for ROI #26 - ant avoid. Could you
please check Pinnacle to see what color is assigned to this structure?
Also, try the test dataset from the website to see if the your install works
properly.
If there is no color assigned to the structure (or not present in the RT
Structure Set file), we can add a function that will automatically generate a
random color for the structure for display. That should take care of the
problem.
Original comment by bastula
on 21 Feb 2011 at 2:59
I was able to replicate this issue by deleting ROIDisplayColor in one of the
structures in the testdata.
The fix will be as described above: generating a random color if
ROIDisplayColor does not exist.
Original comment by bastula
on 21 Feb 2011 at 4:16
Thanks fellas, that is the problem. The structures do have a colour assigned
(one is automatically assigned when you create one in Pinnacle, but the display
was turned off when exported.
The solution to assign a random colour if none is assigned corrects the defect.
ALSO ....
I noticed that with the many structures generated, there was no scroll bar in
the left panel on the viewer when set to structures. Some were not visible as
they were off the page.
A
Original comment by alexisan...@gmail.com
on 21 Feb 2011 at 11:53
Yes, that is a known bug as well, but undocumented. I created a custom control
for the checkboxlist so that it has colors on the side. For some reason, the
scrollbar never shows up.
I am not sure if I will fix it, yet, as I have been thinking about
alternatives, since in the future the left bar may go away and become a
treeview.
Original comment by bastula
on 22 Feb 2011 at 12:03
Given that there are so many names appearing, it would be nice if there was a
division between the seen and unseen. Something where you ticked something to
view and then it appeared in a selected tree or panel. Just a suggestion.
A
Original comment by alexisan...@gmail.com
on 22 Feb 2011 at 1:04
Currently, the structures that are checked do appear in the dropdown control in
Structure Information below the structure list. We can consider what you
described when we redo the structure list.
Original comment by bastula
on 22 Feb 2011 at 3:08
This issue was closed by revision 3a63c33c50.
Original comment by bastula
on 23 Feb 2011 at 3:56
I tried updating (hg update in the correct directory) but there was no new file
coming across. My problem? Or something at your end?
Original comment by alexisan...@gmail.com
on 23 Feb 2011 at 8:35
Did you try hg pull first?
Original comment by bastula
on 23 Feb 2011 at 8:39
that's better, now it loads. Don't get any DVH data though. At least can
make anonymous and email you Dropbox link to see
A
Original comment by alexisan...@gmail.com
on 23 Feb 2011 at 8:56
Great! I will be working on independent DVH calculation next week during my
spring break.
Original comment by bastula
on 23 Feb 2011 at 8:58
Confirming this occurred for plans imported from Tomotherapy. My fix was to
modify GetStructures() in dicomparser. It doesn't seem to matter what color is
initially assigned to the ROI:
#BPT March 2011
#Check to see of ROIDisplayColor exists
if "ROIDisplayColor" in roi:
structures[number]['color'] = np.array(roi.ROIDisplayColor, dtype=float)
else: #create color
structures[number]['color']= np.array([255,255,0])
Original comment by bton...@gmail.com
on 3 Mar 2011 at 9:20
Hi Brian,
Thanks for reporting this regarding Tomotherapy data.
Is this issue resolved for you if you apply the changeset from r3a63c33c50? It
seems similar to the fix you suggested, except that it uses a random color for
each structure.
Original comment by bastula
on 3 Mar 2011 at 11:16
I had made the change before I saw that you were addressing the problem, so I
wanted to note that a fixed RGB assignment seems to "work".
The "random" approach should also work. It seems that the actual display colors
are set at display time, since assigning a fixed ROI color does not actually
produce ROI's that display in the same color.
Original comment by bton...@gmail.com
on 4 Mar 2011 at 8:03
Original issue reported on code.google.com by
alexisan...@gmail.com
on 21 Feb 2011 at 7:13