cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
565 stars 288 forks source link

[Bug] ReferenceLinesTool shows reference lines between series of differing frame-of-reference. Should require same frame-of-reference #1501

Open John-Skinner opened 5 days ago

John-Skinner commented 5 days ago

Describe the Bug

When displaying two series with differing frame-of-reference and activate the referenceLinesTool, the two series still show the intersection line (reference line) when the two series are not the same frame-of-reference.

Steps to Reproduce

  1. Launch viewer.ohif.org
  2. Select the study either using https://viewer.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.25403.345050719074.3824.20170125095258.1 or select Patient name: Neptune, MRN:0000002 and launch [basic viewer]
  3. update the layout to be 2x1
  4. switch to [All] studies in thumbnail list
  5. replace the scout in the first viewport with series 3 from the 25-March-2014 scan. So now the left viewport has a coronal taken on March 25, and the right viewport has an axial taken on May 22 2014.
  6. use the DICOM Tag Browser to dump the frame-of-reference in each of the 2 viewports (search for 'frame' and you will get the (0020,0052) tag
  7. The two viewport have different frame-of-reference uid's.
  8. The reference line tool displays intersection line in either viewport which is not expected.

The current behavior

Reference lines are displayed between active viewport and another viewport when they have different frame-of-references.

The expected behavior

When a pair of viewports have different frame-of-reference, the reference line tool should not display a line.
More generally, all viewports except the active viewport display a reference line only if they share common frame-of-reference.

OS

linux (ubuntu)

Node version

20

Browser

Chrome Version 129.0.6668.100 (Official Build) (64-bit)

John-Skinner commented 5 days ago

Issue reproduced using viewer.ohif.org on Oct 14 2024