@cornerstonejs/core 4.5.8 → 4.5.10

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.
@@ -6,7 +6,8 @@ function toWindowLevel(low, high) {
6
6
  return { windowWidth, windowCenter };
7
7
  }
8
8
  function toLowHighRange(windowWidth, windowCenter, voiLUTFunction = VOILUTFunctionType.LINEAR) {
9
- if (voiLUTFunction === VOILUTFunctionType.LINEAR) {
9
+ if (voiLUTFunction === VOILUTFunctionType.LINEAR ||
10
+ voiLUTFunction === VOILUTFunctionType.SAMPLED_SIGMOID) {
10
11
  return {
11
12
  lower: windowCenter - 0.5 - (windowWidth - 1) / 2,
12
13
  upper: windowCenter - 0.5 + (windowWidth - 1) / 2,
@@ -18,14 +19,6 @@ function toLowHighRange(windowWidth, windowCenter, voiLUTFunction = VOILUTFuncti
18
19
  upper: windowCenter + windowWidth / 2,
19
20
  };
20
21
  }
21
- else if (voiLUTFunction === VOILUTFunctionType.SAMPLED_SIGMOID) {
22
- const xLower = logit(0.01, windowCenter, windowWidth);
23
- const xUpper = logit(0.99, windowCenter, windowWidth);
24
- return {
25
- lower: xLower,
26
- upper: xUpper,
27
- };
28
- }
29
22
  else {
30
23
  throw new Error('Invalid VOI LUT function');
31
24
  }
@@ -1 +1 @@
1
- export declare const version = "4.5.8";
1
+ export declare const version = "4.5.10";
@@ -1 +1 @@
1
- export const version = '4.5.8';
1
+ export const version = '4.5.10';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "4.5.8",
3
+ "version": "4.5.10",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -97,5 +97,5 @@
97
97
  "type": "individual",
98
98
  "url": "https://ohif.org/donate"
99
99
  },
100
- "gitHead": "8534f86040ba427cf37ae2d64b337e78a05b312c"
100
+ "gitHead": "6a800e1697d9caf1d44a37df50f7cdcaa9d658e7"
101
101
  }