optris_sdk_color_scale_dynamics
How fast the auto-scaled colour range is allowed to move.
Auto-scaling recomputes the range from every frame, and an unfiltered range makes the picture breathe: a soldering iron leaving re-colours the wall behind it in one frame, and on a narrow scene the scale is the sensor noise, so a still wall shimmers. This is the damping that stops that.
In time, not in frames. A per-frame blend factor is a different time constant on every camera -- the v11 constant closes 90% of a step in 1.76 s at 32 Hz, 0.71 s at 80 Hz and 0.06 s on a PI 1M -- so a saved layout means something different depending on which camera opens it, and an operation-mode change silently retimes it. The SDK re-derives the per-frame blend from the interval it measures between frames, which is also what stays right across dropped frames and optris_sdk_imager_set_subsampled_framerate().
Applies in every auto scaling mode. Through an earlier v12 build the filter existed but was reachable only by the sigma modes and could be neither set nor read, so OPTRIS_SDK_COLOR_SCALING_MIN_MAX -- what OptrisConnect's slider defaults to, and what v11 damped -- ran undamped.
settle_band_k, max_lag_k and deadband_k are differences in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit, whatever their names say), and optris_sdk_color_scale_dynamics_init() fills them in the unit in force: the 0.2 K and 0.5 K defaults read 0.36 and 0.9 in Fahrenheit.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_color_scale_dynamics), or call optris_sdk_color_scale_dynamics_init().
close_time_ms
uint32_t close_time_ms
How long the scale takes to close 90% of the way onto a scene that has cooled or narrowed, in milliseconds. Zero disables damping: the scale is whatever this frame implies. The default is 1750, which is the v11 feel at 32 fps.
open_time_ms
uint32_t open_time_ms
How long it takes to open, when something hotter or colder than the current scale appears, in milliseconds.
Shorter than close_time_ms, and that asymmetry is load-bearing: opening late clips, which throws information out of the picture, while closing late only wastes palette on a band nothing occupies.
The default is 250. Through 12.0.0 it was zero, so every upward excursion was adopted on the frame it appeared whatever its size -- the single largest reason an auto-scaled picture looked twitchy, because on a still scene the top of the scale is the sensor noise and the palette pumped once per noise peak. Damping it is only affordable because of immediate_fraction: a genuinely large excursion still opens on the frame it arrives.
Zero restores the pre-12.1 behaviour and, like close_time_ms, means "undamped in this direction" -- no deadband and no adaptive rate either.
settle_band_k
float settle_band_k
Once the scale is within this of what the scene implies, adopt the scene and stop, in degrees of the SDK's temperature unit. An exponential tail never arrives, so without this the effective range keeps moving in its last digit and a slider bound to it never settles. Default 0.2 K; zero switches it off.
max_lag_k
float max_lag_k
A hard bound on how far the scale may sit from the scene during a transient, in degrees of the SDK's temperature unit. Zero -- the default -- means no bound. Non-zero snaps when it is hit, by construction, so it trades one visible step for a bounded lag.
first_frame_seed
optris_sdk_first_frame_seed first_frame_seed
Whether the first frame eases out of the -20..+20 C seed band instead of adopting what it sees. One of the optris_sdk_first_frame_seed values.
Leave it at OPTRIS_SDK_FIRST_FRAME_SEED_HANDLE unless you mean to override the handle. A camera seeds, so a v11 operator reading a slider through the first second sees the numbers v11 showed. A playback handle adopts, because a file being replayed has no such slider, and seeding drew the first picture of a 22..35 C recording at about -18..35 C with the bottom climbing out of -20 C over the next 1.75 s -- so every replay, every thumbnail and every snapshot taken from a replay started washed out.
Appended in API version 12 and gated on struct_size: a caller whose struct stops before this field never asked, and gets its handle's own behaviour.
deadband_k
float deadband_k
How far the scene may sit from the scale before the scale moves at all, in degrees of the SDK's temperature unit. Default 0.5 K; zero switches it off.
Below this the error is ignored, not damped -- not followed slowly, not followed. A one-pole filter has no such floor: it answers a 0.01 K wobble with a 0.01 K move, so the range never stops twitching and neither does a slider bound to it. Noise should buy no motion whatever, which is a different statement from "slow motion".
The threshold cannot tell noise from signal, so a genuine sustained shift smaller than this is never followed either, however long it is held: the scale is stationary, not creeping towards it. Do not present this to a user as smoothing -- they will wait for a move that never arrives. Zero switches it off.
Absolute, a difference rather than a fraction of the span, deliberately, because it exists to sit above the detector's own noise and that noise does not shrink because the scene is wide. The two fractions below are relative, because what counts as a big change is relative to the picture while what counts as noise is not.
It costs up to this much clipping in the opening direction, and that is accepted: the alternative is what 12.0.0 did, where every noise peak opened the scale and the scale then crept back down, so the palette pumped once per peak. Those pixels are still measured -- nothing here touches a reported temperature.
Appended after first_frame_seed and gated on struct_size the same way.
immediate_fraction
float immediate_fraction
The error, as a fraction of the scale in force, at or above which the scale stops being damped and adopts the scene outright. Default 0.5 -- half the palette.
This is the half of the behaviour a single smoothing constant cannot express. One constant is either slow, so a real scene change crawls, or fast, so noise moves the picture. The rate is instead a function of how wrong the scale currently is.
A fraction of the span rather than a temperature, so the same setting behaves the same on a hand in front of a wall and on a furnace. Zero, or any value not above damped_fraction, turns the adaptive rate off and leaves a plain one-pole filter.
damped_fraction
float damped_fraction
The error, as a fraction of the scale in force, below which the scale is damped at the full close_time_ms / open_time_ms. Default 0.05.
The bottom of the ramp whose top is immediate_fraction. Between the two the speed-up follows a smoothstep rather than a straight line, so there is no kink in the response at either end -- a corner is visible as a jerk part-way through a transition.