Skip to content

0.52.0

Latest

Choose a tag to compare

@igoroctaviano igoroctaviano released this 04 Dec 18:15
c441afc

What's Changed

Fixes

  • Measurements are in the right unit: _getFeatureLength and _getFeatureArea multiplied SCOORD3D values by 1000, although SCOORD3D coordinates are already in millimeter. Lengths and areas of annotations showed 1000 (length) and 1,000,000 (area) times too large, for example a 0.1 mm line as 100.00 mm
  • Part 10 fallback of bulk annotations: one helper reads the annotation group from a single-item or multi-item sequence, and an empty sequence gives the "Could not find bulkdata" error instead of a TypeError. Point coordinates are returned as Float32Array (OF) and Float64Array (OD), as _fetchBulkdata does; before, OF data was read as Int32Array

Dependencies

  • dcmjs ^0.52.0 to ^1.1.0

Visible changes

  • Measurement values of annotations are 1000 (length) or 1,000,000 (area) times smaller than before, and now correct
  • Colors from CIELab values (RecommendedDisplayCIELabValue of segments and annotation groups) are converted relative to D50, as DICOM requires (PS3.3 C.10.7.1.1). dcmjs 0.x treated them as relative to D65. Values that a D50 encoder wrote now show their intended color, and values that a D65 encoder wrote change; for example, the D65 encoding of pure blue now shows as #5b00ff. Applications that convert CIELab values themselves for legends or swatches should convert relative to D50 to match the drawn colors (Slim: ImagingDataCommons/slim#480)

Full Changelog: v0.51.3...v0.52.0