OptrisOptrisDocumentation

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

optris::sdk::rec::SnapshotOptions

How to write the file, as opposed to what is in it.

Public attributes

scale

double scale = 0.0

Kelvin per count. 0.0 picks the finest rung that covers the camera's range maximum; otherwise must be exactly 0.01, 0.025 or 0.05.

An explicit scale too coarse for the range is fine; it only costs resolution. One that cannot represent the frame's actual minimum or maximum is rejected with kInvalidParameter, because the alternative is silently clipping a measurement.

compression_level

int compression_level = 6

zlib level, 0-9. Applies to the PNG image data, the compressed otc:meta text, the attachment payloads and the TIFF's DEFLATE strips alike.

tiff_int16

bool tiff_int16 = false

TIFF only. Write uint16 on the same grid as the PNG instead of float32 Kelvin, for readers that cannot handle floating-point samples. Pixel semantics then match the PNG exactly.

jpeg_quality

int jpeg_quality = 4

JPEG only. 2 (best) to 31 (worst), as FFmpeg's mjpeg encoder scales it. Ignored by every other format.

The default is deliberately near the top of the range: a thermal picture carries its information in the colour, and JPEG's quantisation reaches the chroma first.

software_override

std::string software_override

Overrides the Software string written into the file. Empty means "OTC.SDK <version>".

Set this only when the output has to be byte-reproducible across SDK versions; the golden corpus pins it so that a version bump does not rewrite every golden file.