Skip to content

Commit 12bfa87

Browse files
Merge pull request #1429 from markus-jehl/issue/1428-force-use-actual-detector-boundaries-to-true-for-blocks-on-cylindrical
Force use_actual_detector_boundaries to true for BlocksOnCylindrical
2 parents 1b4c405 + 48e691d commit 12bfa87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/recon_buildblock/ProjMatrixByBinUsingRayTracing.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ ProjMatrixByBinUsingRayTracing::set_up(
264264

265265
ProjMatrixByBin::set_up(proj_data_info_sptr_v, density_info_sptr_v);
266266

267+
if (proj_data_info_sptr->get_scanner_ptr()->get_scanner_geometry() == "BlocksOnCylindrical" && !use_actual_detector_boundaries)
268+
{
269+
warning("Setting use_actual_detector_boundaries to true, since this is the only supported setting for "
270+
"BlocksOnCylindrical geometry");
271+
use_actual_detector_boundaries = true;
272+
}
273+
267274
voxel_size = image_info_ptr->get_voxel_size();
268275
origin = image_info_ptr->get_origin();
269276
if (std::abs(origin.x()) > .05F || std::abs(origin.y()) > .05F)

0 commit comments

Comments
 (0)