vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
counting_detector_event_renderer.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/detector_event_binning.hpp>
6#include <vitrio/detector_event_renderer.hpp>
7#include <vitrio/export.hpp>
8#include <vitrio/platform.hpp>
9
10#include <cstddef>
11#include <vector>
12
13namespace vitrio
14{
15
27{
28public:
37 ) noexcept;
38
40
46 const detector_event_binning& get_binning() const noexcept;
47
54 std::vector<std::size_t> get_image_extents(
56 ) const override;
57
58 numerical_type get_data_type() const noexcept override;
59
66 void render(
67 const detector_event_timeline_descriptor &descriptor,
68 const detector_event_timeline &events,
69 array_ref destination
70 ) const override;
71
72private:
73 VITRIO_STD_MEMBER_INTERFACE
74 detector_event_binning m_binning;
75};
76
77} // namespace vitrio
A reference to a multidimensional array that does not keep it alive.
Definition array_ref.hpp:32
A renderer that counts the events landing on each pixel.
Definition counting_detector_event_renderer.hpp:27
const detector_event_binning & get_binning() const noexcept
Get how many pixels of the detector a pixel gathers.
counting_detector_event_renderer(detector_event_binning binning) noexcept
Construct a renderer gathering the pixels a binning merges.
How many pixels of a detector an image gathers into one, along each axis.
Definition detector_event_binning.hpp:31
Abstract way of turning the events of a detector into an image.
Definition detector_event_renderer.hpp:34
What is fixed for one acquisition of a detector that counts events: the grid its events are placed on...
Definition detector_event_timeline_descriptor.hpp:32
The events a detector counted over a stretch of time.
Definition detector_event_timeline.hpp:39