@cornerstonejs/adapters 1.58.2 → 1.58.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49277,11 +49277,6 @@ function generateContourSetsFromLabelmap$2({
49277
49277
  return;
49278
49278
  }
49279
49279
  const numSlices = vol.dimensions[2];
49280
- const imageVol = cache$1.getVolume(vol.referencedVolumeId);
49281
- if (!imageVol) {
49282
- console.warn(`No volume found for ${vol.referencedVolumeId}`);
49283
- return;
49284
- }
49285
49280
  const segData = vol.imageData.getPointData().getScalars().getData();
49286
49281
  const pixelsPerSlice = vol.dimensions[0] * vol.dimensions[1];
49287
49282
  for (let z = 0; z < numSlices; z++) {
@@ -49294,7 +49289,7 @@ function generateContourSetsFromLabelmap$2({
49294
49289
  const ContourSets = [];
49295
49290
  const {
49296
49291
  FrameOfReferenceUID
49297
- } = imageVol.metadata;
49292
+ } = vol.metadata;
49298
49293
  const numSegments = segments.length;
49299
49294
  for (let segIndex = 0; segIndex < numSegments; segIndex++) {
49300
49295
  const segment = segments[segIndex];
@@ -49340,7 +49335,6 @@ function generateContourSetsFromLabelmap$2({
49340
49335
  if (reducedSet.points?.length) {
49341
49336
  const contours = findContoursFromReducedSet(reducedSet.lines);
49342
49337
  sliceContours.push({
49343
- referencedImageId: imageVol.imageIds[sliceIndex],
49344
49338
  contours,
49345
49339
  polyData: reducedSet,
49346
49340
  FrameNumber: sliceIndex + 1,
@@ -49354,7 +49348,6 @@ function generateContourSetsFromLabelmap$2({
49354
49348
  }
49355
49349
  }
49356
49350
  const metadata = {
49357
- referencedImageId: imageVol.imageIds[0],
49358
49351
  FrameOfReferenceUID
49359
49352
  };
49360
49353
  const ContourSet = {
@@ -49911,7 +49904,7 @@ function findMinimumRegions(dotValues, handleCount) {
49911
49904
  length
49912
49905
  } = dotValues;
49913
49906
  if (deviation < 0.01 || length < handleCount * 3) {
49914
- return [0, Math.floor(length / 3), Math.floor(length * 2 / 3)];
49907
+ return [];
49915
49908
  }
49916
49909
  const inflection = [];
49917
49910
  let pair = null;