dwv 0.35.0-beta.17 → 0.35.0-beta.18.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.
- package/dist/dwv.d.ts +34 -15
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +12 -12
package/dist/dwv.d.ts
CHANGED
|
@@ -1350,15 +1350,19 @@ export declare class DicomCode {
|
|
|
1350
1350
|
*/
|
|
1351
1351
|
export declare class DicomData {
|
|
1352
1352
|
/**
|
|
1353
|
-
* @param {
|
|
1353
|
+
* @param {Object<string, DataElement>} meta The DICOM meta data.
|
|
1354
1354
|
*/
|
|
1355
|
-
constructor(meta:
|
|
1355
|
+
constructor(meta: {
|
|
1356
|
+
[x: string]: DataElement;
|
|
1357
|
+
});
|
|
1356
1358
|
/**
|
|
1357
1359
|
* DICOM meta data.
|
|
1358
1360
|
*
|
|
1359
|
-
* @type {
|
|
1361
|
+
* @type {Object<string, DataElement>}
|
|
1360
1362
|
*/
|
|
1361
|
-
meta:
|
|
1363
|
+
meta: {
|
|
1364
|
+
[x: string]: DataElement;
|
|
1365
|
+
};
|
|
1362
1366
|
/**
|
|
1363
1367
|
* Image extracted from meta data.
|
|
1364
1368
|
*
|
|
@@ -1371,6 +1375,12 @@ export declare class DicomData {
|
|
|
1371
1375
|
* @type {AnnotationGroup|undefined}
|
|
1372
1376
|
*/
|
|
1373
1377
|
annotationGroup: AnnotationGroup | undefined;
|
|
1378
|
+
/**
|
|
1379
|
+
* Image buffer used to build image.
|
|
1380
|
+
*
|
|
1381
|
+
* @type {any|undefined}
|
|
1382
|
+
*/
|
|
1383
|
+
buffer: any | undefined;
|
|
1374
1384
|
}
|
|
1375
1385
|
|
|
1376
1386
|
/**
|
|
@@ -2145,11 +2155,11 @@ export declare class Geometry {
|
|
|
2145
2155
|
* Check if a point is in the origin list.
|
|
2146
2156
|
*
|
|
2147
2157
|
* @param {Point3D} point3D The point to check.
|
|
2148
|
-
* @param {number} tol
|
|
2149
|
-
*
|
|
2158
|
+
* @param {number} [tol] Optional number comparison tolerance
|
|
2159
|
+
* defaults to Number.EPSILON.
|
|
2150
2160
|
* @returns {boolean} True if in list.
|
|
2151
2161
|
*/
|
|
2152
|
-
includesOrigin(point3D: Point3D, tol
|
|
2162
|
+
includesOrigin(point3D: Point3D, tol?: number): boolean;
|
|
2153
2163
|
/**
|
|
2154
2164
|
* Get the object size.
|
|
2155
2165
|
* Warning: the size comes as stored in DICOM, meaning that it could
|
|
@@ -3416,12 +3426,14 @@ export declare class MaskFactory {
|
|
|
3416
3426
|
* @param {Uint8Array | Int8Array |
|
|
3417
3427
|
* Uint16Array | Int16Array |
|
|
3418
3428
|
* Uint32Array | Int32Array} pixelBuffer The pixel buffer.
|
|
3429
|
+
* @param {Image} [refImage] Reference image, code will use its
|
|
3430
|
+
* origins if present (best) or try to calculate them.
|
|
3419
3431
|
* @returns {Image} A new Image.
|
|
3420
3432
|
* @throws Error for missing or wrong data.
|
|
3421
3433
|
*/
|
|
3422
3434
|
create(dataElements: {
|
|
3423
3435
|
[x: string]: DataElement;
|
|
3424
|
-
}, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array): Image_2;
|
|
3436
|
+
}, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array, refImage?: Image_2): Image_2;
|
|
3425
3437
|
/**
|
|
3426
3438
|
* Convert a mask image into a DICOM segmentation object.
|
|
3427
3439
|
*
|
|
@@ -3639,11 +3651,18 @@ export declare class Matrix33 {
|
|
|
3639
3651
|
* Check for Matrix33 equality.
|
|
3640
3652
|
*
|
|
3641
3653
|
* @param {Matrix33} rhs The other matrix to compare to.
|
|
3642
|
-
* @param {number} [p] A numeric expression for the precision to use in check
|
|
3643
|
-
* (ex: 0.001). Defaults to Number.EPSILON if not provided.
|
|
3644
3654
|
* @returns {boolean} True if both matrices are equal.
|
|
3645
3655
|
*/
|
|
3646
|
-
equals(rhs: Matrix33
|
|
3656
|
+
equals(rhs: Matrix33): boolean;
|
|
3657
|
+
/**
|
|
3658
|
+
* Check for Matrix33 similarity.
|
|
3659
|
+
*
|
|
3660
|
+
* @param {Matrix33} rhs The other matrix to compare to.
|
|
3661
|
+
* @param {number} [tol] Optional number comparison tolerance,
|
|
3662
|
+
* defaults to Number.EPSILON.
|
|
3663
|
+
* @returns {boolean} True if both matrices are similar.
|
|
3664
|
+
*/
|
|
3665
|
+
isSimilar(rhs: Matrix33, tol?: number): boolean;
|
|
3647
3666
|
/**
|
|
3648
3667
|
* Get a string representation of the Matrix33.
|
|
3649
3668
|
*
|
|
@@ -4133,11 +4152,11 @@ export declare class Point3D {
|
|
|
4133
4152
|
* Check for Point3D similarity.
|
|
4134
4153
|
*
|
|
4135
4154
|
* @param {Point3D} rhs The other point to compare to.
|
|
4136
|
-
* @param {number} tol Optional comparison tolerance,
|
|
4137
|
-
*
|
|
4138
|
-
* @returns {boolean} True if both points are
|
|
4155
|
+
* @param {number} [tol] Optional number comparison tolerance,
|
|
4156
|
+
* defaults to Number.EPSILON.
|
|
4157
|
+
* @returns {boolean} True if both points are similar.
|
|
4139
4158
|
*/
|
|
4140
|
-
isSimilar(rhs: Point3D, tol
|
|
4159
|
+
isSimilar(rhs: Point3D, tol?: number): boolean;
|
|
4141
4160
|
/**
|
|
4142
4161
|
* Get a string representation of the Point3D.
|
|
4143
4162
|
*
|