These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::FrameMetadata
This metadata is passed alongside the frame data from the devices via the streaming interface (e.g. USB, Ethernet).
Public functions
FrameMetadata
OTC_SDK_API FrameMetadata() noexcept
Constructor.
setFrom
OTC_SDK_API void setFrom(const FrameMetadata2 &raw) noexcept
isThermalDataReliable
bool isThermalDataReliable() const noexcept
Indicates whether the provided thermal data is reliable.
False while the camera is still calibrating after it opens or switches operation mode: during the startup calibration, while the shutter flag is Initializing, and for any frame converted before the stream's first non-uniformity correction produced a dark reference.
In an earlier release this was computed from the shutter flag alone, which the v12 dispatch path never sets to Initializing, so it was true on every frame -- including a first frame at a flat 125 C and the startup frames of a PI 4x0 drifting by tens of kelvin.
Returns: true if the provided thermal data is reliable. False otherwise.
isSameFrame
bool isSameFrame() const noexcept
Whether this frame repeats the previous one rather than carrying new pixels.
True while the shutter flag is in the way of the sensor, and for a few frames after it reopens. The processing chain holds the last frame taken with the flag open and keeps delivering it, so the stream stays continuous and the pixels stay a measurement of the scene rather than of the flag. This is version 11's isSameFrame, which v12 declared and never wrote.
The metadata beside it is NOT held: the probe temperatures, the timestamp, the PIF inputs and the flag state are all this frame's.
Separate from isThermalDataReliable(), which answers a different question. A repeated frame was converted with a dark reference that exists and has settled, so it is a reliable measurement -- of a moment that has passed. A first frame is new and not reliable. Neither implies the other.
Returns: true if this frame is a repeat of the previous one.
getDetectorSettling
unsigned char getDetectorSettling() const noexcept
Which of three answers the detector-settling criterion reached for this frame.
0 = the SDK cannot judge this camera's detector, because no detector reading reaches the criterion; 1 = the criterion applies and the detector has not stopped moving; 2 = two consecutive dark references agree. The numbering is optris::sdk::DetectorSettlingState's, and the version 12 surface reports the enum.
Additive, and a version 11 application can ignore it. A raw byte rather than an enum deliberately: the enum belongs to the version 12 headers and this one must not depend on them. Present here only because it is the route a per-frame fact takes from the processing chain to the version 12 frame -- the same route isThermalDataReliable() takes.
isThermalDataReliable() is this reduced to a bool together with two unrelated conditions, and the reduction cannot tell "the
detector is still moving" from "there is no detector reading to
look at". It is true in the second case, by design.
Returns: 0, 1 or 2 as above.
getCounter
unsigned int getCounter() const noexcept
Returns a consecutive number for each received frame.
Returns: consecutive number for each received frame.
getCounterHardware
unsigned int getCounterHardware() const noexcept
Returns the frame number received from the device.
Note: This counter may overflow.
Returns: frame number received from the device.
getTimestamp
long long getTimestamp() const noexcept
Returns the frame timestamp in UNITS (10000000 units per second).
Returns: frame timestamp in UNITS (10000000 units per second).
getTimestampMedia
long long getTimestampMedia() const noexcept
Returns the media timestamp.
Returns: media timestamp.
getFlagState
FlagState getFlagState() const noexcept
Returns the state of the shutter flag at frame capturing time.
Returns: state of the shutter flag at frame capturing time.
setFlagState
void setFlagState(FlagState flagState) noexcept
Sets the state of the shutter flag.
Parameters
| Name | Description |
|---|---|
flagState |
to set. |
getTemperatureFlag
float getTemperatureFlag() const noexcept
Returns the shutter flag temperature in °C at frame capturing time.
Returns: shutter flag temperature in °C at frame capturing time.
getTemperatureBox
float getTemperatureBox() const noexcept
Returns the housing temperature in °C at frame capturing time.
Returns: housing temperature in °C at frame capturing time.
getTemperatureChip
float getTemperatureChip() const noexcept
Returns the sensor chip temperature in °C at frame capturing time.
Returns: sensor chip temperature in °C at frame capturing time.
getEmissivitySource
RadiationParameterSource getEmissivitySource() const noexcept
Returns the source of the standard emissivity value.
Returns: source of the standard emissivity value.
getAmbientTemperatureSource
RadiationParameterSource getAmbientTemperatureSource() const noexcept
Returns the source of the standard ambient temperature value.
Returns: source of the standard ambient temperature value.
getRadiationParameters
RadiationParameters getRadiationParameters() const noexcept
Returns the standard radiation parameters. The standard radiation parameters are used to process the thermal frame and all measurement fields that do not specify a custom emissivity. Measurement fields with a custom emissivity, however, will still utilize the transmissivity and ambient temperature from the standard radiation parameters.
Attention: The standard radiation parameters may be modified via the process interface (PIF) and through automated ambient temperature estimations. This method return the parameters set in the configuration or via IRImager::setRadiationParameters(). To get the set/configured parameters see IRImager::getRadiationParameters().
Returns: standard radiation parameters.
setRadiationParameters
OTC_SDK_API void setRadiationParameters(const RadiationParameters &radiation) noexcept
Sets the standard radiation parameters used to process the frame. Intended for code paths that reconstruct a FrameMetadata from an external source (ZMQ wire, recorded frames, tests) where the SDK's internal processing pipeline isn't the producer of this metadata.
Parameters
| Name | Description |
|---|---|
radiation |
the radiation parameters to store. |
getPifAiValue
OTC_SDK_API float getPifAiValue(int deviceIndex, int pinIndex) const
Returns the analog input value on the given PIF channel.
Warning: The input values returned from channels on PIF devices that are just configurable but not actually connected to the camera -- a deviceIndex at or above actualDeviceCount and below configurableDeviceCount -- are invalid!
Parameters
| Name | Description |
|---|---|
deviceIndex |
of the PIF device. |
pinIndex |
of the pin on the specified PIF device. |
Returns: analog input value on the given PIF channel.
Exceptions
| Name | Description |
|---|---|
SDKException |
if either the device or pin index is out of range. |
getPifDiValue
OTC_SDK_API bool getPifDiValue(int deviceIndex, int pinIndex) const
Returns the digital input value on the given PIF channel.
Warning: The input values returned from channels on PIF devices that are just configurable but not actually connected to the camera -- a deviceIndex at or above actualDeviceCount and below configurableDeviceCount -- are invalid!
Parameters
| Name | Description |
|---|---|
deviceIndex |
of the PIF device. |
pinIndex |
of the pin on the specified PIF device. |
Returns: digital input value on the given PIF channel.
Exceptions
| Name | Description |
|---|---|
SDKException |
if either the device or pin index is out of range. |
getPifActualDeviceCount
int getPifActualDeviceCount() const noexcept
Returns the count of actually connected PIF devices.
Returns: count of actually connected PIF devices.
getPifConfigurableDeviceCount
int getPifConfigurableDeviceCount() const noexcept
Returns the count of configurable PIF devices.
Returns: count of configurable PIF devices.
getPifAiCountPerDevice
int getPifAiCountPerDevice() const noexcept
Returns the count of analog input channels per PIF device.
Returns: count of analog input channels per PIF device.
getPifDiCountPerDevice
int getPifDiCountPerDevice() const noexcept
Returns the count of digital input channels per PIF device.
Returns: count of digital input channels per PIF device.