@cornerstonejs/dicom-image-loader 4.9.2 → 4.9.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.
@@ -1 +1,2 @@
1
+ export function postProcessDecodedPixels(imageFrame: any, options: any, start: any, decodeConfig: any): any;
1
2
  export function decodeImageFrame(imageFrame: any, transferSyntax: any, pixelData: any, decodeConfig: any, options: any, callbackFn: any): Promise<any>;
@@ -25,7 +25,7 @@ const typedArrayConstructors = {
25
25
  Float32Array,
26
26
  Uint32Array,
27
27
  };
28
- function postProcessDecodedPixels(imageFrame, options, start, decodeConfig) {
28
+ export function postProcessDecodedPixels(imageFrame, options, start, decodeConfig) {
29
29
  const shouldShift = imageFrame.pixelRepresentation !== undefined &&
30
30
  imageFrame.pixelRepresentation === 1;
31
31
  const shift = shouldShift && imageFrame.bitsStored !== undefined
@@ -13,7 +13,7 @@ import { default as getPixelData } from './imageLoader/wadors/getPixelData';
13
13
  import { internal } from './imageLoader/internal/index';
14
14
  import * as constants from './constants';
15
15
  import type * as Types from './types';
16
- import { decodeImageFrame } from './decodeImageFrameWorker';
16
+ import { decodeImageFrame, postProcessDecodedPixels } from './decodeImageFrameWorker';
17
17
  import { initializers, decoders } from './shared/decoders';
18
18
  declare const cornerstoneDICOMImageLoader: {
19
19
  constants: typeof constants;
@@ -92,6 +92,7 @@ declare const cornerstoneDICOMImageLoader: {
92
92
  getOptions: typeof import("./imageLoader/internal/options").getOptions;
93
93
  };
94
94
  decodeImageFrame: typeof decodeImageFrame;
95
+ postProcessDecodedPixels: typeof postProcessDecodedPixels;
95
96
  initializers: {
96
97
  HTJ2K: typeof import("./shared/decoders/decodeHTJ2K").initialize;
97
98
  JPEG2000: typeof import("./shared/decoders/decodeJPEG2000").initialize;
@@ -112,6 +113,6 @@ declare const cornerstoneDICOMImageLoader: {
112
113
  RLE: typeof import("./shared/decoders/decodeRLE").default;
113
114
  };
114
115
  };
115
- export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, initializers, decoders, };
116
+ export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, postProcessDecodedPixels, initializers, decoders, };
116
117
  export type { Types };
117
118
  export default cornerstoneDICOMImageLoader;
package/dist/esm/index.js CHANGED
@@ -12,7 +12,7 @@ import { default as isJPEGBaseline8BitColor } from './imageLoader/isJPEGBaseline
12
12
  import { default as getPixelData } from './imageLoader/wadors/getPixelData';
13
13
  import { internal } from './imageLoader/internal/index';
14
14
  import * as constants from './constants';
15
- import { decodeImageFrame } from './decodeImageFrameWorker';
15
+ import { decodeImageFrame, postProcessDecodedPixels, } from './decodeImageFrameWorker';
16
16
  import { initializers, decoders } from './shared/decoders';
17
17
  const cornerstoneDICOMImageLoader = {
18
18
  constants,
@@ -34,8 +34,9 @@ const cornerstoneDICOMImageLoader = {
34
34
  isJPEGBaseline8BitColor,
35
35
  internal,
36
36
  decodeImageFrame,
37
+ postProcessDecodedPixels,
37
38
  initializers,
38
39
  decoders,
39
40
  };
40
- export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, initializers, decoders, };
41
+ export { constants, convertRGBColorByPixel, convertRGBColorByPlane, convertYBRFullByPixel, convertYBRFullByPlane, convertPALETTECOLOR, wadouri, wadors, init, convertColorSpace, createImage, decodeJPEGBaseline8BitColor, getImageFrame, getPixelData, getMinMax, isColorImage, isJPEGBaseline8BitColor, internal, decodeImageFrame, postProcessDecodedPixels, initializers, decoders, };
41
42
  export default cornerstoneDICOMImageLoader;
@@ -1 +1 @@
1
- export declare const version = "4.9.2";
1
+ export declare const version = "4.9.3";
@@ -1 +1 @@
1
- export const version = '4.9.2';
1
+ export const version = '4.9.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/dicom-image-loader",
3
- "version": "4.9.2",
3
+ "version": "4.9.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.9.2",
115
+ "@cornerstonejs/core": "4.9.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": "d128e0856504bc33713d061f6642122b27ae82e3"
123
+ "gitHead": "d299aa6c94de2cc2284d407ab44727b0290fd414"
124
124
  }