# HG changeset patch # User Alain Mazy # Date 1563798536 -7200 # Node ID 6b81c5453382d71ddda4e0ac8258635389e67e51 # Parent d6c029d15aaa88036a5a800760a64c0d374c0b92 RadiographyScene: avoid exporting to width+1 image size due to numerical noise in GetSceneExtent() diff -r d6c029d15aaa -r 6b81c5453382 Framework/Radiography/RadiographyScene.cpp --- a/Framework/Radiography/RadiographyScene.cpp Fri Jul 19 15:15:13 2019 +0200 +++ b/Framework/Radiography/RadiographyScene.cpp Mon Jul 22 14:28:56 2019 +0200 @@ -606,8 +606,8 @@ Extent2D extent = GetSceneExtent(); - int w = static_cast(std::ceil(extent.GetWidth() / pixelSpacingX)); - int h = static_cast(std::ceil(extent.GetHeight() / pixelSpacingY)); + int w = static_cast(std::round(extent.GetWidth() / pixelSpacingX)); + int h = static_cast(std::round(extent.GetHeight() / pixelSpacingY)); if (w < 0 || h < 0) {