Format
Build on RHEL9 / build (push) Successful in 2m32s
Build on RHEL8 / build (push) Successful in 3m13s
Run tests using data on local RHEL8 / build (push) Successful in 4m1s

This commit is contained in:
2026-08-20 14:44:25 +02:00
parent cb76a948e4
commit 57e035abc3
2 changed files with 10 additions and 16 deletions
+3 -4
View File
@@ -9,10 +9,9 @@ defs::StrixelGroupToPixelMap strixel_to_pixel_map(
defs::SensorModulePlacement const &, InclusiveROI const &user_roi,
defs::BondShift bond_shift = {0, 0});
std::vector<defs::StrixelGroupToPixelMap>
strixel_to_pixel_maps(defs::SensorConfig const &, defs::SensorModulePlacement const &,
InclusiveROI const &user_roi,
defs::BondShift bond_shift = {0, 0});
std::vector<defs::StrixelGroupToPixelMap> strixel_to_pixel_maps(
defs::SensorConfig const &, defs::SensorModulePlacement const &,
InclusiveROI const &user_roi, defs::BondShift bond_shift = {0, 0});
/**
* Public API:
+7 -12
View File
@@ -102,23 +102,20 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config,
// -- 1) Rebase the user ROI (rx_roi) into sensor-local coordinates
const InclusiveROI roi_user_local =
inclusiveroi::geom::rebaseROI(roi_user, placement.placement_on_module);
// LOG(logDEBUG)
std::cout
LOG(logDEBUG)
<< "aare::remap::algo::strixel_to_pixel_map: Transformed user ROI: "
<< roi_user_local << std::endl;
// LOG(logDEBUG)
std::cout << "aare::remap::algo::strixel_to_pixel_map: Group ROI "
"before transformation (as in global config)"
<< group_config.placement_on_sensor << '\n';
LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Group ROI "
"before transformation (as in global config)"
<< group_config.placement_on_sensor << '\n';
// -- 2) Apply the physical bond shift first, sensor rotation second.
const InclusiveROI roi_group =
shift_rotate_roi(group_config.placement_on_sensor, pixel, bond_shift,
placement.rotation);
// LOG(logDEBUG)
std::cout << "aare::remap::algo::strixel_to_pixel_map: Group ROI after "
LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Group ROI after "
"transformation (as in local transformation) "
<< roi_group << '\n';
@@ -134,8 +131,7 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config,
return {{}, InclusiveROI::emptyROI()};
}
// LOG(logDEBUG)
std::cout << "aare::remap::algo::strixel_to_pixel_map: Result of "
LOG(logDEBUG) << "aare::remap::algo::strixel_to_pixel_map: Result of "
"intersecting ROIs "
<< effective_roi << '\n';
@@ -192,8 +188,7 @@ strixel_to_pixel_map(defs::GroupConfig const &group_config,
// And allocate
aare::NDArray<ssize_t, 2> map({nrows, ncols}, -1);
// LOG(logDEBUG)
std::cout
LOG(logDEBUG)
<< "aare::remap::algo::strixel_to_pixel_map: Resulting strixel grid: ("
<< map.shape(0) << ", " << map.shape(1) << ")" << '\n';