ColorScaleDynamics
class optris_sdk.camera.ColorScaleDynamics(NamedTuple)
How fast the auto-scaled colour range may move.
Read it from Camera.color_scale_dynamics, change a field
with _replace, and assign it back. It decides the picture and
nothing else: every temperature the SDK reports is produced before
colouring and is identical whatever this is set to.
Two behaviours, not one. What is wanted of an auto-scaled picture is near-immobility while the scene is merely noisy and a quick move when the scene actually changes, and no single smoothing constant delivers both -- it is one speed for everything, so either noise moves the picture or a real change crawls. The response therefore depends on how big the change is.
settle_band_k, max_lag_k and deadband_k are temperature
differences in degrees of the SDK's temperature unit (kelvin-sized
in Celsius, Fahrenheit-sized once
optris_sdk.set_temperature_unit chose Fahrenheit), with no
offset; the names are older than the switch. The defaults written
below are fixed numbers and do not follow the unit, so in
Fahrenheit ColorScaleDynamics() asks for 0.5 F, not 0.5 K:
start from Camera.color_scale_dynamics there, which reads
the camera's settings in the unit in force (0.9 for the default
deadband).
ColorScaleDynamics — methods
unadapted(cls)
The dynamics as they shipped through 12.0.0.
A plain one-pole filter: instant opening, no deadband, no adaptive rate. For anyone comparing two captures frame by frame, and for a fixture that asserts v11 numbers.
Unlike off the scale is still damped while closing --
this is the old filter, not no filter. Provided so such a caller
can say it means the unadapted filter rather than depend on
what the defaults happen to be: a test asserting v11 numbers
that gets them from a default is only telling the truth until
the default changes.
off(cls)
No damping at all: every frame is coloured with its own range.
What a bit-exact comparison wants. Zeroing both times switches off the deadband and the adaptive rate too -- "undamped" means undamped.