Skip to content

Commit

Permalink
Merge pull request #1429 from markus-jehl/issue/1428-force-use-actual…
Browse files Browse the repository at this point in the history
…-detector-boundaries-to-true-for-blocks-on-cylindrical

Force use_actual_detector_boundaries to true for BlocksOnCylindrical
  • Loading branch information
KrisThielemans authored Jun 19, 2024
2 parents 1b4c405 + 48e691d commit 12bfa87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/recon_buildblock/ProjMatrixByBinUsingRayTracing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ ProjMatrixByBinUsingRayTracing::set_up(

ProjMatrixByBin::set_up(proj_data_info_sptr_v, density_info_sptr_v);

if (proj_data_info_sptr->get_scanner_ptr()->get_scanner_geometry() == "BlocksOnCylindrical" && !use_actual_detector_boundaries)
{
warning("Setting use_actual_detector_boundaries to true, since this is the only supported setting for "
"BlocksOnCylindrical geometry");
use_actual_detector_boundaries = true;
}

voxel_size = image_info_ptr->get_voxel_size();
origin = image_info_ptr->get_origin();
if (std::abs(origin.x()) > .05F || std::abs(origin.y()) > .05F)
Expand Down

0 comments on commit 12bfa87

Please sign in to comment.