@cornerstonejs/dicom-image-loader 3.22.1 → 3.22.2
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.
|
@@ -212,10 +212,9 @@ function createImage(imageId, pixelData, transferSyntax, options = {}) {
|
|
|
212
212
|
}
|
|
213
213
|
if (image.windowCenter === undefined ||
|
|
214
214
|
image.windowWidth === undefined) {
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
image.
|
|
218
|
-
image.windowCenter = (maxVoi + minVoi) / 2;
|
|
215
|
+
const windowLevel = utilities.windowLevel.toWindowLevel(image.imageFrame.smallestPixelValue, image.imageFrame.largestPixelValue);
|
|
216
|
+
image.windowWidth = windowLevel.windowWidth;
|
|
217
|
+
image.windowCenter = windowLevel.windowCenter;
|
|
219
218
|
}
|
|
220
219
|
resolve(image);
|
|
221
220
|
}, reject);
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.22.
|
|
1
|
+
export declare const version = "3.22.2";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.22.
|
|
1
|
+
export const version = '3.22.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/dicom-image-loader",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.2",
|
|
4
4
|
"description": "Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DICOM",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"uuid": "^9.0.0"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
|
-
"@cornerstonejs/core": "^3.22.
|
|
119
|
+
"@cornerstonejs/core": "^3.22.2",
|
|
120
120
|
"dicom-parser": "^1.8.9"
|
|
121
121
|
},
|
|
122
122
|
"lint-staged": {
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"path": "./node_modules/cz-conventional-changelog"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "3d92fc6b7bb0483ba2a648a3207e3d29697690f0"
|
|
135
135
|
}
|