OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::view::ViewStats

Complete stats export for a single frame.

Public attributes

rois

std::vector< RoiExport > rois

frame_min

float frame_min = 0.0F

frame_max

float frame_max = 0.0F

frame_avg

float frame_avg = 0.0F

Public functions

ToJson

std::string ToJson() const

This frame's statistics as a JSON document.

Text rather than a JSON library's document type, for the reason given at the JSON functions in optris/sdk/view/roi.h: nlohmann is not installed with the SDK and tags its namespace with its own ABI version, so naming its type here made this header uncompilable for a consumer who did not happen to have the right copy.

ToZoneStats

std::map< uint32_t, ZoneStats > ToZoneStats() const

Convert to server-compatible ZoneStats map keyed by ROI index.