Generates synthetic image frames for simulated cameras. More...
#include <frameGenerator.hpp>
Classes | |
| struct | Impl |
Public Member Functions | |
| FrameGenerator () | |
| ~FrameGenerator () | |
| FrameGenerator (const FrameGenerator &)=delete | |
| FrameGenerator & | operator= (const FrameGenerator &)=delete |
| FrameGenerator (FrameGenerator &&) noexcept | |
| FrameGenerator & | operator= (FrameGenerator &&) noexcept |
| void | configure (const PatternConfig &config) |
| Configure the generator with pattern parameters. | |
| void | generate (int32_t n_frames, std::vector< uint8_t > &output) |
| Generate a batch of frames into the output buffer. | |
| int32_t | outputWidth () const |
| Output width after binning. | |
| int32_t | outputHeight () const |
| Output height after binning. | |
| size_t | bytesPerFrame () const |
| Bytes per single frame. | |
| size_t | bytesPerPixel () const |
| Bytes per pixel for the configured output type. | |
Generates synthetic image frames for simulated cameras.
Supports multiple pattern types (Gaussian stars, grids, gradients, etc.), multi-data-type output, binning, exposure/gain scaling, and per-frame drift.
Usage: FrameGenerator gen; gen.configure(config); std::vector<uint8_t> buffer; gen.generate(10, buffer); // generate 10 frames
| camcom::common::FrameGenerator::FrameGenerator | ( | ) |
|
default |
|
delete |
|
defaultnoexcept |
| size_t camcom::common::FrameGenerator::bytesPerFrame | ( | ) | const |
Bytes per single frame.
| size_t camcom::common::FrameGenerator::bytesPerPixel | ( | ) | const |
Bytes per pixel for the configured output type.
| void camcom::common::FrameGenerator::configure | ( | const PatternConfig & | config | ) |
Configure the generator with pattern parameters.
| config | Pattern configuration |
| void camcom::common::FrameGenerator::generate | ( | int32_t | n_frames, |
| std::vector< uint8_t > & | output ) |
Generate a batch of frames into the output buffer.
The buffer is resized to hold exactly n_frames frames. Frames are laid out contiguously: frame0 | frame1 | ... | frameN-1 Each frame is outputWidth() * outputHeight() * bytesPerPixel() bytes.
| n_frames | Number of frames to generate |
| output | Output buffer (resized internally) |
|
delete |
|
defaultnoexcept |
| int32_t camcom::common::FrameGenerator::outputHeight | ( | ) | const |
Output height after binning.
| int32_t camcom::common::FrameGenerator::outputWidth | ( | ) | const |
Output width after binning.