Mercurial > hg > orthanc-stone
diff Applications/Samples/SingleFrameEditorApplication.h @ 363:54ae0577f5bb am-2
fix anisotropic pixel spacing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 18:55:52 +0100 |
parents | 12cec26d08ce |
children | aad2f9293089 |
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameEditorApplication.h Tue Oct 30 18:30:48 2018 +0100 +++ b/Applications/Samples/SingleFrameEditorApplication.h Tue Oct 30 18:55:52 2018 +0100 @@ -2787,8 +2787,9 @@ (widget.IsInvert() ? "MONOCHROME1" : "MONOCHROME2"); + // WARNING: The order of PixelSpacing is Y/X char buf[32]; - sprintf(buf, "%0.08f\\%0.08f", pixelSpacingX, pixelSpacingY); + sprintf(buf, "%0.08f\\%0.08f", pixelSpacingY, pixelSpacingX); json["Tags"][Orthanc::DICOM_TAG_PIXEL_SPACING.Format()] = buf;