optris::sdk::EnergyFrame
Linear int32 radiometric energy values: the pipeline's internal representation after gain/offset/NUC calibration but before the PRN lookup that converts to temperature. Useful for custom radiometric analysis or feeding external temperature models.
Public functions
EnergyFrame
EnergyFrame()=default
EnergyFrame
EnergyFrame(uint32_t width, uint32_t height)
GetWidth
auto GetWidth() const -> uint32_t
GetHeight
auto GetHeight() const -> uint32_t
GetPixelCount
auto GetPixelCount() const -> uint32_t
GetMetadata
auto GetMetadata() const -> const FrameMetadata &
The capture these energies 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::SetEnergyCallback().
SetMetadata
auto SetMetadata(const FrameMetadata &metadata) -> void
Mark this frame as taken from metadata's capture. Replaced a mutable GetMetadata() reference; see RawFrame::SetMetadata().
GetData
auto GetData() const -> const int32_t *
Energy buffer in row-major order, one int32 per pixel.
GetMutableData
auto GetMutableData() -> int32_t *
Writable energy buffer for pipeline stages to fill.
GetDataSize
auto GetDataSize() const -> size_t
Element count (width * height), not byte count.
GetEnergy
auto GetEnergy(uint32_t x, uint32_t y) const -> int32_t
Energy at (x, y); no bounds checking.
GetEnergy
auto GetEnergy(uint32_t index) const -> int32_t
Energy at flat index; no bounds checking.
GetMinEnergy
auto GetMinEnergy() const -> int32_t
Minimum energy in scene, set by SetSceneStats().
GetMaxEnergy
auto GetMaxEnergy() const -> int32_t
Maximum energy in scene, set by SetSceneStats().
GetMinIndex
auto GetMinIndex() const -> uint32_t
Flat pixel index of the minimum energy value.
GetMaxIndex
auto GetMaxIndex() const -> uint32_t
Flat pixel index of the maximum energy value.
Resize
auto Resize(uint32_t width, uint32_t height) -> void
Reallocates the internal buffer; invalidates all pointers.
SetSceneStats
auto SetSceneStats(int32_t min_e, int32_t max_e, uint32_t min_idx, uint32_t max_idx) -> void
Called by pipeline stages after a min/max scan of the frame.