added timer and file processing

This commit is contained in:
Erik Frojdh
2026-06-02 15:24:01 +02:00
parent c10bcb8075
commit fc76f36413
6 changed files with 144 additions and 2 deletions
@@ -14,6 +14,7 @@
#include <mutex>
#include <thread>
#include <vector>
#include <filesystem>
namespace aare {
@@ -103,6 +104,10 @@ class PedestalTrackingPixelHistogram {
void fill_async(NDArray<FrameType, 2> image);
void fill_from_file(const std::filesystem::path &fname, ssize_t max_frames = -1, bool verbose = false);
void process_pedestal_file(const std::filesystem::path &fname, ssize_t max_frames = -1, bool verbose = false);
// Sigma multiplier for the pedestal-update gate in
// fill_async. Atomic; safe to read/write at any
// time (the new value takes effect on subsequent pixel evaluations).
+1
View File
@@ -84,6 +84,7 @@ void PixelHistogramImpl<T, StorageType>::fill(const NDView<T, 2> &frame) {
template <typename T, typename StorageType>
void PixelHistogramImpl<T, StorageType>::fill(int row, int col, T value) {
//TODO! add out of bounds check on row and col???
if (value < m_xmin || value >= m_xmax) {
return;
}