Mercurial > hg > orthanc-stone
changeset 926:e594e76e0a81 toa2019072202
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 22 Jul 2019 16:01:38 +0200 |
parents | 4639d0bf6390 (current diff) 9ba1e1198e73 (diff) |
children | 39d2a3661665 |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp Mon Jul 22 16:00:03 2019 +0200 +++ b/Framework/Radiography/RadiographyScene.cpp Mon Jul 22 16:01:38 2019 +0200 @@ -606,8 +606,8 @@ Extent2D extent = GetSceneExtent(); - int w = static_cast<int>(std::ceil(extent.GetWidth() / pixelSpacingX)); - int h = static_cast<int>(std::ceil(extent.GetHeight() / pixelSpacingY)); + int w = static_cast<int>(std::round(extent.GetWidth() / pixelSpacingX)); + int h = static_cast<int>(std::round(extent.GetHeight() / pixelSpacingY)); if (w < 0 || h < 0) {