larvitar 3.6.0 → 3.6.1

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.
@@ -1835,9 +1835,9 @@ export type MetaDataTypes = {
1835
1835
  x00281080?: string;
1836
1836
  x00281090?: string;
1837
1837
  x00281100?: number;
1838
- x00281101?: number;
1839
- x00281102?: number;
1840
- x00281103?: number;
1838
+ x00281101?: number[];
1839
+ x00281102?: number[];
1840
+ x00281103?: number[];
1841
1841
  x00281104?: number;
1842
1842
  x00281111?: number;
1843
1843
  x00281112?: number;
@@ -3492,4 +3492,5 @@ export type MetaDataTypes = {
3492
3492
  x300e0005?: string;
3493
3493
  x300e0008?: string;
3494
3494
  x50003000?: MetaDataTypes[];
3495
+ x7fe00010?: number;
3495
3496
  };
@@ -3,31 +3,13 @@
3
3
  * custom DICOMImageLoaders
4
4
  */
5
5
  import { DataSet } from "dicom-parser";
6
- import type { MetaData } from "../types";
6
+ import type { ImageFrame, MetaData } from "../types";
7
7
  /**
8
8
  * Compute and return image frame
9
9
  * @instance
10
10
  * @function getImageFrame
11
- * @param {Object} metadata metadata object
12
- * @param {Object} dataSet dicom dataset
11
+ * @param {MetaData} metadata metadata object
12
+ * @param {DataSet} dataSet dicom dataset
13
13
  * @returns {Object} specific image frame
14
14
  */
15
- export declare const getImageFrame: (metadata: MetaData, dataSet: DataSet) => {
16
- samplesPerPixel: any;
17
- photometricInterpretation: any;
18
- planarConfiguration: any;
19
- rows: any;
20
- columns: any;
21
- bitsAllocated: any;
22
- pixelRepresentation: any;
23
- smallestPixelValue: any;
24
- largestPixelValue: any;
25
- redPaletteColorLookupTableDescriptor: any;
26
- greenPaletteColorLookupTableDescriptor: any;
27
- bluePaletteColorLookupTableDescriptor: any;
28
- redPaletteColorLookupTableData: any;
29
- greenPaletteColorLookupTableData: any;
30
- bluePaletteColorLookupTableData: any;
31
- pixelData: undefined;
32
- ImageData: undefined;
33
- };
15
+ export declare const getImageFrame: (metadata: MetaData, dataSet?: DataSet) => ImageFrame;
@@ -7,11 +7,11 @@ import type { ImageObject, MetaData } from "../types";
7
7
  * Set the single frame cache
8
8
  * @export
9
9
  * @function setSingleFrameCache
10
- * @param {Array} data - Pixel data array
10
+ * @param {Array} pixelData - Pixel data array
11
11
  * @param {MetaData} metadata - Metadata object
12
12
  * @returns {ImageObject} - Image object
13
13
  */
14
- export declare const setSingleFrameCache: (data: Uint8ClampedArray, metadata: MetaData) => Promise<ImageObject>;
14
+ export declare const setSingleFrameCache: (pixelData: Uint8ClampedArray, metadata: MetaData) => Promise<ImageObject>;
15
15
  /**
16
16
  * Clear single frame cache
17
17
  * @export
@@ -239,16 +239,23 @@ export type FileManager = {
239
239
  [key: string]: string;
240
240
  } | null;
241
241
  export type ImageFrame = {
242
+ samplesPerPixel?: number;
243
+ photometricInterpretation?: string;
244
+ planarConfiguration?: number;
245
+ rows?: number;
246
+ columns?: number;
247
+ bitsAllocated?: number;
248
+ pixelRepresentation?: number;
249
+ smallestPixelValue?: number;
250
+ largestPixelValue?: number;
251
+ redPaletteColorLookupTableDescriptor?: number[];
252
+ greenPaletteColorLookupTableDescriptor?: number[];
253
+ bluePaletteColorLookupTableDescriptor?: number[];
254
+ redPaletteColorLookupTableData?: Uint8Array;
255
+ greenPaletteColorLookupTableData?: Uint8Array;
256
+ bluePaletteColorLookupTableData?: Uint8Array;
242
257
  pixelData?: Uint8ClampedArray | Uint16Array | Int16Array | Uint8Array;
243
- bitsAllocated: number;
244
- rows: number;
245
- columns: number;
246
- photometricInterpretation: string;
247
- samplesPerPixel: number;
248
- smallestPixelValue: number;
249
- largestPixelValue: number;
250
258
  imageData?: ImageData;
251
- pixelRepresentation: number;
252
259
  };
253
260
  export type ImageTracker = {
254
261
  [key: string]: string;