Issue220

Title Stone Viewer - measurement not correct
Priority bug Status in-progress
Superseder Nosy List admin
Assigned To
Keywords Plugin - Other

Created on 2023-10-06.11:50:06 by admin, last changed by aster.

Files
File name Uploaded Type Edit Remove
measurement-anon.dcm admin, 2023-10-06.11:50:06 application/dicom
mmode_1.dcm aster, 2026-11-20.15:15:56 application/octet-stream
mmode_2.dcm aster, 2026-11-20.15:16:17 application/octet-stream
Messages
msg1008 (view) Author: admin Date: 2023-10-06.11:50:06
[Bugzilla user: bc@orthanc.team]
[Bugzilla date: 2023-10-06T09:50:06+00:00]

Created attachment 128
problematic dicom instance

The measurement done in Stone gives a different value from the measurement done by the US modality tooling.
msg1119 (view) Author: aster Date: 2026-11-20.15:15:56
Root cause found + anonymized M-mode samples (GE Vivid E90, SW 206.58.0).

The image contains two entries in SequenceOfUltrasoundRegions (0018,6011):
- Region 0: 2D sector (RegionSpatialFormat=1), units X/Y = cm/cm, 
PhysicalDeltaX/Y = 0.0739 cm/px
- Region 1: M-mode (RegionSpatialFormat=2), units X = seconds (4), Y = cm (3), 
PhysicalDeltaY = 0.0329 cm/px

DicomInstanceParameters only keeps regions whose X and Y units are both 
centimeters (see the "multiple US regions" safeguard, changeset c2c58aeec40b). 
Here only the 2D region qualifies, so its spacing is applied to the whole image, 
including the M-mode trace. Vertical lengths drawn on the M-mode are therefore 
overestimated by 0.0739/0.0329 = ~2.25x.

Example (mmode_1.dcm): aortic root measured 2.8 cm on the scanner, Stone shows 
6.44 cm.

Expected: use the calibration of the region that contains the annotation (at 
least PhysicalDeltaY for the depth axis of M-mode / spectral Doppler regions, 
whose X axis is time).

Attached: mmode_1.dcm (Ao root / LA) and mmode_2.dcm (TAPSE), both anonymized; 
pixel data and US regions unchanged.
History
Date User Action Args
2026-11-20 15:16:17astersetfiles: + mmode_2.dcm
2026-11-20 15:15:56astersetfiles: + mmode_1.dcm
messages: + msg1119
2026-07-29 15:51:28admincreate