@cornerstonejs/dicom-image-loader 4.16.2 → 4.16.3
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/esm/imageLoader/colorSpaceConverters/convertPALETTECOLOR.d.ts +3 -2
- package/dist/esm/imageLoader/colorSpaceConverters/convertPALETTECOLOR.js +40 -51
- package/dist/esm/imageLoader/colorSpaceConverters/fetchLUTForInstance.d.ts +2 -0
- package/dist/esm/imageLoader/colorSpaceConverters/fetchLUTForInstance.js +23 -0
- package/dist/esm/imageLoader/colorSpaceConverters/fetchPaletteData.d.ts +2 -0
- package/dist/esm/imageLoader/colorSpaceConverters/fetchPaletteData.js +14 -0
- package/dist/esm/imageLoader/colorSpaceConverters/index.d.ts +3 -2
- package/dist/esm/imageLoader/colorSpaceConverters/index.js +3 -2
- package/dist/esm/imageLoader/convertColorSpace.js +2 -2
- package/dist/esm/imageLoader/createImage.js +15 -1
- package/dist/esm/imageLoader/index.d.ts +4 -3
- package/dist/esm/imageLoader/index.js +4 -3
- package/dist/esm/index.d.ts +4 -3
- package/dist/esm/index.js +4 -3
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ByteArray } from 'dicom-parser';
|
|
2
|
-
import {
|
|
3
|
-
export default function (imageFrame: Types.IImageFrame, colorBuffer: ByteArray, useRGBA: boolean): void;
|
|
2
|
+
import type { Types } from '@cornerstonejs/core';
|
|
3
|
+
export default function convertPaletteColor(imageFrame: Types.IImageFrame, colorBuffer: ByteArray, useRGBA: boolean): void;
|
|
4
|
+
export declare function convertPaletteColorWithFetch(imageFrame: Types.IImageFrame, colorBuffer: ByteArray, useRGBA: boolean): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchLUTForInstance } from './fetchLUTForInstance';
|
|
2
2
|
function convertLUTto8Bit(lut, shift) {
|
|
3
3
|
const numEntries = lut.length;
|
|
4
4
|
const cleanedLUT = new Uint8ClampedArray(numEntries);
|
|
@@ -7,57 +7,25 @@ function convertLUTto8Bit(lut, shift) {
|
|
|
7
7
|
}
|
|
8
8
|
return cleanedLUT;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const data = imageFrame[`${color}PaletteColorLookupTableData`];
|
|
12
|
-
if (data) {
|
|
13
|
-
return Promise.resolve(data);
|
|
14
|
-
}
|
|
15
|
-
const result = metaData.get('imagePixelModule', imageFrame.imageId);
|
|
16
|
-
if (result && typeof result.then === 'function') {
|
|
17
|
-
return result.then((module) => module ? module[`${color}PaletteColorLookupTableData`] : fallback);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return Promise.resolve(result ? result[`${color}PaletteColorLookupTableData`] : fallback);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export default function (imageFrame, colorBuffer, useRGBA) {
|
|
10
|
+
export default function convertPaletteColor(imageFrame, colorBuffer, useRGBA) {
|
|
24
11
|
const numPixels = imageFrame.columns * imageFrame.rows;
|
|
25
12
|
const pixelData = imageFrame.pixelData;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (useRGBA) {
|
|
43
|
-
for (let i = 0; i < numPixels; ++i) {
|
|
44
|
-
let value = pixelData[palIndex++];
|
|
45
|
-
if (value < start) {
|
|
46
|
-
value = 0;
|
|
47
|
-
}
|
|
48
|
-
else if (value > start + len - 1) {
|
|
49
|
-
value = len - 1;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
value -= start;
|
|
53
|
-
}
|
|
54
|
-
colorBuffer[bufferIndex++] = rDataCleaned[value];
|
|
55
|
-
colorBuffer[bufferIndex++] = gDataCleaned[value];
|
|
56
|
-
colorBuffer[bufferIndex++] = bDataCleaned[value];
|
|
57
|
-
colorBuffer[bufferIndex++] = 255;
|
|
58
|
-
}
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
13
|
+
const rData = imageFrame.redPaletteColorLookupTableData;
|
|
14
|
+
const gData = imageFrame.greenPaletteColorLookupTableData;
|
|
15
|
+
const bData = imageFrame.bluePaletteColorLookupTableData;
|
|
16
|
+
if (!rData || !gData || !bData) {
|
|
17
|
+
throw new Error('The image does not have a complete color palette. R, G, and B palette data are required.');
|
|
18
|
+
}
|
|
19
|
+
const len = rData.length;
|
|
20
|
+
let palIndex = 0;
|
|
21
|
+
let bufferIndex = 0;
|
|
22
|
+
const start = imageFrame.redPaletteColorLookupTableDescriptor[1];
|
|
23
|
+
const bitsStored = imageFrame.redPaletteColorLookupTableDescriptor[2];
|
|
24
|
+
const shift = bitsStored > 8 || rData.some((num) => num > 255) ? 8 : 0;
|
|
25
|
+
const rDataCleaned = convertLUTto8Bit(rData, shift);
|
|
26
|
+
const gDataCleaned = convertLUTto8Bit(gData, shift);
|
|
27
|
+
const bDataCleaned = convertLUTto8Bit(bData, shift);
|
|
28
|
+
if (useRGBA) {
|
|
61
29
|
for (let i = 0; i < numPixels; ++i) {
|
|
62
30
|
let value = pixelData[palIndex++];
|
|
63
31
|
if (value < start) {
|
|
@@ -72,6 +40,27 @@ export default function (imageFrame, colorBuffer, useRGBA) {
|
|
|
72
40
|
colorBuffer[bufferIndex++] = rDataCleaned[value];
|
|
73
41
|
colorBuffer[bufferIndex++] = gDataCleaned[value];
|
|
74
42
|
colorBuffer[bufferIndex++] = bDataCleaned[value];
|
|
43
|
+
colorBuffer[bufferIndex++] = 255;
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
for (let i = 0; i < numPixels; ++i) {
|
|
48
|
+
let value = pixelData[palIndex++];
|
|
49
|
+
if (value < start) {
|
|
50
|
+
value = 0;
|
|
51
|
+
}
|
|
52
|
+
else if (value > start + len - 1) {
|
|
53
|
+
value = len - 1;
|
|
75
54
|
}
|
|
76
|
-
|
|
55
|
+
else {
|
|
56
|
+
value -= start;
|
|
57
|
+
}
|
|
58
|
+
colorBuffer[bufferIndex++] = rDataCleaned[value];
|
|
59
|
+
colorBuffer[bufferIndex++] = gDataCleaned[value];
|
|
60
|
+
colorBuffer[bufferIndex++] = bDataCleaned[value];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export async function convertPaletteColorWithFetch(imageFrame, colorBuffer, useRGBA) {
|
|
64
|
+
await fetchLUTForInstance(imageFrame);
|
|
65
|
+
convertPaletteColor(imageFrame, colorBuffer, useRGBA);
|
|
77
66
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { metaData } from '@cornerstonejs/core';
|
|
2
|
+
import { fetchPaletteData } from './fetchPaletteData';
|
|
3
|
+
export async function fetchLUTForInstance(imageFrame) {
|
|
4
|
+
const fetchPromises = [];
|
|
5
|
+
const needsPaletteLUT = !imageFrame.redPaletteColorLookupTableData ||
|
|
6
|
+
!imageFrame.greenPaletteColorLookupTableData ||
|
|
7
|
+
!imageFrame.bluePaletteColorLookupTableData;
|
|
8
|
+
if (needsPaletteLUT) {
|
|
9
|
+
const palettePromises = Promise.all([
|
|
10
|
+
fetchPaletteData(imageFrame, 'red', null),
|
|
11
|
+
fetchPaletteData(imageFrame, 'green', null),
|
|
12
|
+
fetchPaletteData(imageFrame, 'blue', null),
|
|
13
|
+
]).then(([redData, greenData, blueData]) => {
|
|
14
|
+
imageFrame.redPaletteColorLookupTableData = redData;
|
|
15
|
+
imageFrame.greenPaletteColorLookupTableData = greenData;
|
|
16
|
+
imageFrame.bluePaletteColorLookupTableData = blueData;
|
|
17
|
+
});
|
|
18
|
+
fetchPromises.push(palettePromises);
|
|
19
|
+
}
|
|
20
|
+
if (fetchPromises.length > 0) {
|
|
21
|
+
await Promise.all(fetchPromises);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { metaData } from '@cornerstonejs/core';
|
|
2
|
+
export function fetchPaletteData(imageFrame, color, fallback) {
|
|
3
|
+
const data = imageFrame[`${color}PaletteColorLookupTableData`];
|
|
4
|
+
if (data) {
|
|
5
|
+
return Promise.resolve(data);
|
|
6
|
+
}
|
|
7
|
+
const result = metaData.get('imagePixelModule', imageFrame.imageId);
|
|
8
|
+
if (result && typeof result.then === 'function') {
|
|
9
|
+
return result.then((module) => module ? module[`${color}PaletteColorLookupTableData`] : fallback);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return Promise.resolve(result ? result[`${color}PaletteColorLookupTableData`] : fallback);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -3,5 +3,6 @@ import { default as convertRGBColorByPlane } from './convertRGBColorByPlane';
|
|
|
3
3
|
import { default as convertYBRFullByPixel } from './convertYBRFullByPixel';
|
|
4
4
|
import { default as convertYBRFullByPlane } from './convertYBRFullByPlane';
|
|
5
5
|
import { default as convertYBRFull422ByPixel } from './convertYBRFull422ByPixel';
|
|
6
|
-
import { default as
|
|
7
|
-
|
|
6
|
+
import { default as convertPaletteColor, convertPaletteColorWithFetch } from './convertPALETTECOLOR';
|
|
7
|
+
import { fetchLUTForInstance } from './fetchLUTForInstance';
|
|
8
|
+
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertYBRFull422ByPixel, convertPaletteColor, convertPaletteColorWithFetch, fetchLUTForInstance, };
|
|
@@ -3,5 +3,6 @@ import { default as convertRGBColorByPlane } from './convertRGBColorByPlane';
|
|
|
3
3
|
import { default as convertYBRFullByPixel } from './convertYBRFullByPixel';
|
|
4
4
|
import { default as convertYBRFullByPlane } from './convertYBRFullByPlane';
|
|
5
5
|
import { default as convertYBRFull422ByPixel } from './convertYBRFull422ByPixel';
|
|
6
|
-
import { default as
|
|
7
|
-
|
|
6
|
+
import { default as convertPaletteColor, convertPaletteColorWithFetch, } from './convertPALETTECOLOR';
|
|
7
|
+
import { fetchLUTForInstance } from './fetchLUTForInstance';
|
|
8
|
+
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertYBRFull422ByPixel, convertPaletteColor, convertPaletteColorWithFetch, fetchLUTForInstance, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFull422ByPixel, convertYBRFullByPlane,
|
|
1
|
+
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFull422ByPixel, convertYBRFullByPlane, convertPaletteColor, } from './colorSpaceConverters/index';
|
|
2
2
|
function convertRGB(imageFrame, colorBuffer, useRGBA) {
|
|
3
3
|
if (imageFrame.planarConfiguration === 0) {
|
|
4
4
|
convertRGBColorByPixel(imageFrame.pixelData, colorBuffer, useRGBA);
|
|
@@ -26,7 +26,7 @@ export default function convertColorSpace(imageFrame, colorBuffer, useRGBA) {
|
|
|
26
26
|
convertRGBColorByPixel(imageFrame.pixelData, colorBuffer, useRGBA);
|
|
27
27
|
}
|
|
28
28
|
else if (imageFrame.photometricInterpretation === 'PALETTE COLOR') {
|
|
29
|
-
|
|
29
|
+
convertPaletteColor(imageFrame, colorBuffer, useRGBA);
|
|
30
30
|
}
|
|
31
31
|
else if (imageFrame.photometricInterpretation === 'YBR_FULL_422') {
|
|
32
32
|
convertYBRFull422ByPixel(imageFrame.pixelData, colorBuffer, useRGBA);
|
|
@@ -10,8 +10,9 @@ import isColorImageFn from '../shared/isColorImage';
|
|
|
10
10
|
import removeAFromRGBA from './removeAFromRGBA';
|
|
11
11
|
import isModalityLUTForDisplay from './isModalityLutForDisplay';
|
|
12
12
|
import setPixelDataType from './setPixelDataType';
|
|
13
|
+
import { fetchPaletteData } from './colorSpaceConverters/fetchPaletteData';
|
|
13
14
|
let lastImageIdDrawn = '';
|
|
14
|
-
function createImage(imageId, pixelData, transferSyntax, options = {}) {
|
|
15
|
+
async function createImage(imageId, pixelData, transferSyntax, options = {}) {
|
|
15
16
|
const useRGBA = options.useRGBA;
|
|
16
17
|
options.preScale = {
|
|
17
18
|
enabled: options.preScale && options.preScale.enabled !== undefined
|
|
@@ -26,6 +27,14 @@ function createImage(imageId, pixelData, transferSyntax, options = {}) {
|
|
|
26
27
|
const imageFrame = getImageFrame(imageId);
|
|
27
28
|
imageFrame.decodeLevel = options.decodeLevel;
|
|
28
29
|
options.allowFloatRendering = canRenderFloatTextures();
|
|
30
|
+
let redData, greenData, blueData;
|
|
31
|
+
if (imageFrame.photometricInterpretation === 'PALETTE COLOR') {
|
|
32
|
+
[redData, greenData, blueData] = await Promise.all([
|
|
33
|
+
fetchPaletteData(imageFrame, 'red', null),
|
|
34
|
+
fetchPaletteData(imageFrame, 'green', null),
|
|
35
|
+
fetchPaletteData(imageFrame, 'blue', null),
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
29
38
|
if (options.preScale.enabled) {
|
|
30
39
|
const scalingParameters = getScalingParameters(metaData, imageId);
|
|
31
40
|
if (scalingParameters) {
|
|
@@ -85,6 +94,11 @@ function createImage(imageId, pixelData, transferSyntax, options = {}) {
|
|
|
85
94
|
const sopCommonModule = metaData.get(MetadataModules.SOP_COMMON, imageId) || {};
|
|
86
95
|
const calibrationModule = metaData.get(MetadataModules.CALIBRATION, imageId) || {};
|
|
87
96
|
const { rows, columns } = imageFrame;
|
|
97
|
+
if (imageFrame.photometricInterpretation === 'PALETTE COLOR') {
|
|
98
|
+
imageFrame.redPaletteColorLookupTableData = redData;
|
|
99
|
+
imageFrame.greenPaletteColorLookupTableData = greenData;
|
|
100
|
+
imageFrame.bluePaletteColorLookupTableData = blueData;
|
|
101
|
+
}
|
|
88
102
|
if (isColorImage) {
|
|
89
103
|
if (isColorConversionRequired(imageFrame)) {
|
|
90
104
|
canvas.height = imageFrame.rows;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
1
|
+
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch } from './colorSpaceConverters/index';
|
|
2
2
|
import { default as wadouri } from './wadouri/index';
|
|
3
3
|
import { default as wadors } from './wadors/index';
|
|
4
4
|
import { default as init } from '../init';
|
|
@@ -21,7 +21,8 @@ declare const cornerstoneDICOMImageLoader: {
|
|
|
21
21
|
convertRGBColorByPlane: typeof convertRGBColorByPlane;
|
|
22
22
|
convertYBRFullByPixel: typeof convertYBRFullByPixel;
|
|
23
23
|
convertYBRFullByPlane: typeof convertYBRFullByPlane;
|
|
24
|
-
|
|
24
|
+
convertPaletteColor: typeof convertPaletteColor;
|
|
25
|
+
convertPaletteColorWithFetch: typeof convertPaletteColorWithFetch;
|
|
25
26
|
wadouri: {
|
|
26
27
|
metaData: {
|
|
27
28
|
getImagePixelModule: typeof import("./wadouri/metaData").getImagePixelModule;
|
|
@@ -97,5 +98,5 @@ declare const cornerstoneDICOMImageLoader: {
|
|
|
97
98
|
getOptions: typeof import("./internal/options").getOptions;
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
|
-
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
101
|
+
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColorWithFetch, convertPaletteColor, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, };
|
|
101
102
|
export default cornerstoneDICOMImageLoader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
1
|
+
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch, } from './colorSpaceConverters/index';
|
|
2
2
|
import { default as wadouri } from './wadouri/index';
|
|
3
3
|
import { default as wadors } from './wadors/index';
|
|
4
4
|
import { default as init } from '../init';
|
|
@@ -21,7 +21,8 @@ const cornerstoneDICOMImageLoader = {
|
|
|
21
21
|
convertRGBColorByPlane,
|
|
22
22
|
convertYBRFullByPixel,
|
|
23
23
|
convertYBRFullByPlane,
|
|
24
|
-
|
|
24
|
+
convertPaletteColor,
|
|
25
|
+
convertPaletteColorWithFetch,
|
|
25
26
|
wadouri,
|
|
26
27
|
wadors,
|
|
27
28
|
init,
|
|
@@ -40,5 +41,5 @@ const cornerstoneDICOMImageLoader = {
|
|
|
40
41
|
setPixelDataType,
|
|
41
42
|
internal,
|
|
42
43
|
};
|
|
43
|
-
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
44
|
+
export { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColorWithFetch, convertPaletteColor, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, };
|
|
44
45
|
export default cornerstoneDICOMImageLoader;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
1
|
+
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch } from './imageLoader/colorSpaceConverters/index';
|
|
2
2
|
import { default as wadouri } from './imageLoader/wadouri/index';
|
|
3
3
|
import { default as wadors } from './imageLoader/wadors/index';
|
|
4
4
|
import { default as init } from './init';
|
|
@@ -21,7 +21,8 @@ declare const cornerstoneDICOMImageLoader: {
|
|
|
21
21
|
convertRGBColorByPlane: typeof convertRGBColorByPlane;
|
|
22
22
|
convertYBRFullByPixel: typeof convertYBRFullByPixel;
|
|
23
23
|
convertYBRFullByPlane: typeof convertYBRFullByPlane;
|
|
24
|
-
|
|
24
|
+
convertPaletteColor: typeof convertPaletteColor;
|
|
25
|
+
convertPaletteColorWithFetch: typeof convertPaletteColorWithFetch;
|
|
25
26
|
wadouri: {
|
|
26
27
|
metaData: {
|
|
27
28
|
getImagePixelModule: typeof import("./imageLoader/wadouri/metaData").getImagePixelModule;
|
|
@@ -113,6 +114,6 @@ declare const cornerstoneDICOMImageLoader: {
|
|
|
113
114
|
RLE: typeof import("./shared/decoders/decodeRLE").default;
|
|
114
115
|
};
|
|
115
116
|
};
|
|
116
|
-
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
117
|
+
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, postProcessDecodedPixels, initializers, decoders, };
|
|
117
118
|
export type { Types };
|
|
118
119
|
export default cornerstoneDICOMImageLoader;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
1
|
+
import { convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch, } from './imageLoader/colorSpaceConverters/index';
|
|
2
2
|
import { default as wadouri } from './imageLoader/wadouri/index';
|
|
3
3
|
import { default as wadors } from './imageLoader/wadors/index';
|
|
4
4
|
import { default as init } from './init';
|
|
@@ -20,7 +20,8 @@ const cornerstoneDICOMImageLoader = {
|
|
|
20
20
|
convertRGBColorByPlane,
|
|
21
21
|
convertYBRFullByPixel,
|
|
22
22
|
convertYBRFullByPlane,
|
|
23
|
-
|
|
23
|
+
convertPaletteColor,
|
|
24
|
+
convertPaletteColorWithFetch,
|
|
24
25
|
wadouri,
|
|
25
26
|
wadors,
|
|
26
27
|
init,
|
|
@@ -38,5 +39,5 @@ const cornerstoneDICOMImageLoader = {
|
|
|
38
39
|
initializers,
|
|
39
40
|
decoders,
|
|
40
41
|
};
|
|
41
|
-
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane,
|
|
42
|
+
export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPaletteColor, convertPaletteColorWithFetch, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, postProcessDecodedPixels, initializers, decoders, };
|
|
42
43
|
export default cornerstoneDICOMImageLoader;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.16.
|
|
1
|
+
export declare const version = "4.16.3";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.16.
|
|
1
|
+
export const version = '4.16.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/dicom-image-loader",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.3",
|
|
4
4
|
"description": "Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DICOM",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"uuid": "9.0.1"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
|
-
"@cornerstonejs/core": "4.16.
|
|
115
|
+
"@cornerstonejs/core": "4.16.3",
|
|
116
116
|
"dicom-parser": "1.8.21"
|
|
117
117
|
},
|
|
118
118
|
"config": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"path": "./node_modules/cz-conventional-changelog"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "fdc31b29ccd1f731449ab6e0ca0b19dc0ffb2ada"
|
|
124
124
|
}
|