@cornerstonejs/adapters 4.5.7 → 4.5.9
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.
|
@@ -219,6 +219,7 @@ function insertPixelDataPlanar(_ref4) {
|
|
|
219
219
|
const imageIdIndex = imageIdMaps.indices[imageId];
|
|
220
220
|
const labelmapImage = labelMapImages[imageIdIndex];
|
|
221
221
|
const labelmap2DView = labelmapImage.getPixelData();
|
|
222
|
+
const imageVoxelManager = labelmapImage.voxelManager;
|
|
222
223
|
const data = alignedPixelDataI.data;
|
|
223
224
|
const indexCache = [];
|
|
224
225
|
for (let k = 0, len = alignedPixelDataI.data.length; k < len; ++k) {
|
|
@@ -241,7 +242,11 @@ function insertPixelDataPlanar(_ref4) {
|
|
|
241
242
|
imageIdMaps
|
|
242
243
|
}));
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
if (imageVoxelManager) {
|
|
246
|
+
imageVoxelManager.setAtIndex(x, segmentIndex);
|
|
247
|
+
} else {
|
|
248
|
+
labelmap2DView[x] = segmentIndex;
|
|
249
|
+
}
|
|
245
250
|
indexCache.push(x);
|
|
246
251
|
}
|
|
247
252
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.5.
|
|
1
|
+
export declare const version = "4.5.9";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/adapters",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.9",
|
|
4
4
|
"description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"ndarray": "1.0.19"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@cornerstonejs/core": "4.5.
|
|
93
|
-
"@cornerstonejs/tools": "4.5.
|
|
92
|
+
"@cornerstonejs/core": "4.5.9",
|
|
93
|
+
"@cornerstonejs/tools": "4.5.9"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "4a7c39f07b5c1890772a4ed258a23bb6c7c56965"
|
|
96
96
|
}
|