dwv 0.33.0-beta.33 → 0.33.0-beta.35
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/dwv.d.ts +26 -10
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -774,10 +774,9 @@ export declare namespace defaults {
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
|
-
*
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
* DICOM code.
|
|
777
|
+
* DICOM code: item of a basic code sequence.
|
|
778
|
+
*
|
|
779
|
+
* @see https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_8.8.html
|
|
781
780
|
*/
|
|
782
781
|
export declare class DicomCode {
|
|
783
782
|
/**
|
|
@@ -2467,15 +2466,22 @@ export declare const luts: {
|
|
|
2467
2466
|
* Mask {@link Image} factory.
|
|
2468
2467
|
*/
|
|
2469
2468
|
export declare class MaskFactory {
|
|
2469
|
+
/**
|
|
2470
|
+
* Get a warning string if elements are not as expected.
|
|
2471
|
+
* Created by checkElements.
|
|
2472
|
+
*
|
|
2473
|
+
* @returns {string|undefined} The warning.
|
|
2474
|
+
*/
|
|
2475
|
+
getWarning(): string | undefined;
|
|
2470
2476
|
/**
|
|
2471
2477
|
* Check dicom elements. Throws an error if not suitable.
|
|
2472
2478
|
*
|
|
2473
2479
|
* @param {Object<string, DataElement>} _dicomElements The DICOM tags.
|
|
2474
|
-
* @returns {
|
|
2480
|
+
* @returns {string|undefined} A possible warning.
|
|
2475
2481
|
*/
|
|
2476
2482
|
checkElements(_dicomElements: {
|
|
2477
2483
|
[x: string]: DataElement;
|
|
2478
|
-
}):
|
|
2484
|
+
}): string | undefined;
|
|
2479
2485
|
/**
|
|
2480
2486
|
* Get an {@link Image} object from the read DICOM file.
|
|
2481
2487
|
*
|
|
@@ -2488,13 +2494,23 @@ export declare class MaskFactory {
|
|
|
2488
2494
|
create(dataElements: {
|
|
2489
2495
|
[x: string]: DataElement;
|
|
2490
2496
|
}, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array): Image_2;
|
|
2497
|
+
/**
|
|
2498
|
+
* Convert a mask image into a DICOM segmentation object.
|
|
2499
|
+
*
|
|
2500
|
+
* @param {Image} image The mask image.
|
|
2501
|
+
* @param {MaskSegment[]} segments The mask segments.
|
|
2502
|
+
* @param {Image} sourceImage The source image.
|
|
2503
|
+
* @param {object} [extraTags] Optional list of extra tags.
|
|
2504
|
+
* @returns {object} A list of dicom elements.
|
|
2505
|
+
*/
|
|
2506
|
+
toDicom(image: Image_2, segments: MaskSegment[], sourceImage: Image_2, extraTags?: object): object;
|
|
2507
|
+
#private;
|
|
2491
2508
|
}
|
|
2492
2509
|
|
|
2493
2510
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
* DICOM (mask) segment.
|
|
2511
|
+
* DICOM (mask) segment: item of a SegmentSequence (0062,0002).
|
|
2512
|
+
*
|
|
2513
|
+
* @see https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_C.8.20.4.html
|
|
2498
2514
|
*/
|
|
2499
2515
|
export declare class MaskSegment {
|
|
2500
2516
|
/**
|