dwv 0.37.0-beta.22 → 0.37.0-beta.24

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 CHANGED
@@ -1777,7 +1777,7 @@ export declare class Diameters {
1777
1777
  /**
1778
1778
  * DICOM code: item of a basic code sequence.
1779
1779
  *
1780
- * Ref: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_8.8.html}.
1780
+ * Ref: {@link https://dicom.nema.org/medical/dicom/2024a/output/chtml/part03/sect_8.8.html}.
1781
1781
  */
1782
1782
  export declare class DicomCode {
1783
1783
  /**
@@ -1975,7 +1975,7 @@ export declare class DicomParser {
1975
1975
  /**
1976
1976
  * DICOM SR content: item of a SR content sequence.
1977
1977
  *
1978
- * Ref: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_C.17.3.html}.
1978
+ * Ref: {@link https://dicom.nema.org/medical/dicom/2024a/output/chtml/part03/sect_C.17.3.html}.
1979
1979
  */
1980
1980
  export declare class DicomSRContent {
1981
1981
  /**
@@ -3338,7 +3338,7 @@ export declare function getTypedArray(bitsAllocated: number, pixelRepresentation
3338
3338
  * Note: Use {@link https://github.com/uuidjs/uuid}?
3339
3339
  *
3340
3340
  * Ref:
3341
- * - {@link http://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/chapter_9.html},
3341
+ * - {@link http://dicom.nema.org/medical/dicom/2024a/output/chtml/part05/chapter_9.html},
3342
3342
  * - {@link http://dicomiseasy.blogspot.com/2011/12/chapter-4-dicom-objects-in-chapter-3.html},
3343
3343
  * - {@link https://stackoverflow.com/questions/46304306/how-to-generate-unique-dicom-uid}.
3344
3344
  *
@@ -3370,7 +3370,7 @@ export declare function handleURLsFromWeasisXMLManifest(uri: string, callback: F
3370
3370
  * Check that an input buffer includes the DICOM prefix 'DICM'
3371
3371
  * after the 128 bytes preamble.
3372
3372
  *
3373
- * Ref: [DICOM File Meta]{@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part10/chapter_7.html#sect_7.1}.
3373
+ * Ref: [DICOM File Meta]{@link https://dicom.nema.org/medical/dicom/2024a/output/chtml/part10/chapter_7.html#sect_7.1}.
3374
3374
  *
3375
3375
  * @param {ArrayBuffer} buffer The buffer to check.
3376
3376
  * @returns {boolean} True if the buffer includes the prefix.
@@ -3434,16 +3434,21 @@ export declare class Histogram {
3434
3434
  getCountInRange(min?: number, max?: number): number;
3435
3435
  /**
3436
3436
  * Get the percentage of counts that fall in each interval defined by
3437
- * interior thresholds.
3437
+ * consecutive thresholds, relative to the total count in the intervals
3438
+ * (values outside all intervals are not taken into account).
3438
3439
  *
3439
- * For thresholds `[1, 5]`, the intervals are `[min, 1)`, `[1, 5)` and
3440
+ * For thresholds `[1, 5, 10]`, the intervals are `[1, 5)` and `[5, 10)`.
3441
+ * An undefined first or last threshold makes the interval unbounded:
3442
+ * for `[undefined, 5, undefined]`, the intervals are `[min, 5)` and
3440
3443
  * `[5, max]`, where `min` / `max` are the histogram range.
3441
3444
  *
3442
- * @param {number[]} thresholds Interior cut points in ascending order.
3445
+ * @param {Array<number|undefined>} thresholds Interval bounds in
3446
+ * ascending order, the first and last can be undefined.
3443
3447
  * @returns {number[]} The percentages in [0, 100], one per interval
3444
- * (`thresholds.length + 1` entries), all 0 for an empty histogram.
3448
+ * (`thresholds.length - 1` entries), all 0 if no value falls
3449
+ * in the intervals.
3445
3450
  */
3446
- getIntervalPercentages(thresholds: number[]): number[];
3451
+ getIntervalPercentages(thresholds: Array<number | undefined>): number[];
3447
3452
  /**
3448
3453
  * Get the statistics of the values: minimum, maximum, mean,
3449
3454
  * standard deviation, median, 25th and 75th percentiles.
@@ -4058,15 +4063,16 @@ export declare class ImageHistogram {
4058
4063
  getRescaledRange(): NumberRange | undefined;
4059
4064
  /**
4060
4065
  * Get the percentage of counts that fall in each interval defined by
4061
- * interior rescaled thresholds,
4066
+ * consecutive rescaled thresholds,
4062
4067
  * see {@link Histogram#getIntervalPercentages}.
4063
4068
  *
4064
- * @param {number[]} thresholds Interior rescaled cut points in ascending
4065
- * order.
4069
+ * @param {Array<number|undefined>} thresholds Rescaled interval bounds
4070
+ * in ascending order, the first and last can be undefined.
4066
4071
  * @returns {number[]} The percentages in [0, 100], one per interval
4067
- * (`thresholds.length + 1` entries), all 0 for an empty histogram.
4072
+ * (`thresholds.length - 1` entries), all 0 if no value falls
4073
+ * in the intervals.
4068
4074
  */
4069
- getIntervalPercentages(thresholds: number[]): number[];
4075
+ getIntervalPercentages(thresholds: Array<number | undefined>): number[];
4070
4076
  /**
4071
4077
  * Get the statistics of the rescaled values,
4072
4078
  * see {@link Histogram#getStats}.
@@ -5004,7 +5010,7 @@ export declare class MaskImage extends Image_2 {
5004
5010
  /**
5005
5011
  * DICOM (mask) segment: item of a SegmentSequence (0062,0002).
5006
5012
  *
5007
- * Ref: {@link https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_C.8.20.4.html}.
5013
+ * Ref: {@link https://dicom.nema.org/medical/dicom/2024a/output/chtml/part03/sect_C.8.20.4.html}.
5008
5014
  */
5009
5015
  export declare class MaskSegment {
5010
5016
  /**
@@ -7318,7 +7324,7 @@ export declare class Tag {
7318
7324
  /**
7319
7325
  * Is the tag group a private tag group ?
7320
7326
  *
7321
- * See: {@link http://dicom.nema.org/medical/dicom/2022a/output/html/part05.html#sect_7.8}.
7327
+ * See: {@link http://dicom.nema.org/medical/dicom/2024a/output/html/part05.html#sect_7.8}.
7322
7328
  *
7323
7329
  * @returns {boolean} True if the tag group is private,
7324
7330
  * ie if its group is an odd number.