@cornerstonejs/tools 1.57.2 → 1.58.1
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.
- package/dist/cjs/drawingSvg/drawPath.js +1 -1
- package/dist/cjs/drawingSvg/drawPath.js.map +1 -1
- package/dist/cjs/enums/WorkerTypes.d.ts +1 -1
- package/dist/cjs/enums/WorkerTypes.js +1 -1
- package/dist/cjs/enums/WorkerTypes.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.d.ts +17 -0
- package/dist/cjs/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.js +112 -0
- package/dist/cjs/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.d.ts +3 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.js +4 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.d.ts +8 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.js +121 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.js +73 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.js +25 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.d.ts +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.js +41 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.js +2 -2
- package/dist/cjs/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.js +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.js +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.js +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/computeAndAddRepresentation.js +1 -1
- package/dist/cjs/stateManagement/segmentation/polySeg/computeAndAddRepresentation.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js +2 -0
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/getToolGroupForViewport.d.ts +1 -1
- package/dist/cjs/store/ToolGroupManager/getToolGroupForViewport.js +5 -0
- package/dist/cjs/store/ToolGroupManager/getToolGroupForViewport.js.map +1 -1
- package/dist/cjs/tools/base/BaseTool.js +3 -0
- package/dist/cjs/tools/base/BaseTool.js.map +1 -1
- package/dist/cjs/tools/base/ContourSegmentationBaseTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Contour/contourDisplay.js +13 -5
- package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.js +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -1
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.d.ts +1 -0
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js +17 -0
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Surface/addOrUpdateSurfaceToElement.js +4 -47
- package/dist/cjs/tools/displayTools/Surface/addOrUpdateSurfaceToElement.js.map +1 -1
- package/dist/cjs/tools/displayTools/Surface/surfaceDisplay.d.ts +3 -9
- package/dist/cjs/tools/displayTools/Surface/surfaceDisplay.js +7 -148
- package/dist/cjs/tools/displayTools/Surface/surfaceDisplay.js.map +1 -1
- package/dist/cjs/types/PolySeg.d.ts +1 -1
- package/dist/cjs/utilities/contourSegmentation/addContourSegmentationAnnotation.js +4 -1
- package/dist/cjs/utilities/contourSegmentation/addContourSegmentationAnnotation.js.map +1 -1
- package/dist/cjs/utilities/contourSegmentation/removeContourSegmentationAnnotation.js +3 -0
- package/dist/cjs/utilities/contourSegmentation/removeContourSegmentationAnnotation.js.map +1 -1
- package/dist/cjs/utilities/math/polyline/getAABB.d.ts +3 -1
- package/dist/cjs/utilities/math/polyline/getAABB.js +30 -4
- package/dist/cjs/utilities/math/polyline/getAABB.js.map +1 -1
- package/dist/cjs/utilities/planar/index.d.ts +3 -1
- package/dist/cjs/utilities/planar/index.js +4 -1
- package/dist/cjs/utilities/planar/index.js.map +1 -1
- package/dist/cjs/utilities/planar/isPlaneIntersectingAABB.d.ts +1 -0
- package/dist/cjs/utilities/planar/isPlaneIntersectingAABB.js +32 -0
- package/dist/cjs/utilities/planar/isPlaneIntersectingAABB.js.map +1 -0
- package/dist/cjs/utilities/segmentation/getUniqueSegmentIndices.d.ts +3 -1
- package/dist/cjs/utilities/segmentation/getUniqueSegmentIndices.js +97 -47
- package/dist/cjs/utilities/segmentation/getUniqueSegmentIndices.js.map +1 -1
- package/dist/cjs/workers/polySegConverters.js +73 -0
- package/dist/cjs/workers/polySegConverters.js.map +1 -1
- package/dist/esm/drawingSvg/drawPath.js +1 -1
- package/dist/esm/drawingSvg/drawPath.js.map +1 -1
- package/dist/esm/enums/WorkerTypes.js +1 -1
- package/dist/esm/enums/WorkerTypes.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.js +91 -0
- package/dist/esm/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.js +4 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.js +105 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.js +72 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.js +21 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.js +26 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.js +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/computeAndAddRepresentation.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/computeAndAddRepresentation.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js +2 -0
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupForViewport.js +4 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupForViewport.js.map +1 -1
- package/dist/esm/tools/base/BaseTool.js +3 -0
- package/dist/esm/tools/base/BaseTool.js.map +1 -1
- package/dist/esm/tools/base/ContourSegmentationBaseTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js +13 -5
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js +1 -1
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -1
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js +17 -0
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Surface/addOrUpdateSurfaceToElement.js +3 -46
- package/dist/esm/tools/displayTools/Surface/addOrUpdateSurfaceToElement.js.map +1 -1
- package/dist/esm/tools/displayTools/Surface/surfaceDisplay.js +8 -139
- package/dist/esm/tools/displayTools/Surface/surfaceDisplay.js.map +1 -1
- package/dist/esm/utilities/contourSegmentation/addContourSegmentationAnnotation.js +4 -1
- package/dist/esm/utilities/contourSegmentation/addContourSegmentationAnnotation.js.map +1 -1
- package/dist/esm/utilities/contourSegmentation/removeContourSegmentationAnnotation.js +3 -0
- package/dist/esm/utilities/contourSegmentation/removeContourSegmentationAnnotation.js.map +1 -1
- package/dist/esm/utilities/math/polyline/getAABB.js +30 -4
- package/dist/esm/utilities/math/polyline/getAABB.js.map +1 -1
- package/dist/esm/utilities/planar/index.js +3 -1
- package/dist/esm/utilities/planar/index.js.map +1 -1
- package/dist/esm/utilities/planar/isPlaneIntersectingAABB.js +28 -0
- package/dist/esm/utilities/planar/isPlaneIntersectingAABB.js.map +1 -0
- package/dist/esm/utilities/segmentation/getUniqueSegmentIndices.js +92 -44
- package/dist/esm/utilities/segmentation/getUniqueSegmentIndices.js.map +1 -1
- package/dist/esm/workers/polySegConverters.js +74 -1
- package/dist/esm/workers/polySegConverters.js.map +1 -1
- package/dist/types/drawingSvg/drawPath.d.ts.map +1 -1
- package/dist/types/enums/WorkerTypes.d.ts +1 -1
- package/dist/types/enums/WorkerTypes.d.ts.map +1 -1
- package/dist/types/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.d.ts +18 -0
- package/dist/types/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.d.ts.map +1 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.d.ts +3 -1
- package/dist/types/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.d.ts.map +1 -1
- package/dist/types/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.d.ts +9 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.d.ts.map +1 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.d.ts +4 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.d.ts.map +1 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.d.ts +4 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.d.ts.map +1 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.d.ts +2 -0
- package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.d.ts.map +1 -0
- package/dist/types/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.d.ts.map +1 -1
- package/dist/types/stateManagement/segmentation/triggerSegmentationEvents.d.ts.map +1 -1
- package/dist/types/store/ToolGroupManager/getToolGroupForViewport.d.ts +1 -1
- package/dist/types/store/ToolGroupManager/getToolGroupForViewport.d.ts.map +1 -1
- package/dist/types/tools/base/BaseTool.d.ts.map +1 -1
- package/dist/types/tools/base/ContourSegmentationBaseTool.d.ts.map +1 -1
- package/dist/types/tools/displayTools/Contour/contourDisplay.d.ts.map +1 -1
- package/dist/types/tools/displayTools/SegmentationDisplayTool.d.ts +1 -0
- package/dist/types/tools/displayTools/SegmentationDisplayTool.d.ts.map +1 -1
- package/dist/types/tools/displayTools/Surface/addOrUpdateSurfaceToElement.d.ts.map +1 -1
- package/dist/types/tools/displayTools/Surface/surfaceDisplay.d.ts +3 -9
- package/dist/types/tools/displayTools/Surface/surfaceDisplay.d.ts.map +1 -1
- package/dist/types/types/PolySeg.d.ts +1 -1
- package/dist/types/types/PolySeg.d.ts.map +1 -1
- package/dist/types/utilities/contourSegmentation/addContourSegmentationAnnotation.d.ts.map +1 -1
- package/dist/types/utilities/contourSegmentation/removeContourSegmentationAnnotation.d.ts.map +1 -1
- package/dist/types/utilities/math/polyline/getAABB.d.ts +3 -1
- package/dist/types/utilities/math/polyline/getAABB.d.ts.map +1 -1
- package/dist/types/utilities/planar/index.d.ts +3 -1
- package/dist/types/utilities/planar/index.d.ts.map +1 -1
- package/dist/types/utilities/planar/isPlaneIntersectingAABB.d.ts +2 -0
- package/dist/types/utilities/planar/isPlaneIntersectingAABB.d.ts.map +1 -0
- package/dist/types/utilities/segmentation/getUniqueSegmentIndices.d.ts +3 -1
- package/dist/types/utilities/segmentation/getUniqueSegmentIndices.d.ts.map +1 -1
- package/dist/umd/985.index.js +1 -1
- package/dist/umd/985.index.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
- package/src/drawingSvg/drawPath.ts +3 -1
- package/src/enums/WorkerTypes.ts +1 -1
- package/src/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.ts +203 -0
- package/src/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.ts +9 -2
- package/src/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.ts +201 -0
- package/src/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.ts +103 -0
- package/src/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.ts +38 -0
- package/src/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.ts +58 -0
- package/src/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.ts +2 -2
- package/src/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.ts +1 -1
- package/src/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.ts +3 -8
- package/src/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.ts +1 -1
- package/src/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.ts +1 -1
- package/src/stateManagement/segmentation/polySeg/computeAndAddRepresentation.ts +1 -1
- package/src/stateManagement/segmentation/triggerSegmentationEvents.ts +5 -0
- package/src/store/ToolGroupManager/getToolGroupForViewport.ts +8 -1
- package/src/tools/base/BaseTool.ts +7 -0
- package/src/tools/base/ContourSegmentationBaseTool.ts +5 -0
- package/src/tools/displayTools/Contour/contourDisplay.ts +29 -11
- package/src/tools/displayTools/Labelmap/labelmapDisplay.ts +1 -1
- package/src/tools/displayTools/SegmentationDisplayTool.ts +26 -0
- package/src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts +3 -65
- package/src/tools/displayTools/Surface/surfaceDisplay.ts +12 -247
- package/src/types/PolySeg.ts +1 -1
- package/src/utilities/contourSegmentation/addContourSegmentationAnnotation.ts +9 -1
- package/src/utilities/contourSegmentation/removeContourSegmentationAnnotation.ts +4 -0
- package/src/utilities/math/polyline/getAABB.ts +58 -4
- package/src/utilities/planar/index.ts +3 -0
- package/src/utilities/planar/isPlaneIntersectingAABB.ts +56 -0
- package/src/utilities/segmentation/getUniqueSegmentIndices.ts +115 -49
- package/src/workers/polySegConverters.js +117 -1
- package/dist/cjs/tools/displayTools/registerDisplayToolsWorker.d.ts +0 -1
- package/dist/cjs/tools/displayTools/registerDisplayToolsWorker.js +0 -27
- package/dist/cjs/tools/displayTools/registerDisplayToolsWorker.js.map +0 -1
- package/dist/cjs/workers/clippingPlaneWorker.d.ts +0 -1
- package/dist/cjs/workers/clippingPlaneWorker.js +0 -63
- package/dist/cjs/workers/clippingPlaneWorker.js.map +0 -1
- package/dist/esm/tools/displayTools/registerDisplayToolsWorker.js +0 -23
- package/dist/esm/tools/displayTools/registerDisplayToolsWorker.js.map +0 -1
- package/dist/esm/workers/clippingPlaneWorker.js +0 -58
- package/dist/esm/workers/clippingPlaneWorker.js.map +0 -1
- package/dist/types/tools/displayTools/registerDisplayToolsWorker.d.ts +0 -2
- package/dist/types/tools/displayTools/registerDisplayToolsWorker.d.ts.map +0 -1
- package/dist/types/workers/clippingPlaneWorker.d.ts +0 -2
- package/dist/types/workers/clippingPlaneWorker.d.ts.map +0 -1
- package/dist/umd/444.index.js +0 -3
- package/dist/umd/444.index.js.LICENSE.txt +0 -5
- package/dist/umd/444.index.js.map +0 -1
- package/src/tools/displayTools/registerDisplayToolsWorker.ts +0 -34
- package/src/workers/clippingPlaneWorker.js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,EAAE,QAAQ,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC,CAAC;gBAE7D,mBAAmB,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC;aACtD;SACF;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC;SAC5C;gBAAS;YAER,YAAY,GAAG,IAAI,CAAC;YACpB,MAAM,CAAC,MAAM,EAAE,CAAC;SACjB;IACH,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawPath.d.ts","sourceRoot":"","sources":["../../../src/drawingSvg/drawPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQ5C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,EAAE,EACzC,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACA,IAAI,
|
|
1
|
+
{"version":3,"file":"drawPath.d.ts","sourceRoot":"","sources":["../../../src/drawingSvg/drawPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQ5C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,EAAE,EACzC,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACA,IAAI,CAuEN"}
|
|
@@ -3,7 +3,7 @@ declare enum ChangeTypes {
|
|
|
3
3
|
POLYSEG_SURFACE_TO_LABELMAP = "polySeg/convertSurfacesToVolumeLabelmap",
|
|
4
4
|
POLYSEG_CONTOUR_TO_SURFACE = "polySeg/convertContourToSurface",
|
|
5
5
|
POLYSEG_LABELMAP_TO_SURFACE = "polySeg/convertLabelmapToSurface",
|
|
6
|
-
|
|
6
|
+
SURFACE_CLIPPING = "surfaceClipping"
|
|
7
7
|
}
|
|
8
8
|
export default ChangeTypes;
|
|
9
9
|
//# sourceMappingURL=WorkerTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkerTypes.d.ts","sourceRoot":"","sources":["../../../src/enums/WorkerTypes.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,2BAA2B,2CAA2C;IAEtE,2BAA2B,4CAA4C;IAEvE,0BAA0B,oCAAoC;IAE9D,2BAA2B,qCAAqC;IAEhE,
|
|
1
|
+
{"version":3,"file":"WorkerTypes.d.ts","sourceRoot":"","sources":["../../../src/enums/WorkerTypes.ts"],"names":[],"mappings":"AAGA,aAAK,WAAW;IACd,2BAA2B,2CAA2C;IAEtE,2BAA2B,4CAA4C;IAEvE,0BAA0B,oCAAoC;IAE9D,2BAA2B,qCAAqC;IAEhE,gBAAgB,oBAAoB;CACrC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Types } from '@cornerstonejs/core';
|
|
2
|
+
export declare type SurfacesInfo = {
|
|
3
|
+
id: string;
|
|
4
|
+
points: number[];
|
|
5
|
+
polys: number[];
|
|
6
|
+
segmentIndex: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type SurfaceClipResult = {
|
|
9
|
+
points: number[];
|
|
10
|
+
lines: number[];
|
|
11
|
+
numberOfCells: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type PolyDataClipCacheType = Map<string, Map<string, SurfaceClipResult>>;
|
|
14
|
+
export declare function clipAndCacheSurfacesForViewport(surfacesInfo: SurfacesInfo[], viewport: Types.IVolumeViewport, segmentationRepresentationUID: string): Promise<PolyDataClipCacheType>;
|
|
15
|
+
export declare function getSurfaceActorUID(segmentationRepresentationUID: string, surfaceId: string): string;
|
|
16
|
+
export declare function generateCacheId(viewport: any, viewPlaneNormal: any, sliceIndex: any): string;
|
|
17
|
+
export declare function updatePolyDataCache(actorUID: string, cacheId: string, polyDataResult: SurfaceClipResult): void;
|
|
18
|
+
//# sourceMappingURL=clipAndCacheSurfacesForViewport.d.ts.map
|
package/dist/types/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipAndCacheSurfacesForViewport.d.ts","sourceRoot":"","sources":["../../../../../src/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAKN,MAAM,qBAAqB,CAAC;AAU7B,oBAAY,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAKF,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAyBhF,wBAAsB,+BAA+B,CACnD,YAAY,EAAE,YAAY,EAAE,EAC5B,QAAQ,EAAE,KAAK,CAAC,eAAe,EAC/B,6BAA6B,EAAE,MAAM,kCA6EtC;AAuCD,wBAAgB,kBAAkB,CAChC,6BAA6B,EAAE,MAAM,EACrC,SAAS,EAAE,MAAM,UAGlB;AAGD,wBAAgB,eAAe,CAAC,QAAQ,KAAA,EAAE,eAAe,KAAA,EAAE,UAAU,KAAA,UAEpE;AAGD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,iBAAiB,QAUlC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { PolySegConversionOptions } from '../../../../types';
|
|
2
|
-
export declare function computeAndAddContourRepresentation(segmentationId: string, options?: PolySegConversionOptions):
|
|
2
|
+
export declare function computeAndAddContourRepresentation(segmentationId: string, options?: PolySegConversionOptions): Promise<{
|
|
3
|
+
annotationUIDsMap: Map<number, Set<string>>;
|
|
4
|
+
}>;
|
|
3
5
|
//# sourceMappingURL=computeAndAddContourRepresentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeAndAddContourRepresentation.d.ts","sourceRoot":"","sources":["../../../../../../src/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"computeAndAddContourRepresentation.d.ts","sourceRoot":"","sources":["../../../../../../src/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAY7D,wBAAgB,kCAAkC,CAChD,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,wBAA6B;;GAQvC"}
|
package/dist/types/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PolySegConversionOptions } from '../../../../types';
|
|
2
|
+
import { SurfaceClipResult } from '../../helpers/clipAndCacheSurfacesForViewport';
|
|
3
|
+
export declare type RawContourData = Map<number, SurfaceClipResult[]>;
|
|
4
|
+
export declare function computeContourData(segmentationId: string, options?: PolySegConversionOptions): Promise<{
|
|
5
|
+
annotationUIDsMap: Map<number, Set<string>>;
|
|
6
|
+
}>;
|
|
7
|
+
declare function computeContourFromLabelmapSegmentation(segmentationId: any, options?: PolySegConversionOptions): Promise<RawContourData>;
|
|
8
|
+
export { computeContourFromLabelmapSegmentation };
|
|
9
|
+
//# sourceMappingURL=contourComputationStrategies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contourComputationStrategies.d.ts","sourceRoot":"","sources":["../../../../../../src/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACL,iBAAiB,EAElB,MAAM,+CAA+C,CAAC;AAMvD,oBAAY,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAS9D,wBAAsB,kBAAkB,CACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,wBAA6B;;GAmEvC;AAQD,iBAAe,sCAAsC,CACnD,cAAc,KAAA,EACd,OAAO,GAAE,wBAA6B,2BAoCvC;AA0DD,OAAO,EAAE,sCAAsC,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RawContourData } from '../contourComputationStrategies';
|
|
2
|
+
import { type Types } from '@cornerstonejs/core';
|
|
3
|
+
export declare function createAndAddContourSegmentationsFromClippedSurfaces(rawContourData: RawContourData, viewport: Types.IViewport, segmentationId: string): Map<number, Set<string>>;
|
|
4
|
+
//# sourceMappingURL=createAndAddContourSegmentationsFromClippedSurfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAndAddContourSegmentationsFromClippedSurfaces.d.ts","sourceRoot":"","sources":["../../../../../../../src/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAS5D,wBAAgB,mDAAmD,CACjE,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,cAAc,EAAE,MAAM,4BAmEvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PolyDataClipCacheType } from '../../../helpers/clipAndCacheSurfacesForViewport';
|
|
2
|
+
import { RawContourData } from '../contourComputationStrategies';
|
|
3
|
+
export declare function extractContourData(polyDataCache: PolyDataClipCacheType, segmentIndexMap?: Map<string, number>): RawContourData;
|
|
4
|
+
//# sourceMappingURL=extractContourData.d.ts.map
|
package/dist/types/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractContourData.d.ts","sourceRoot":"","sources":["../../../../../../../src/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAQjE,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,qBAAqB,EACpC,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,kBA0BtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateContoursOnCameraModified.d.ts","sourceRoot":"","sources":["../../../../../../../src/stateManagement/segmentation/polySeg/Contour/utils/updateContoursOnCameraModified.ts"],"names":[],"mappings":"AAOA,wBAAgB,8BAA8B,CAC5C,YAAY,KAAA,EACZ,QAAQ,KAAA,EACR,6BAA6B,KAAA,QA+C9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelmapComputationStrategies.d.ts","sourceRoot":"","sources":["../../../../../../src/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"labelmapComputationStrategies.d.ts","sourceRoot":"","sources":["../../../../../../src/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AAOzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,oBAAY,eAAe,GACvB,8BAA8B,GAC9B,6BAA6B,CAAC;AAElC,wBAAsB,mBAAmB,CACvC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,wBAA6B,4BAwCvC;AAED,iBAAe,sCAAsC,CACnD,cAAc,KAAA,EACd,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,8BAA8B,GAAG,6BAA6B,CAAC,CAsCzE;AAkFD,OAAO,EAAE,sCAAsC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggerSegmentationEvents.d.ts","sourceRoot":"","sources":["../../../../src/stateManagement/segmentation/triggerSegmentationEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"triggerSegmentationEvents.d.ts","sourceRoot":"","sources":["../../../../src/stateManagement/segmentation/triggerSegmentationEvents.ts"],"names":[],"mappings":"AAoBA,iBAAS,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAMhE;AASD,iBAAS,wCAAwC,CAC/C,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,GACpC,IAAI,CAWN;AAOD,iBAAS,yCAAyC,CAChD,WAAW,EAAE,MAAM,EACnB,6BAA6B,CAAC,EAAE,MAAM,GACrC,IAAI,CAmCN;AAUD,iBAAS,2BAA2B,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CA2BlE;AAMD,iBAAS,+BAA+B,CACtC,cAAc,EAAE,MAAM,EACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAC7B,IAAI,CAWN;AAED,OAAO,EAEL,yCAAyC,EACzC,wCAAwC,EAExC,+BAA+B,EAC/B,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IToolGroup } from '../../types';
|
|
2
|
-
declare function getToolGroupForViewport(viewportId: string, renderingEngineId
|
|
2
|
+
declare function getToolGroupForViewport(viewportId: string, renderingEngineId?: string): IToolGroup | undefined;
|
|
3
3
|
export default getToolGroupForViewport;
|
|
4
4
|
//# sourceMappingURL=getToolGroupForViewport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getToolGroupForViewport.d.ts","sourceRoot":"","sources":["../../../../src/store/ToolGroupManager/getToolGroupForViewport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getToolGroupForViewport.d.ts","sourceRoot":"","sources":["../../../../src/store/ToolGroupManager/getToolGroupForViewport.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAgBzC,iBAAS,uBAAuB,CAC9B,UAAU,EAAE,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AAG,IAAI;IAoBxD,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE;QACpC,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,cAAc,CAAC;KAChC;IAYD,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;IA2BV,OAAO,CAAC,4BAA4B;
|
|
1
|
+
{"version":3,"file":"ContourSegmentationBaseTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/base/ContourSegmentationBaseTool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAchD,uBAAe,2BAA4B,SAAQ,eAAe;gBACpD,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS;IAiBnE,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAI9C,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IAwC5E,SAAS,CAAC,aAAa,CACrB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACtB,MAAM;IAeT,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAoBxD,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE;QACpC,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,cAAc,CAAC;KAChC;IAYD,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;IA2BV,OAAO,CAAC,4BAA4B;IAqHpC,OAAO,CAAC,8BAA8B;CA0BvC;AAED,OAAO,EAAE,2BAA2B,IAAI,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contourDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Contour/contourDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"contourDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Contour/contourDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAEN,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAChC,MAAM,uCAAuC,CAAC;AAkB/C,iBAAS,gCAAgC,CACvC,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,eAAe,UAAQ,GACtB,IAAI,CAsBN;AAQD,iBAAe,MAAM,CACnB,QAAQ,EAAE,KAAK,CAAC,eAAe,EAC/B,oBAAoB,EAAE,+BAA+B,EACrD,eAAe,EAAE,gCAAgC,GAChD,OAAO,CAAC,IAAI,CAAC,CAgHf;;;;;AA2BD,wBAGE"}
|
|
@@ -7,6 +7,7 @@ declare class SegmentationDisplayTool extends BaseTool {
|
|
|
7
7
|
onSetToolEnabled(): void;
|
|
8
8
|
onSetToolDisabled(): void;
|
|
9
9
|
renderSegmentation: (toolGroupId: string) => void;
|
|
10
|
+
addPlanarFreeHandToolIfAbsent(toolGroupId: any): void;
|
|
10
11
|
_getMergedRepresentationsConfig(toolGroupId: string): SegmentationRepresentationConfig;
|
|
11
12
|
}
|
|
12
13
|
export default SegmentationDisplayTool;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentationDisplayTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/displayTools/SegmentationDisplayTool.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EACL,gCAAgC,EAEjC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentationDisplayTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/displayTools/SegmentationDisplayTool.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EACL,gCAAgC,EAEjC,MAAM,oCAAoC,CAAC;AA+B5C,cAAM,uBAAwB,SAAQ,QAAQ;IAC5C,MAAM,CAAC,QAAQ,MAAC;gBAEd,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAEjB;IAKH,gBAAgB,IAAI,IAAI;IAwBxB,iBAAiB,IAAI,IAAI;IA+BzB,kBAAkB,gBAAiB,MAAM,KAAG,IAAI,CAuE9C;IAEF,6BAA6B,CAAC,WAAW,KAAA;IAqBzC,+BAA+B,CAC7B,WAAW,EAAE,MAAM,GAClB,gCAAgC;CAUpC;AAGD,eAAe,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addOrUpdateSurfaceToElement.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addOrUpdateSurfaceToElement.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAOjD,iBAAS,2BAA2B,CAClC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,KAAK,CAAC,QAAQ,EACvB,6BAA6B,EAAE,MAAM,GACpC,IAAI,CAiGN;AAED,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { Types } from '@cornerstonejs/core';
|
|
2
|
-
import {
|
|
3
|
-
declare const polyDataCache: Map<any, any>;
|
|
2
|
+
import { ToolGroupSpecificRepresentation } from '../../../types/SegmentationStateTypes';
|
|
4
3
|
declare function removeSegmentationRepresentation(toolGroupId: string, segmentationRepresentationUID: string, renderImmediate?: boolean): void;
|
|
5
|
-
declare function render(viewport: Types.IVolumeViewport, representation: ToolGroupSpecificRepresentation
|
|
6
|
-
export declare function getSurfaceActorUID(segmentationRepresentationUID: string, surfaceId: string): string;
|
|
7
|
-
export declare function generateCacheId(viewport: any, viewPlaneNormal: any, sliceIndex: any): string;
|
|
8
|
-
export declare function getOrCreatePolyData(actorEntry: any, cacheId: any, vtkPlanes: any): any;
|
|
9
|
-
export declare function updatePolyDataCache(actorUID: any, cacheId: any, polyDataResult: any): void;
|
|
10
|
-
export declare function getSortedPlanesInfo(viewport: any): any;
|
|
4
|
+
declare function render(viewport: Types.IVolumeViewport, representation: ToolGroupSpecificRepresentation): Promise<void>;
|
|
11
5
|
declare const _default: {
|
|
12
6
|
render: typeof render;
|
|
13
7
|
removeSegmentationRepresentation: typeof removeSegmentationRepresentation;
|
|
14
8
|
};
|
|
15
9
|
export default _default;
|
|
16
|
-
export { render, removeSegmentationRepresentation
|
|
10
|
+
export { render, removeSegmentationRepresentation };
|
|
17
11
|
//# sourceMappingURL=surfaceDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaceDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Surface/surfaceDisplay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"surfaceDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/tools/displayTools/Surface/surfaceDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEN,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAgBxF,iBAAS,gCAAgC,CACvC,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,eAAe,UAAQ,GACtB,IAAI,CAoBN;AAQD,iBAAe,MAAM,CACnB,QAAQ,EAAE,KAAK,CAAC,eAAe,EAC/B,cAAc,EAAE,+BAA+B,GAC9C,OAAO,CAAC,IAAI,CAAC,CAyEf;;;;;AA2BD,wBAGE;AAEF,OAAO,EAAE,MAAM,EAAE,gCAAgC,EAAE,CAAC"}
|
|
@@ -2,6 +2,6 @@ import type { Types } from '@cornerstonejs/core';
|
|
|
2
2
|
export declare type PolySegConversionOptions = {
|
|
3
3
|
segmentIndices?: number[];
|
|
4
4
|
segmentationRepresentationUID?: string;
|
|
5
|
-
viewport?: Types.
|
|
5
|
+
viewport?: Types.IStackViewport | Types.IVolumeViewport;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=PolySeg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolySeg.d.ts","sourceRoot":"","sources":["../../../src/types/PolySeg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,oBAAY,wBAAwB,GAAG;IACrC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"PolySeg.d.ts","sourceRoot":"","sources":["../../../src/types/PolySeg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,oBAAY,wBAAwB,GAAG;IACrC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,eAAe,CAAC;CACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addContourSegmentationAnnotation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/addContourSegmentationAnnotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAM5D,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"addContourSegmentationAnnotation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/addContourSegmentationAnnotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAM5D,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,6BAA6B,QA4B1C"}
|
package/dist/types/utilities/contourSegmentation/removeContourSegmentationAnnotation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeContourSegmentationAnnotation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/removeContourSegmentationAnnotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAQ5D,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"removeContourSegmentationAnnotation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/removeContourSegmentationAnnotation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAQ5D,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,6BAA6B,QAuB1C"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { Types } from '@cornerstonejs/core';
|
|
2
|
-
export default function getAABB(polyline: Types.Point2[]
|
|
2
|
+
export default function getAABB(polyline: Types.Point2[] | Types.Point3[] | number[], options?: {
|
|
3
|
+
numDimensions: number;
|
|
4
|
+
}): Types.AABB2 | Types.AABB3;
|
|
3
5
|
//# sourceMappingURL=getAABB.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAABB.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getAABB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"getAABB.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getAABB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAW5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EACpD,OAAO,CAAC,EAAE;IACR,aAAa,EAAE,MAAM,CAAC;CACvB,GACA,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAyD3B"}
|
|
@@ -2,12 +2,14 @@ import filterAnnotationsWithinSlice from './filterAnnotationsWithinSlice';
|
|
|
2
2
|
import getWorldWidthAndHeightFromCorners from './getWorldWidthAndHeightFromCorners';
|
|
3
3
|
import filterAnnotationsForDisplay from './filterAnnotationsForDisplay';
|
|
4
4
|
import getPointInLineOfSightWithCriteria from './getPointInLineOfSightWithCriteria';
|
|
5
|
+
import { isPlaneIntersectingAABB } from './isPlaneIntersectingAABB';
|
|
5
6
|
declare const _default: {
|
|
6
7
|
filterAnnotationsWithinSlice: typeof filterAnnotationsWithinSlice;
|
|
7
8
|
getWorldWidthAndHeightFromCorners: typeof getWorldWidthAndHeightFromCorners;
|
|
8
9
|
filterAnnotationsForDisplay: typeof filterAnnotationsForDisplay;
|
|
9
10
|
getPointInLineOfSightWithCriteria: typeof getPointInLineOfSightWithCriteria;
|
|
11
|
+
isPlaneIntersectingAABB: (origin: any, normal: any, minX: any, minY: any, minZ: any, maxX: any, maxY: any, maxZ: any) => boolean;
|
|
10
12
|
};
|
|
11
13
|
export default _default;
|
|
12
|
-
export { filterAnnotationsWithinSlice, getWorldWidthAndHeightFromCorners, filterAnnotationsForDisplay, getPointInLineOfSightWithCriteria, };
|
|
14
|
+
export { filterAnnotationsWithinSlice, getWorldWidthAndHeightFromCorners, filterAnnotationsForDisplay, getPointInLineOfSightWithCriteria, isPlaneIntersectingAABB, };
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/planar/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AACpF,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iCAAiC,MAAM,qCAAqC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/planar/index.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAC1E,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AACpF,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;;;;;;;;AAEpE,wBAME;AAEF,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EACjC,2BAA2B,EAC3B,iCAAiC,EACjC,uBAAuB,GACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPlaneIntersectingAABB.d.ts","sourceRoot":"","sources":["../../../../src/utilities/planar/isPlaneIntersectingAABB.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,uBAAuB,yGAwCnC,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
declare
|
|
1
|
+
export declare const setSegmentationDirty: (segmentationId: string) => void;
|
|
2
|
+
export declare const setSegmentationClean: (segmentationId: string) => void;
|
|
3
|
+
declare function getUniqueSegmentIndices(segmentationId: any): any;
|
|
2
4
|
export { getUniqueSegmentIndices };
|
|
3
5
|
//# sourceMappingURL=getUniqueSegmentIndices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUniqueSegmentIndices.d.ts","sourceRoot":"","sources":["../../../../src/utilities/segmentation/getUniqueSegmentIndices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getUniqueSegmentIndices.d.ts","sourceRoot":"","sources":["../../../../src/utilities/segmentation/getUniqueSegmentIndices.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,oBAAoB,mBAAoB,MAAM,SAK1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAAoB,MAAM,SAK1D,CAAC;AAiBF,iBAAS,uBAAuB,CAAC,cAAc,KAAA,OAgC9C;AAkED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
package/dist/umd/985.index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@kitware/vtk.js/Common/DataModel/ImageData"),require("@kitware/vtk.js/Common/Core/DataArray"),require("@cornerstonejs/core"),require("gl-matrix")):"function"==typeof define&&define.amd?define(["@kitware/vtk.js/Common/DataModel/ImageData","@kitware/vtk.js/Common/Core/DataArray","@cornerstonejs/core","gl-matrix"],t):"object"==typeof exports?exports.cornerstoneTools3D=t(require("@kitware/vtk.js/Common/DataModel/ImageData"),require("@kitware/vtk.js/Common/Core/DataArray"),require("@cornerstonejs/core"),require("gl-matrix")):e.cornerstoneTools3D=t(e["@kitware/vtk.js/Common/DataModel/ImageData"],e["@kitware/vtk.js/Common/Core/DataArray"],e.cornerstone3D,e.window)}(self,((e,t,n,o)=>(()=>{"use strict";var a,i,r={248:(e,t,n)=>{var o=n(758),a=n(283),i=n.n(a),r=n(785),s=n.n(r),l=n(699),c=n(953);const{EPSILON:g}=c.CONSTANTS;function m(e,t){return function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=1/0,i=o?-1/0:0,r=1/0,s=o?-1/0:0,l=1/0,c=o?-1/0:0;const m=3===(null===(n=e[0])||void 0===n?void 0:n.length);for(let t=0;t<e.length;t++){const n=e[t];var u,p;a=Math.min(n[0],a),i=Math.max(n[0],i),r=Math.min(n[1],r),s=Math.max(n[1],s),m&&(l=Math.min(null!==(u=n[2])&&void 0!==u?u:l,l),c=Math.max(null!==(p=n[2])&&void 0!==p?p:c,c))}return t?(a=Math.max(o?t[0]+g:0,a),i=Math.min(o?t[0]-g:t[0]-1,i),r=Math.max(o?t[1]+g:0,r),s=Math.min(o?t[1]-g:t[1]-1,s),m&&3===t.length&&(l=Math.max(o?t[2]+g:0,l),c=Math.min(o?t[2]-g:t[2]-1,c))):o||(a=Math.max(0,a),i=Math.min(1/0,i),r=Math.max(0,r),s=Math.min(1/0,s),m&&(l=Math.max(0,l),c=Math.min(1/0,c))),m?[[a,i],[r,s],[l,c]]:[[a,i],[r,s],null]}(e,t,!0)}var u=n(976);function p(e,t,n,o){let a,i,r,s,l,c,g;const{numComps:m}=e;g=e.getScalarData?e.getScalarData():e.getPointData().getScalars().getData();const p=e.getDimensions();o?[[a,i],[r,s],[l,c]]=o:(a=0,i=p[0],r=0,s=p[1],l=0,c=p[2]);const f=u.vec3.fromValues(a,r,l),d=e.getDirection(),h=d.slice(0,3),v=d.slice(3,6),y=d.slice(6,9),x=e.getSpacing(),[w,S,I]=x,D=e.indexToWorld(f),M=u.vec3.fromValues(h[0]*w,h[1]*w,h[2]*w),P=u.vec3.fromValues(v[0]*S,v[1]*S,v[2]*S),b=u.vec3.fromValues(y[0]*I,y[1]*I,y[2]*I),k=m||g.length/p[2]/p[1]/p[0],C=p[0]*k,T=p[1]*C,j=[],O=u.vec3.clone(D);for(let e=l;e<=c;e++){const o=u.vec3.clone(O);for(let o=r;o<=s;o++){const r=u.vec3.clone(O);for(let r=a;r<=i;r++){const a=[r,o,e];if(t(O,a)){const t=e*T+o*C+r*k;let i;i=k>2?[g[t],g[t+1],g[t+2]]:g[t],j.push({value:i,index:t,pointIJK:a,pointLPS:O}),n&&n({value:i,index:t,pointIJK:a,pointLPS:O})}u.vec3.add(O,O,M)}u.vec3.copy(O,r),u.vec3.add(O,O,P)}u.vec3.copy(O,o),u.vec3.add(O,O,b)}return j}function f(e,t){let n;const o=t.slice(0,3);for(let e=0;e<3;e++)if(o.every(((t,n,o)=>t[e]===o[0][e]))){n=e;break}if(void 0===n)throw new Error("Cannot find a shared dimension index for polyline, probably oblique plane");const a=[];for(let e=0;e<t.length;e++)a.push([t[e][(n+1)%3],t[e][(n+2)%3]]);return function(e,t,n){if(e.length<3)return!1;const o=e.length;let a=0;const i=!function(e){if(e.length<3)return!1;const t=e.length,n=function(e,t){if(e.length!==t.length)throw Error("Both points should have the same dimensionality");const[n,o,a=0]=e,[i,r,s=0]=t,l=i-n,c=r-o,g=s-a;return l*l+c*c+g*g}(e[0],e[t-1]);return u.glMatrix.equals(0,n)}(e),r=e.length-(i?1:2);for(let n=0;n<=r;n++){const i=e[n],r=e[n===o-1?0:n+1],s=i[0]>=r[0]?i[0]:r[0],l=i[1]>=r[1]?i[1]:r[1],c=i[1]<=r[1]?i[1]:r[1];if(t[0]<=s&&t[1]>=c&&t[1]<l){let e=i[0]===r[0];if(!e){const n=(t[1]-i[1])*(r[0]-i[0])/(r[1]-i[1])+i[0];e=t[0]<=n}a+=e?1:0}}return!!(a%2)}(a,[e[(n+1)%3],e[(n+2)%3]])}const d={polySeg:null,polySegInitializing:!1,polySegInitializingPromise:null,async initializePolySeg(e){var t;this.polySegInitializing?await this.polySegInitializingPromise:null!==(t=this.polySeg)&&void 0!==t&&t.instance||(this.polySegInitializing=!0,this.polySegInitializingPromise=new Promise((t=>{this.polySeg=new l.Z,this.polySeg.initialize({updateProgress:e}).then((()=>{this.polySegInitializing=!1,t()}))})),await this.polySegInitializingPromise)},async convertContourToSurface(e){const{polylines:t,numPointsArray:n}=e;for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];const[r]=a;return await this.initializePolySeg(r),await this.polySeg.instance.convertContourRoiToSurface(t,n)},async convertLabelmapToSurface(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;return await this.initializePolySeg(a),this.polySeg.instance.convertLabelmapToSurface(e.scalarData,e.dimensions,e.spacing,e.direction,e.origin,[e.segmentIndex])},async convertContourToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n,r=await new l.Z;await r.initialize({updateProgress:a});const{segmentIndices:g,scalarData:u,annotationUIDsInSegmentMap:d,dimensions:h,origin:v,direction:y,spacing:x}=e,w=c.utilities.VoxelManager.createVolumeVoxelManager(h,u),S=i().newInstance();S.setDimensions(h),S.setOrigin(v),S.setDirection(y),S.setSpacing(x);const I=s().newInstance({name:"Pixels",numberOfComponents:1,values:u});S.getPointData().setScalars(I),S.modified();for(const e of g){const t=d.get(e);for(const n of t){const t=m(n.data.contour.polyline),[o,a,i]=c.utilities.transformWorldToIndex(S,[t[0][0],t[1][0],t[2][0]]),[r,s,l]=c.utilities.transformWorldToIndex(S,[t[0][1],t[1][1],t[2][1]]);p(S,(e=>f(e,n.data.contour.polyline)),(t=>{let{pointIJK:n}=t;w.setAtIJKPoint(n,e)}),[[o,r],[a,s],[i,l]])}}return w.scalarData},async convertContourToStackLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n,r=await new l.Z;await r.initialize({updateProgress:a});const{segmentationsInfo:g,annotationUIDsInSegmentMap:u,segmentIndices:d}=e,h=new Map;g.forEach(((e,t)=>{const{dimensions:n,scalarData:o,direction:a,spacing:r,origin:l}=e,g=c.utilities.VoxelManager.createVolumeVoxelManager(n,o),m=i().newInstance();m.setDimensions(n),m.setOrigin(l),m.setDirection(a),m.setSpacing(r);const u=s().newInstance({name:"Pixels",numberOfComponents:1,values:o});m.getPointData().setScalars(u),m.modified(),h.set(t,{manager:g,imageData:m})}));for(const e of d){const t=u.get(e);for(const n of t){if(null==n||!n.data)continue;const t=m(n.data.contour.polyline),{referencedImageId:o}=n.metadata,{manager:a,imageData:i}=h.get(o),[r,s,l]=c.utilities.transformWorldToIndex(i,[t[0][0],t[1][0],t[2][0]]),[g,u,d]=c.utilities.transformWorldToIndex(i,[t[0][1],t[1][1],t[2][1]]);p(i,(e=>f(e,n.data.contour.polyline)),(t=>{let{pointIJK:n}=t;a.setAtIJKPoint(n,e)}),[[r,g],[s,u],[l,d]])}}return g.forEach(((e,t)=>{const{manager:n}=h.get(t);e.scalarData=n.scalarData})),g},async convertSurfaceToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;return await this.initializePolySeg(a),this.polySeg.instance.convertSurfaceToLabelmap(e.points,e.polys,e.dimensions,e.spacing,e.direction,e.origin)},async convertSurfacesToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;await this.initializePolySeg(a);const{segmentsInfo:r}=e,l=Array.from(r.keys()).map((t=>{const{points:n,polys:o}=r.get(t);return{...this.polySeg.instance.convertSurfaceToLabelmap(n,o,e.dimensions,e.spacing,e.direction,e.origin),segmentIndex:t}})),g=await Promise.all(l),m=i().newInstance();m.setDimensions(e.dimensions),m.setOrigin(e.origin),m.setSpacing(e.spacing),m.setDirection(e.direction);const u=e.dimensions[0]*e.dimensions[1]*e.dimensions[2],f=s().newInstance({name:"Pixels",numberOfComponents:1,values:new Uint8Array(u)});m.getPointData().setScalars(f),m.modified();const d=c.utilities.VoxelManager.createVolumeVoxelManager(e.dimensions,m.getPointData().getScalars().getData()),h=g.map((e=>{const{data:t,dimensions:n,direction:o,origin:a,spacing:r}=e,l=i().newInstance();l.setDimensions(n),l.setOrigin(a),l.setSpacing(r),l.setDirection(o);const g=s().newInstance({name:"Pixels",numberOfComponents:1,values:t});l.getPointData().setScalars(g),l.modified();const m=c.utilities.VoxelManager.createVolumeVoxelManager(n,t),u=l.getExtent();return{volume:l,voxelManager:m,extent:u,scalarData:t,segmentIndex:e.segmentIndex}}));return p(m,(()=>!0),(e=>{let{pointIJK:t,pointLPS:n}=e;try{for(const e of h){const{volume:o,extent:a,voxelManager:i,segmentIndex:r}=e,s=o.worldToIndex(n);if(s[0]<a[0]||s[0]>a[1]||s[1]<a[2]||s[1]>a[3]||s[2]<a[4]||s[2]>a[5])continue;const l=s.map(Math.round);if(i.getAtIJK(...l)>0){d.setAtIJKPoint(t,r);break}}}catch(e){}})),d.scalarData}};(0,o.Jj)(d)},785:e=>{e.exports=t},283:t=>{t.exports=e},953:e=>{e.exports=n},976:e=>{e.exports=o}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return r[e](n,n.exports,l),n.exports}return l.m=r,l.x=()=>{var e=l.O(void 0,[78],(()=>l(248)));return l.O(e)},a=[],l.O=(e,t,n,o)=>{if(!t){var i=1/0;for(g=0;g<a.length;g++){t=a[g][0],n=a[g][1],o=a[g][2];for(var r=!0,s=0;s<t.length;s++)(!1&o||i>=o)&&Object.keys(l.O).every((e=>l.O[e](t[s])))?t.splice(s--,1):(r=!1,o<i&&(i=o));if(r){a.splice(g--,1);var c=n();void 0!==c&&(e=c)}}return e}o=o||0;for(var g=a.length;g>0&&a[g-1][2]>o;g--)a[g]=a[g-1];a[g]=[t,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,n)=>(l.f[n](e,t),t)),[])),l.u=e=>e+".index.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{var e={985:1};l.f.i=(t,n)=>{e[t]||importScripts(l.p+l.u(t))};var t=self.webpackChunkcornerstoneTools3D=self.webpackChunkcornerstoneTools3D||[],n=t.push.bind(t);t.push=t=>{var o=t[0],a=t[1],i=t[2];for(var r in a)l.o(a,r)&&(l.m[r]=a[r]);for(i&&i(l);o.length;)e[o.pop()]=1;n(t)}})(),i=l.x,l.x=()=>l.e(78).then(i),l.x()})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@kitware/vtk.js/Common/DataModel/ImageData"),require("@kitware/vtk.js/Common/Core/DataArray"),require("@cornerstonejs/core"),require("@kitware/vtk.js/Common/DataModel/Plane"),require("@kitware/vtk.js/Common/DataModel/PolyData"),require("@kitware/vtk.js/Filters/General/ContourLoopExtraction"),require("@kitware/vtk.js/Filters/Core/Cutter"),require("gl-matrix")):"function"==typeof define&&define.amd?define(["@kitware/vtk.js/Common/DataModel/ImageData","@kitware/vtk.js/Common/Core/DataArray","@cornerstonejs/core","@kitware/vtk.js/Common/DataModel/Plane","@kitware/vtk.js/Common/DataModel/PolyData","@kitware/vtk.js/Filters/General/ContourLoopExtraction","@kitware/vtk.js/Filters/Core/Cutter","gl-matrix"],t):"object"==typeof exports?exports.cornerstoneTools3D=t(require("@kitware/vtk.js/Common/DataModel/ImageData"),require("@kitware/vtk.js/Common/Core/DataArray"),require("@cornerstonejs/core"),require("@kitware/vtk.js/Common/DataModel/Plane"),require("@kitware/vtk.js/Common/DataModel/PolyData"),require("@kitware/vtk.js/Filters/General/ContourLoopExtraction"),require("@kitware/vtk.js/Filters/Core/Cutter"),require("gl-matrix")):e.cornerstoneTools3D=t(e["@kitware/vtk.js/Common/DataModel/ImageData"],e["@kitware/vtk.js/Common/Core/DataArray"],e.cornerstone3D,e["@kitware/vtk.js/Common/DataModel/Plane"],e["@kitware/vtk.js/Common/DataModel/PolyData"],e["@kitware/vtk.js/Filters/General/ContourLoopExtraction"],e["@kitware/vtk.js/Filters/Core/Cutter"],e.window)}(self,((e,t,n,o,a,r,i,s)=>(()=>{"use strict";var l,c,m={27:(e,t,n)=>{var o=n(758),a=n(283),r=n.n(a),i=n(785),s=n.n(i),l=n(699),c=n(953),m=n(864),u=n.n(m),g=n(70),p=n.n(g),f=n(336),d=n.n(f),v=n(481),h=n.n(v);const{EPSILON:w}=c.CONSTANTS;function y(e,t){return function(e,t){var n;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=1/0,r=o?-1/0:0,i=1/0,s=o?-1/0:0,l=1/0,c=o?-1/0:0;const m=3===(null===(n=e[0])||void 0===n?void 0:n.length);for(let t=0;t<e.length;t++){const n=e[t];var u,g;a=Math.min(n[0],a),r=Math.max(n[0],r),i=Math.min(n[1],i),s=Math.max(n[1],s),m&&(l=Math.min(null!==(u=n[2])&&void 0!==u?u:l,l),c=Math.max(null!==(g=n[2])&&void 0!==g?g:c,c))}return t?(a=Math.max(o?t[0]+w:0,a),r=Math.min(o?t[0]-w:t[0]-1,r),i=Math.max(o?t[1]+w:0,i),s=Math.min(o?t[1]-w:t[1]-1,s),m&&3===t.length&&(l=Math.max(o?t[2]+w:0,l),c=Math.min(o?t[2]-w:t[2]-1,c))):o||(a=Math.max(0,a),r=Math.min(1/0,r),i=Math.max(0,i),s=Math.min(1/0,s),m&&(l=Math.max(0,l),c=Math.min(1/0,c))),m?[[a,r],[i,s],[l,c]]:[[a,r],[i,s],null]}(e,t,!0)}var x=n(976);function D(e,t,n,o){let a,r,i,s,l,c,m;const{numComps:u}=e;m=e.getScalarData?e.getScalarData():e.getPointData().getScalars().getData();const g=e.getDimensions();o?[[a,r],[i,s],[l,c]]=o:(a=0,r=g[0],i=0,s=g[1],l=0,c=g[2]);const p=x.vec3.fromValues(a,i,l),f=e.getDirection(),d=f.slice(0,3),v=f.slice(3,6),h=f.slice(6,9),w=e.getSpacing(),[y,D,I]=w,k=e.indexToWorld(p),S=x.vec3.fromValues(d[0]*y,d[1]*y,d[2]*y),M=x.vec3.fromValues(v[0]*D,v[1]*D,v[2]*D),C=x.vec3.fromValues(h[0]*I,h[1]*I,h[2]*I),P=u||m.length/g[2]/g[1]/g[0],j=g[0]*P,b=g[1]*j,V=[],A=x.vec3.clone(k);for(let e=l;e<=c;e++){const o=x.vec3.clone(A);for(let o=i;o<=s;o++){const i=x.vec3.clone(A);for(let i=a;i<=r;i++){const a=[i,o,e];if(t(A,a)){const t=e*b+o*j+i*P;let r;r=P>2?[m[t],m[t+1],m[t+2]]:m[t],V.push({value:r,index:t,pointIJK:a,pointLPS:A}),n&&n({value:r,index:t,pointIJK:a,pointLPS:A})}x.vec3.add(A,A,S)}x.vec3.copy(A,i),x.vec3.add(A,A,M)}x.vec3.copy(A,o),x.vec3.add(A,A,C)}return V}function I(e,t){let n;const o=t.slice(0,3);for(let e=0;e<3;e++)if(o.every(((t,n,o)=>t[e]===o[0][e]))){n=e;break}if(void 0===n)throw new Error("Cannot find a shared dimension index for polyline, probably oblique plane");const a=[];for(let e=0;e<t.length;e++)a.push([t[e][(n+1)%3],t[e][(n+2)%3]]);return function(e,t,n){if(e.length<3)return!1;const o=e.length;let a=0;const r=!function(e){if(e.length<3)return!1;const t=e.length,n=function(e,t){if(e.length!==t.length)throw Error("Both points should have the same dimensionality");const[n,o,a=0]=e,[r,i,s=0]=t,l=r-n,c=i-o,m=s-a;return l*l+c*c+m*m}(e[0],e[t-1]);return x.glMatrix.equals(0,n)}(e),i=e.length-(r?1:2);for(let n=0;n<=i;n++){const r=e[n],i=e[n===o-1?0:n+1],s=r[0]>=i[0]?r[0]:i[0],l=r[1]>=i[1]?r[1]:i[1],c=r[1]<=i[1]?r[1]:i[1];if(t[0]<=s&&t[1]>=c&&t[1]<l){let e=r[0]===i[0];if(!e){const n=(t[1]-r[1])*(i[0]-r[0])/(i[1]-r[1])+r[0];e=t[0]<=n}a+=e?1:0}}return!!(a%2)}(a,[e[(n+1)%3],e[(n+2)%3]])}function k(e,t){let n=e;const o=(null==t?void 0:t.numDimensions)||2,a=3===o;if(!Array.isArray(e[0])){const t=e,r=t.length/o;n=new Array(t.length/o);for(let e=0,i=r;e<i;e++)n[e]=[t[e*o],t[e*o+1]],a&&n[e].push(t[e*o+2])}let r=1/0,i=1/0,s=-1/0,l=-1/0,c=1/0,m=-1/0;for(let e=0,t=n.length;e<t;e++){const[t,o,u]=n[e];r=r<t?r:t,i=i<o?i:o,s=s>t?s:t,l=l>o?l:o,a&&(c=c<u?c:u,m=m>u?m:u)}return a?{minX:r,maxX:s,minY:i,maxY:l,minZ:c,maxZ:m}:{minX:r,maxX:s,minY:i,maxY:l}}const S=(e,t,n,o,a,r,i,s)=>{const l=[x.vec3.fromValues(n,o,a),x.vec3.fromValues(r,o,a),x.vec3.fromValues(n,i,a),x.vec3.fromValues(r,i,a),x.vec3.fromValues(n,o,s),x.vec3.fromValues(r,o,s),x.vec3.fromValues(n,i,s),x.vec3.fromValues(r,i,s)],c=x.vec3.fromValues(t[0],t[1],t[2]),m=x.vec3.fromValues(e[0],e[1],e[2]),u=-x.vec3.dot(c,m);let g=null;for(const e of l){const t=x.vec3.dot(c,e)+u;if(null===g)g=Math.sign(t);else if(Math.sign(t)!==g)return!0}return!1},M={polySeg:null,polySegInitializing:!1,polySegInitializingPromise:null,async initializePolySeg(e){var t;this.polySegInitializing?await this.polySegInitializingPromise:null!==(t=this.polySeg)&&void 0!==t&&t.instance||(this.polySegInitializing=!0,this.polySegInitializingPromise=new Promise((t=>{this.polySeg=new l.Z,this.polySeg.initialize({updateProgress:e}).then((()=>{this.polySegInitializing=!1,t()}))})),await this.polySegInitializingPromise)},async convertContourToSurface(e){const{polylines:t,numPointsArray:n}=e;for(var o=arguments.length,a=new Array(o>1?o-1:0),r=1;r<o;r++)a[r-1]=arguments[r];const[i]=a;return await this.initializePolySeg(i),await this.polySeg.instance.convertContourRoiToSurface(t,n)},async convertLabelmapToSurface(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;return await this.initializePolySeg(a),this.polySeg.instance.convertLabelmapToSurface(e.scalarData,e.dimensions,e.spacing,e.direction,e.origin,[e.segmentIndex])},async convertContourToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n,i=await new l.Z;await i.initialize({updateProgress:a});const{segmentIndices:m,scalarData:u,annotationUIDsInSegmentMap:g,dimensions:p,origin:f,direction:d,spacing:v}=e,h=c.utilities.VoxelManager.createVolumeVoxelManager(p,u),w=r().newInstance();w.setDimensions(p),w.setOrigin(f),w.setDirection(d),w.setSpacing(v);const x=s().newInstance({name:"Pixels",numberOfComponents:1,values:u});w.getPointData().setScalars(x),w.modified();for(const e of m){const t=g.get(e);for(const n of t){const t=y(n.data.contour.polyline),[o,a,r]=c.utilities.transformWorldToIndex(w,[t[0][0],t[1][0],t[2][0]]),[i,s,l]=c.utilities.transformWorldToIndex(w,[t[0][1],t[1][1],t[2][1]]);D(w,(e=>I(e,n.data.contour.polyline)),(t=>{let{pointIJK:n}=t;h.setAtIJKPoint(n,e)}),[[o,i],[a,s],[r,l]])}}return h.scalarData},async convertContourToStackLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n,i=await new l.Z;await i.initialize({updateProgress:a});const{segmentationsInfo:m,annotationUIDsInSegmentMap:u,segmentIndices:g}=e,p=new Map;m.forEach(((e,t)=>{const{dimensions:n,scalarData:o,direction:a,spacing:i,origin:l}=e,m=c.utilities.VoxelManager.createVolumeVoxelManager(n,o),u=r().newInstance();u.setDimensions(n),u.setOrigin(l),u.setDirection(a),u.setSpacing(i);const g=s().newInstance({name:"Pixels",numberOfComponents:1,values:o});u.getPointData().setScalars(g),u.modified(),p.set(t,{manager:m,imageData:u})}));for(const e of g){const t=u.get(e);for(const n of t){if(null==n||!n.data)continue;const t=y(n.data.contour.polyline),{referencedImageId:o}=n.metadata,{manager:a,imageData:r}=p.get(o),[i,s,l]=c.utilities.transformWorldToIndex(r,[t[0][0],t[1][0],t[2][0]]),[m,u,g]=c.utilities.transformWorldToIndex(r,[t[0][1],t[1][1],t[2][1]]);D(r,(e=>I(e,n.data.contour.polyline)),(t=>{let{pointIJK:n}=t;a.setAtIJKPoint(n,e)}),[[i,m],[s,u],[l,g]])}}return m.forEach(((e,t)=>{const{manager:n}=p.get(t);e.scalarData=n.scalarData})),m},async convertSurfaceToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;return await this.initializePolySeg(a),this.polySeg.instance.convertSurfaceToLabelmap(e.points,e.polys,e.dimensions,e.spacing,e.direction,e.origin)},async convertSurfacesToVolumeLabelmap(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const[a]=n;await this.initializePolySeg(a);const{segmentsInfo:i}=e,l=Array.from(i.keys()).map((t=>{const{points:n,polys:o}=i.get(t);return{...this.polySeg.instance.convertSurfaceToLabelmap(n,o,e.dimensions,e.spacing,e.direction,e.origin),segmentIndex:t}})),m=await Promise.all(l),u=r().newInstance();u.setDimensions(e.dimensions),u.setOrigin(e.origin),u.setSpacing(e.spacing),u.setDirection(e.direction);const g=e.dimensions[0]*e.dimensions[1]*e.dimensions[2],p=s().newInstance({name:"Pixels",numberOfComponents:1,values:new Uint8Array(g)});u.getPointData().setScalars(p),u.modified();const f=c.utilities.VoxelManager.createVolumeVoxelManager(e.dimensions,u.getPointData().getScalars().getData()),d=m.map((e=>{const{data:t,dimensions:n,direction:o,origin:a,spacing:i}=e,l=r().newInstance();l.setDimensions(n),l.setOrigin(a),l.setSpacing(i),l.setDirection(o);const m=s().newInstance({name:"Pixels",numberOfComponents:1,values:t});l.getPointData().setScalars(m),l.modified();const u=c.utilities.VoxelManager.createVolumeVoxelManager(n,t),g=l.getExtent();return{volume:l,voxelManager:u,extent:g,scalarData:t,segmentIndex:e.segmentIndex}}));return D(u,(()=>!0),(e=>{let{pointIJK:t,pointLPS:n}=e;try{for(const e of d){const{volume:o,extent:a,voxelManager:r,segmentIndex:i}=e,s=o.worldToIndex(n);if(s[0]<a[0]||s[0]>a[1]||s[1]<a[2]||s[1]>a[3]||s[2]<a[4]||s[2]>a[5])continue;const l=s.map(Math.round);if(r.getAtIJK(...l)>0){f.setAtIJKPoint(t,i);break}}}catch(e){}})),f.scalarData},getSurfacesAABBs(e){let{surfacesInfo:t}=e;const n=new Map;for(const{points:e,id:o}of t){const t=k(e,{numDimensions:3});n.set(o,t)}return n},cutSurfacesIntoPlanes(e,t,n){let{planesInfo:o,surfacesInfo:a,surfacesAABB:r=new Map}=e;const i=o.length,s=h().newInstance(),l=u().newInstance();s.setCutFunction(l);const c=p().newInstance();try{for(const[e,m]of o.entries()){const{sliceIndex:o,planes:u}=m,g=new Map;for(const e of a){const{points:t,polys:n,id:o}=e,a=r.get(o)||k(t,{numDimensions:3});r.has(o)||r.set(o,a);const{minX:i,minY:m,minZ:p,maxX:f,maxY:v,maxZ:h}=a,{origin:w,normal:y}=u[0];if(!S(w,y,i,m,p,f,v,h))continue;c.getPoints().setData(t,3),c.getPolys().setData(n,3),c.modified(),s.setInputData(c),l.setOrigin(w),l.setNormal(y);try{s.update()}catch(e){console.warn("Error during clipping",e);continue}const x=s.getOutputData(),D=x;D.buildLinks();const I=d().newInstance();I.setInputData(D);const M=I.getOutputData();x&&g.set(o,{points:M.getPoints().getData(),lines:M.getLines().getData(),numberOfCells:M.getLines().getNumberOfCells()})}t({progress:(e+1)/i}),n({sliceIndex:o,polyDataResults:g})}}catch(e){console.warn("Error during processing",e)}finally{a=null,l.delete()}}};(0,o.Jj)(M)},785:e=>{e.exports=t},283:t=>{t.exports=e},864:e=>{e.exports=o},70:e=>{e.exports=a},481:e=>{e.exports=i},336:e=>{e.exports=r},953:e=>{e.exports=n},976:e=>{e.exports=s}},u={};function g(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return m[e](n,n.exports,g),n.exports}return g.m=m,g.x=()=>{var e=g.O(void 0,[78],(()=>g(27)));return g.O(e)},l=[],g.O=(e,t,n,o)=>{if(!t){var a=1/0;for(c=0;c<l.length;c++){t=l[c][0],n=l[c][1],o=l[c][2];for(var r=!0,i=0;i<t.length;i++)(!1&o||a>=o)&&Object.keys(g.O).every((e=>g.O[e](t[i])))?t.splice(i--,1):(r=!1,o<a&&(a=o));if(r){l.splice(c--,1);var s=n();void 0!==s&&(e=s)}}return e}o=o||0;for(var c=l.length;c>0&&l[c-1][2]>o;c--)l[c]=l[c-1];l[c]=[t,n,o]},g.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return g.d(t,{a:t}),t},g.d=(e,t)=>{for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((t,n)=>(g.f[n](e,t),t)),[])),g.u=e=>e+".index.js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;g.g.importScripts&&(e=g.g.location+"");var t=g.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=e})(),(()=>{var e={985:1};g.f.i=(t,n)=>{e[t]||importScripts(g.p+g.u(t))};var t=self.webpackChunkcornerstoneTools3D=self.webpackChunkcornerstoneTools3D||[],n=t.push.bind(t);t.push=t=>{var o=t[0],a=t[1],r=t[2];for(var i in a)g.o(a,i)&&(g.m[i]=a[i]);for(r&&r(g);o.length;)e[o.pop()]=1;n(t)}})(),c=g.x,g.x=()=>g.e(78).then(c),g.x()})()));
|
|
2
2
|
//# sourceMappingURL=985.index.js.map
|