@cornerstonejs/tools 2.7.0 → 2.7.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cache } from '@cornerstonejs/core';
|
|
2
2
|
import shaderCode from './growCutShader';
|
|
3
3
|
const GB = 1024 * 1024 * 1024;
|
|
4
|
-
const WEBGPU_MEMORY_LIMIT =
|
|
4
|
+
const WEBGPU_MEMORY_LIMIT = 1.99 * GB;
|
|
5
5
|
const DEFAULT_GROWCUT_OPTIONS = {
|
|
6
6
|
windowSize: 3,
|
|
7
7
|
maxProcessingTime: 30000,
|
|
@@ -33,7 +33,7 @@ async function runGrowCut(referenceVolumeId, labelmapVolumeId, options = DEFAULT
|
|
|
33
33
|
maxStorageBufferBindingSize: WEBGPU_MEMORY_LIMIT,
|
|
34
34
|
maxBufferSize: WEBGPU_MEMORY_LIMIT,
|
|
35
35
|
};
|
|
36
|
-
const adapter = await navigator.gpu
|
|
36
|
+
const adapter = await navigator.gpu?.requestAdapter();
|
|
37
37
|
const device = await adapter.requestDevice({ requiredLimits });
|
|
38
38
|
const BUFFER_SIZE = volumePixelData.byteLength;
|
|
39
39
|
const UPDATED_VOXELS_COUNTER_BUFFER_SIZE = numIterations * Uint32Array.BYTES_PER_ELEMENT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"canvas": "^2.11.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@cornerstonejs/core": "^2.7.
|
|
107
|
+
"@cornerstonejs/core": "^2.7.1",
|
|
108
108
|
"@kitware/vtk.js": "32.1.1",
|
|
109
109
|
"@types/d3-array": "^3.0.4",
|
|
110
110
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"type": "individual",
|
|
124
124
|
"url": "https://ohif.org/donate"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "bad9df9ca06d63d00d0ea9463364c355c1a57850"
|
|
127
127
|
}
|