You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Correct PhysicalUnitsX/Y unit-code table per DICOM PS3.3 C.8.5.5
(10=cm³, 11=cm³/sec, 12=degrees; previously labelled 10 as degrees)
and extend the negative test to codes 11–12.
- Warn in the console when neither X nor Y direction is centimetres,
parallel to the existing multi-region warning, so a 1mm fallback is
no longer silent.
- Replace `null` with `undefined` for absent ultrasound regions so
consumers handle a single absence state instead of three.
// All-or-nothing: if either axis lacks a spatial unit (e.g. one axis is
306
+
// cm and the other is seconds, or unitless) the metadata can't be trusted
307
+
// as a 2D physical spacing, so leave the default 1mm fallback in place.
308
+
if(xFactor===null||yFactor===null){
309
+
console.warn(
310
+
`Ultrasound spacing not applied: PhysicalUnitsXDirection=${region.physicalUnitsXDirection}, PhysicalUnitsYDirection=${region.physicalUnitsYDirection}; only code 3 (cm) is converted to mm.`
0 commit comments