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

Revise image spacing calculation #1651

Closed ivmartel closed 2 months ago

ivmartel commented 2 months ago

The current image spacing calculation from Image Position Patient differences is over complicated (see geometry.js#L586). It can be simplified using simple point distance. The final value must not be the minimum but the mean of all distances.