fix(seg): multiframe SEG (#4890)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2025-03-27 15:52:22 -04:00
1 parent 2acc878f26
commit 892d03fc3c
12 files changed
+210 -205

No files matched your search

@@ -177,8 +177,13 @@ async function _loadSegments({
throw new Error('referencedDisplaySet is missing for SEG');
}
const { instances: images } = referencedDisplaySet;
const imageIds = images.map(({ imageId }) => imageId);
let { imageIds } = referencedDisplaySet;
if (!imageIds) {
// try images
const { images } = referencedDisplaySet;
imageIds = images.map(image => image.imageId);
}
// Todo: what should be defaults here
const tolerance = 0.001;