OptrisOptrisDocumentation

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

optris::sdk::TemperatureRange

The band a camera is measuring in, and the two switches that modify it.

This is the first thing anyone asks a thermal camera, which is why it sits on the camera itself rather than behind a sub-interface. Changing it is a mode change on the device and includes a calibration reload.

min_c and max_c are in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit). In Fahrenheit a request is rounded to the nearest whole Celsius degree before it is matched, and a range reads back converted (-20..100 C as -4..212); every range the cameras offer is a multiple of 5 C, so each has an exact whole Fahrenheit spelling. The defaults -20 and 100 are compile-time Celsius numbers: start from GetTemperatureRange() or DeviceInfo::available_ranges, not from a default-constructed one.

Public attributes

min_c

int min_c = -20

Low end of the active range, in whole degrees of the SDK's temperature unit.

The pair is not a free interval. It selects one of the camera's calibrated operation modes by exact match on both ends, so it has to be one of DeviceInfo::available_ranges; anything else throws ConfigException, with the modes that do exist listed in the log. Ranges are per-camera calibration data, so read them from the device rather than assuming: (-20, 100) is the first mode of the cameras Optris tests with, not a range every camera is required to have.

max_c

int max_c = 100

High end of the active range, in whole degrees of the SDK's temperature unit. Matched together with min_c -- see there.

Zero at both ends is the one pair that is not matched: it means "whichever mode is listed first" and always succeeds.

Reading the range back while extended is set reports the extended limits, which are wider than the ones that chose the mode. A value read back is therefore not necessarily a value you can set.

extended

bool extended = false

Show a scene past the active range's calibrated limits.

Not a measuring range. The extended part lies outside the calibration and reads with poor precision. It exists so the field of view can be aimed, and so a visual check is possible, on a camera whose range has a high lower limit: a 150..900 C range typically extends down to 20 C, which is what lets a room-temperature scene be seen while in it.

Camera-wide, not per mode. The request is recorded whether or not the mode you are in can act on it, so switching it on and then selecting an extendable mode works. Whether it is in force is OperationMode::extendable together with the limits that mode reports -- temp_min/temp_max of the active mode become the extended ones, and min_c/max_c here read them back. A mode that cannot be extended keeps its limits and its 25 K accommodation band.

Nothing marks a value as being outside the calibrated range, per frame or per region. An application that wants to show that has to compare against the mode's own limits itself.

high_precision

bool high_precision = true

Select the high-precision temperature table, where the active mode offers one. On by default, as in v11.

What it trades is the span the 16-bit internal value can represent, and not the frame rate: the ordinary table encodes (T + 100) * 10 and spans -100..+6453 C in 0.1 C steps, the high-precision one encodes (T + 100) * 100 -- 0.01 C steps, but clamped at +300 C. Hence OperationMode::high_precision_available being a per-range property of the calibration.

What it does not change today: the step size of the temperatures the SDK reports. The pipeline carries every thermal pixel as T*10 + 1000 in an int16, so the finer table is built and then rounded to 0.1 C. v11 reported in 0.01 C steps; reproducing that needs the pipeline's representation changed, which is tracked as its own issue.

This field cannot tell you any of that, which is why Imager::GetHighPrecisionState() exists. Writing true here succeeds and reads back true on every camera -- one whose calibration offers no finer table included -- so "not supported" and "supported and rounded away" are the same observation through this field. That query distinguishes them.

And 0.01 C is the step of the encoding, not of the measurement. The SDK's per-pixel temperature is a lookup on an integer corrected detector count, so the finest difference it can distinguish between two pixels is the gap between two adjacent entries of that table. Measured over the 76 real characteristic curves on the cameras Optris tests with, each restricted to the range it belongs to and joined to the Decimal flag that decides whether a range gets the finer table at all:

  • Only 4 of the 76 can use it. All four are -20..100 C, on 4 of 28 cameras. The other 72 never receive the finer table whatever this field says, so a figure averaged over all of them answers a different question.
  • On the best of the four, one adjacent count is 0.0093 K at 100 C and 0.0274 K at -20 C. So 0.01 C does exist, at the top of that range and nowhere else, and a step guaranteed across the whole range is 0.0274 K -- or 0.0772 K on the worst of the four.
  • The single figure 0.0140 K is that range's mean (span divided by steps). It is neither its best nor a guarantee.

So quote a statistic, never a bare number: about 0.0093 K at best, 0.0125 K typically, 0.027 K guaranteed, on the best range of the best camera -- and about 0.08 K guaranteed on the worst camera that offers the finer table at all.

v11 genuinely resolved this; it did not merely print it. Its delivered pixel carried centidegrees (T*100 + 10000, with TemperatureConverter's factor following the precision) and its table builder stretched the energy axis to ~200 index steps per kelvin where v12 uses 20. So this is a capability v12 lost, not a number v11 displayed over coarser data.