mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-04 12:18:54 +02:00
updated pixel histogram to use fill_unchecked since we know it is within range
This commit is contained in:
@@ -224,7 +224,8 @@ void PedestalTrackingPixelHistogram::worker_loop(int thread_id) {
|
||||
static_cast<AxisType>(my_pedestal.mean(
|
||||
static_cast<uint32_t>(local_row),
|
||||
static_cast<uint32_t>(col)));
|
||||
my_hist.fill(local_row, static_cast<int>(col), val);
|
||||
my_hist.fill_unchecked(local_row, static_cast<int>(col),
|
||||
val);
|
||||
const double sigma = my_std(local_row, col);
|
||||
if (sigma > 0.0 &&
|
||||
std::abs(static_cast<double>(val)) < n_sigma * sigma) {
|
||||
|
||||
@@ -124,7 +124,7 @@ void PixelHistogram::worker_loop(int thread_id) {
|
||||
const auto row = static_cast<ssize_t>(first_row + local_row);
|
||||
for (ssize_t col = 0; col < image.shape(1); ++col) {
|
||||
const auto val = image(row, col);
|
||||
my_hist.fill(local_row, static_cast<int>(col), val);
|
||||
my_hist.fill_unchecked(local_row, static_cast<int>(col), val);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user