@cornerstonejs/core 0.2.1 → 0.2.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.
- package/dist/cjs/RenderingEngine/helpers/cpuFallback/rendering/generateLut.js +2 -2
- package/dist/cjs/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.d.ts → getModalityLut.d.ts} +0 -0
- package/dist/cjs/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.js → getModalityLut.js} +1 -1
- package/dist/cjs/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.js.map → getModalityLut.js.map} +1 -1
- package/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/generateLut.js +2 -2
- package/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.d.ts → getModalityLut.d.ts} +0 -0
- package/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.js → getModalityLut.js} +1 -1
- package/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/{getModalityLUT.js.map → getModalityLut.js.map} +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const getModalityLut_1 = __importDefault(require("./getModalityLut"));
|
|
7
7
|
const getVOILut_1 = __importDefault(require("./getVOILut"));
|
|
8
8
|
function default_1(image, windowWidth, windowCenter, invert, modalityLUT, voiLUT) {
|
|
9
9
|
const maxPixelValue = image.maxPixelValue;
|
|
@@ -15,7 +15,7 @@ function default_1(image, windowWidth, windowCenter, invert, modalityLUT, voiLUT
|
|
|
15
15
|
image.cachedLut.lutArray = new Uint8ClampedArray(length);
|
|
16
16
|
}
|
|
17
17
|
const lut = image.cachedLut.lutArray;
|
|
18
|
-
const mlutfn = (0,
|
|
18
|
+
const mlutfn = (0, getModalityLut_1.default)(image.slope, image.intercept, modalityLUT);
|
|
19
19
|
const vlutfn = (0, getVOILut_1.default)(windowWidth, windowCenter, voiLUT);
|
|
20
20
|
if (invert === true) {
|
|
21
21
|
for (let storedValue = minPixelValue; storedValue <= maxPixelValue; storedValue++) {
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"getModalityLut.js","sourceRoot":"","sources":["../../../../../../src/RenderingEngine/helpers/cpuFallback/rendering/getModalityLut.ts"],"names":[],"mappings":";;AAcA,SAAS,yBAAyB,CAAC,KAAK,EAAE,SAAS;IACjD,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,KAAK,GAAG,SAAS,CAAC;AACpE,CAAC;AAED,SAAS,4BAA4B,CAAC,WAAW;IAC/C,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC7D,MAAM,cAAc,GAAG,WAAW,CAAC,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC;IAE7E,OAAO,CAAC,gBAAgB,EAAE,EAAE;QAC1B,IAAI,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,EAAE;YACnD,OAAO,QAAQ,CAAC;SACjB;aAAM,IAAI,gBAAgB,IAAI,cAAc,EAAE;YAC7C,OAAO,QAAQ,CAAC;SACjB;QAED,OAAO,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,CAAC;AACJ,CAAC;AAYD,mBACE,KAAa,EACb,SAAiB,EACjB,WAAoB;IAEpB,IAAI,WAAW,EAAE;QACf,OAAO,4BAA4B,CAAC,WAAW,CAAC,CAAC;KAClD;IAED,OAAO,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC;AAVD,4BAUC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import getModalityLut from './getModalityLut';
|
|
2
2
|
import getVOILUT from './getVOILut';
|
|
3
3
|
export default function (image, windowWidth, windowCenter, invert, modalityLUT, voiLUT) {
|
|
4
4
|
const maxPixelValue = image.maxPixelValue;
|
|
@@ -10,7 +10,7 @@ export default function (image, windowWidth, windowCenter, invert, modalityLUT,
|
|
|
10
10
|
image.cachedLut.lutArray = new Uint8ClampedArray(length);
|
|
11
11
|
}
|
|
12
12
|
const lut = image.cachedLut.lutArray;
|
|
13
|
-
const mlutfn =
|
|
13
|
+
const mlutfn = getModalityLut(image.slope, image.intercept, modalityLUT);
|
|
14
14
|
const vlutfn = getVOILUT(windowWidth, windowCenter, voiLUT);
|
|
15
15
|
if (invert === true) {
|
|
16
16
|
for (let storedValue = minPixelValue; storedValue <= maxPixelValue; storedValue++) {
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"getModalityLut.js","sourceRoot":"","sources":["../../../../../../src/RenderingEngine/helpers/cpuFallback/rendering/getModalityLut.ts"],"names":[],"mappings":"AAcA,SAAS,yBAAyB,CAAC,KAAK,EAAE,SAAS;IACjD,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,KAAK,GAAG,SAAS,CAAC;AACpE,CAAC;AAED,SAAS,4BAA4B,CAAC,WAAW;IAC/C,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC7D,MAAM,cAAc,GAAG,WAAW,CAAC,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC;IAE7E,OAAO,CAAC,gBAAgB,EAAE,EAAE;QAC1B,IAAI,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,EAAE;YACnD,OAAO,QAAQ,CAAC;SACjB;aAAM,IAAI,gBAAgB,IAAI,cAAc,EAAE;YAC7C,OAAO,QAAQ,CAAC;SACjB;QAED,OAAO,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,CAAC;AACJ,CAAC;AAYD,MAAM,CAAC,OAAO,WACZ,KAAa,EACb,SAAiB,EACjB,WAAoB;IAEpB,IAAI,WAAW,EAAE;QACf,OAAO,4BAA4B,CAAC,WAAW,CAAC,CAAC;KAClD;IAED,OAAO,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC"}
|