Additional segments appearing in segment representations

I think I have found a bug where segments are not displaying properly.

In one scenario I have a segment that includes both the left kidney and the spleen. I then separate this into two seperate segments. Both of these segments display as expected. However if I create a new segment and copy of one of the split segments into it using the command ‘DeepCopy’ the new segment now displays both of the split segments at once…

image

In this image only the segment ‘left kidney - temporary copy’ should be visible. It is displayed correctly in the 3D representation but not in the 2D slices. In the image the segment name can be seen in the data probe but if the mouse pointer is moved over the 2D representation of the spleen no segment name/information can be seen.

In this second image the segments were loaded from an RTStruct file and converted into a binary labelmap. When a copy of one of the segments is again created using DeepCopy, multiple ‘ghost’ segments can be seen (the number is dependent on the segment copied) even though only the ‘Left Kidney 1 - temporary copy’ segment should be visible. It is notable in this image that the although the spleen and right kidney are both ‘ghosts’, they have very different appearences.

Testing has confirmened that the ghost segments appear when the ‘DeepCopy’ line is run. I am using r28683.

I started trying to make a workaround by using ‘DeepCopyMetadata’ and creating new representations for the copied segments but haven’t got it working yet. Presumably it shouldn’t really be necessary.

Thanks for reporting this issue!
I’m working on a fix, and will let you know when it’s integrated.

1 Like

@dominicrushforth This issue should be fixed in the latest nightly.

Thanks. It’s seriously impressive how you guys fix things so quickly.

3 Likes