optris::sdk::RawFrame
Uncalibrated uint16 ADU sensor data straight from the detector. Use this for raw diagnostics or custom calibration; for temperatures use ThermalFrame instead.
Public functions
RawFrame
RawFrame()=default
RawFrame
RawFrame(uint32_t width, uint32_t height, uint8_t bit_depth=16)
GetWidth
auto GetWidth() const -> uint32_t
GetHeight
auto GetHeight() const -> uint32_t
GetPixelCount
auto GetPixelCount() const -> uint32_t
GetBitDepth
auto GetBitDepth() const -> uint8_t
Sensor bit depth (typically 14 or 16); affects valid range.
GetMetadata
auto GetMetadata() const -> const FrameMetadata &
The capture these samples came from.
Read HasMetadata() first. sequence defaults to 0 and 0 is a real frame -- the first of the stream -- so no value in the record can mean "nobody said".
HasMetadata
auto HasMetadata() const -> bool
Whether the SDK marked this frame with the capture above.
Never false on a frame handed to Imager::SetRawCallback().
SetMetadata
auto SetMetadata(const FrameMetadata &metadata) -> void
Mark this frame as taken from metadata's capture.
Replaced a mutable GetMetadata() reference. The assignment through that reference could not set the flag the C ABI now carries, and a frame nobody marked would have published sequence 0 to a C caller as if it were the first frame.
GetData
auto GetData() const -> const uint16_t *
Pixel buffer in row-major order, one uint16 per pixel.
GetMutableData
auto GetMutableData() -> uint16_t *
Writable pixel buffer for pipeline stages to fill.
GetDataSize
auto GetDataSize() const -> size_t
Element count (width * height), not byte count.
Resize
auto Resize(uint32_t width, uint32_t height) -> void
Reallocates the internal buffer; invalidates all pointers.
SetBitDepth
auto SetBitDepth(uint8_t depth) -> void