cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] Render DICOMs with Irregular volume geometry.

Open AmrGablla opened this issue 2 years ago • 0 comments

Describe the Bug

Some CT Cases have Irregular volume geometry render wrong. The same case with Radient and 3D slicer apply fixes to the case.

Case on OHIF: image

Same case with Radient: image

Same case with 3D slicer: image

Slicer show this error: [Python] Irregular volume geometry detected (maximum error of 53.0579 mm is above tolerance threshold of 0.001 mm). Adding acquisition transform to regularize geometry.

And after check the Slicer source code i found that: https://github.com/Slicer/Slicer/blob/0725f3a1275ca6f1795d92b0291474fab5026464/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py#L881

They add check for Irregular volume geometry detection. And add Acquisition Transform If Needed: https://github.com/Slicer/Slicer/blob/0725f3a1275ca6f1795d92b0291474fab5026464/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py#L890

https://drive.google.com/file/d/1W0u0OOMkL_CzADokHYG9vqwG5RZml5sG/view?usp=sharing

Steps to Reproduce

  1. Upload the attached case.
  2. Open MPR for the case.

The current behavior

MPR render in wrong way.

Screenshot from 2024-01-15 13-39-41

The expected behavior

The MPR must Adding acquisition transform to regularize geometry to render it in correct way.

OS

Ubuntu 23.10

Node version

14.20.1

Browser

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

AmrGablla avatar Jan 15 '24 11:01 AmrGablla