ivmartel / dwv

DICOM Web Viewer: open source zero footprint medical image library.
https://ivmartel.github.io/dwv/
GNU General Public License v3.0
1.61k stars 588 forks source link

Wrong slice spacing for DICOM Seg #1677

Closed ivmartel closed 2 weeks ago

ivmartel commented 2 weeks ago

DICOM segs get loaded with a wrong pixel spacing. This triggers the 'Test distance is increasing when adding intermediate pos pats' error. The code uses first the 'Slice thickness' tag (0018,0050) and then the 'Spacing between slices' tag (0018,0088). This logic should be reversed since the spacing includes the thickness and some possible gap.