Repository navigation
What's Changed
- fix(scoord3d): return millimeter units from feature length and area by @chenyangsu in #325
- fix(deps): update dcmjs to 1.1.0 by @wayfarer3130 in #326
Fixes
- Measurements are in the right unit:
_getFeatureLengthand_getFeatureAreamultiplied 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 as100.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 asFloat32Array(OF) andFloat64Array(OD), as_fetchBulkdatadoes; before, OF data was read asInt32Array
Dependencies
dcmjs^0.52.0to^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 (
RecommendedDisplayCIELabValueof 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