Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/GeometryToolbox.cpp @ 1821:36430d73e36c
introducing measure units in AnnotationsSceneLayer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 May 2021 14:02:12 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/GeometryToolbox.cpp Wed May 26 13:08:49 2021 +0200 +++ b/OrthancStone/Sources/Toolbox/GeometryToolbox.cpp Wed May 26 14:02:12 2021 +0200 @@ -304,7 +304,7 @@ } - void GetPixelSpacing(double& spacingX, + bool GetPixelSpacing(double& spacingX, double& spacingY, const Orthanc::DicomMap& dicom) { @@ -324,6 +324,7 @@ // WARNING: X/Y are swapped (Y comes first) spacingX = v[1]; spacingY = v[0]; + return true; } } else @@ -332,6 +333,7 @@ // default value in such a case spacingX = 1; spacingY = 1; + return false; } }