OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ReferenceCorrectionSupport

public enum ReferenceCorrectionSupport

Whether a source can be corrected against a reference body.

Read this rather than assuming. An application that hard-codes its own belief about whether the SDK implements the reference-body correction carries a constant that goes stale the moment the SDK implements or withdraws something, which is what happened between version 12.0, where the correction always refused, and this one.

A reason rather than a boolean, because the negatives are not equivalent to whoever has to act on them. A simulated camera cannot be corrected and never will be; a camera streaming raw detector counts cannot be corrected until its mode changes; an SDK that does not implement the feature is a different problem again.

This enum is : int to match the C ABI. New members may be appended by a future SDK, so a switch over it should have a default arm.

Value
Unknown 0 Nobody has looked yet: the camera is not open. Never treat this as support. It is the value a fresh object carries.
Supported 1 This source can be corrected: a processing backend is running and it is building the energy-to-temperature table the correction is applied to.
NoEnergyTable 2 There is nothing to correct: a simulated camera, a recording, or a mode delivering raw detector counts. See ThermalCamera.ReferenceCorrectionDiagnosis for which of those it is.
NotImplemented 3 This build of the SDK does not implement the correction at all.