You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the assumption is that after creating the Segmentation object, the references are still orderd like the images and the labelmaps. However, Normalizer sorts the images by physical position, resulting in mixing of the labelmaps in the stack.
I think the problem is really in the fillSegmentation method that assumes same ordering as in segmentation object. The inputLabelmaps3D object does not have enough information, as this depends on the ordering of the images in the viewer. A solution would be to provide a map that maps from the labelmap indices to the referenced SOPInstanceUIDs, and the let fillSegmentation sort it out.
dcmjs/src/adapters/Cornerstone/Segmentation_4X.js
Line 61 in e2a877b
Here the assumption is that after creating the Segmentation object, the references are still orderd like the images and the labelmaps. However, Normalizer sorts the images by physical position, resulting in mixing of the labelmaps in the stack.
See also the discussion in issue #144
The text was updated successfully, but these errors were encountered: