mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-10 02:38:40 +02:00
added timer and file processing
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user