|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
A renderer that counts the events landing on each pixel. More...
#include <vitrio/counting_detector_event_renderer.hpp>


A renderer that counts the events landing on each pixel.
A pixel of the image gathers a block of pixels of the detector, as many as its detector_event_binning says along each axis, and counts every event that fell on any of them, wherever within the pixel it was placed.
Counts are worked out as 32 bit unsigned integers.
|
explicitnoexcept |
Construct a renderer gathering the pixels a binning merges.
| binning | How many pixels of the detector a pixel of the image gathers along each axis. |
|
noexcept |
Get how many pixels of the detector a pixel gathers.
|
overridevirtualnoexcept |
Get the data type images are worked out in.
Rendering into an image of that type converts nothing, which makes it the cheapest to ask for.
Implements vitrio::detector_event_renderer.
|
overridevirtual |
Get the extents of the images rendered from an acquisition.
| events | The grid the events are placed on. |
| std::invalid_argument | If this renderer can not render events placed on the grid of events. |
Each extent is that of the detector, in pixels, divided by the factor of the binning.
Implements vitrio::detector_event_renderer.
|
overridevirtual |
Render events into an image.
Every element of destination is written, whatever it held before. Values are converted to its data type as a cast between the two types does.
| descriptor | The grid the events are placed on and the time they span. |
| events | The events to render. Must have the rank of descriptor, and every coordinate must lie within its extents. |
| destination | Where the image is written. Must be initialized and have the extents get_image_extents gives for descriptor. It may be strided. |
| std::invalid_argument | If this renderer can not render events placed on the grid of descriptor, if events does not have its rank, or if destination is not initialized or does not have the extents of an image. |
| std::out_of_range | If an event lies outside the grid of descriptor. |
| unsupported_operation_error | If the data type of destination can not be produced from that of get_data_type. |
| std::overflow_error | If a pixel gathers more events than 32 bits count. |
Implements vitrio::detector_event_renderer.