mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-09-05 01:50:56 +02:00
Format
This commit is contained in:
@@ -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
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user