optris::sdk::ProcessingConfig
How frames are processed on the way from the sensor to you.
One record rather than thirteen separate calls. The tuning parameters below had no getters at all before v12 -- they could be set and never read back -- and each setter repeated the same backend lookup, which is why two of them only ever reached one of the two pipelines.
Public attributes
outputs
ProcessingOutputConfig outputs
Which frame types the pipeline produces.
max_result_pool_size
unsigned int max_result_pool_size = 4
How many processed results may be in flight at once.
rdc
RdcMode rdc = RdcMode::kNormal
Radial distortion correction: whether the lens's own geometry is remapped out of the picture, and with which table.
On by default, which is what v11 defaults to (IRImagerConfig::rdcMode) and what the engine applies. The default matters because Set() writes the whole record through, so the documented read-modify-write idiom -- auto p = Get(); p.dde_enabled = true; Set(p); -- carries every other field as it stands. Where the calibration carries no coefficient this is a no-op rather than an error; see RdcMode and Processing::Correction().
sos_correction
bool sos_correction = true
Size-of-source correction: whether the halo of stray flux around a hot target is subtracted back out of the signal.
On by default, matching v11's enableSoSCorrection and the <SoS> flag the calibration carries per optics. A camera whose calibration ships no correction table is unaffected -- SosStatus::kNoTable, not an error.
On its own this changes nothing. The gate and the magnitude are separate, and the magnitude -- sos_strength below -- defaults to zero, which is an exact identity. Switching this on and leaving the strength alone is SosStatus::kZeroStrength, a state Processing::Correction() names explicitly precisely so that it does not read as a correction that is on and quietly doing nothing.
sos_strength
float sos_strength = 0.0F
How much of the received signal arrives via the halo, as a fraction: 0 subtracts nothing, 0.95 is the most the pipeline will attempt. Values outside that range are clamped rather than refused, matching the shader, which clamps the same way.
Zero by default, and that is not a placeholder for a better number -- it is the only honest one the SDK can supply. The correction table ships normalised to unit sum: it is a shape, saying where the stray flux comes from and nothing about how much of it there is. Two optics with the same halo geometry and different scatter ship the same table. So the strength cannot be recovered from the table by any arithmetic, no calibration document the SDK has shipped carries it, and v11 does not derive one either -- what looks like a derivation there is the table's own total weight, which lands anywhere between 0.22 and 3.1 depending only on the detector's height, and above 1 it subtracts more than the whole signal.
It therefore has to be measured for a camera and its optics and set here. Until it is, sos_correction is an exact identity, bit for bit, on both backends.
dde_enabled
bool dde_enabled = false
Digital detail enhancement: whether it runs, and its two gains.
Enhancement is a visualization operation. It changes the RGBA output and nothing else -- temperatures reported through ThermalFrame, measurement regions, recordings, snapshots and registered external buffers are unaffected on every backend. Before v12 they were not; see the CHANGELOG.
dde_enabled is the only thing either backend gates on. The gains are inert until it is true, and the C ABI's optris_sdk_imager_set_dde_gain() raises it for you -- in an earlier v12 build it did not, which is why every C and .NET caller of detail enhancement was a silent no-op.
dde_gain_base
float dde_gain_base = 1.0f
Multiplier on the low-frequency base layer, which is the frame's own 5x5 box blur. The split is base * dde_gain_base + (original - base) * dde_gain_detail, identical on both backends down to the integer division; only the result is clamped, to the int16 range the display buffer uses. Dimensionless, and nothing bounds the input.
Neutral is 1.0, which is also the default: 1.0 and 1.0 is the identity, so a caller that switches enhancement on without choosing gains gets the unenhanced picture rather than a blank one.
It defaulted to 0.0 in an earlier v12 build, which is not "no enhancement" but "discard the image": both terms multiply out to zero. Set() writes the whole record through, so auto p = Get(); p.dde_enabled = true; Set(p); with the gains untouched blanked the picture -- as did touching any other field of the record. Same defect as the old filter_strength = 0.0 default below, which was fixed without this one.
dde_gain_detail
float dde_gain_detail = 1.0f
Multiplier on the high-frequency detail layer, the residual original - base. Above 1.0 sharpens; the CPU backend's own default is 2.0 and the SDK's tools offer 0 to 10. Defaults to 1.0, the identity, for the same reason as dde_gain_base.
Because the colour scale follows true temperatures rather than the enhanced picture, a strong detail gain clips at the ends of the scale instead of rescaling it.
Both gains require dde_enabled on both backends; it is the only thing either of them gates on. The public NoiseFilter enum has no value that reaches detail enhancement -- it is display-only, and a deliberately separate switch from the radiometric filters.
filter_mode
NoiseFilter filter_mode = NoiseFilter::kNone
Spatial noise filter selection.
Unlike the DDE gains above, the noise filters run inside the radiometric path and do change reported temperatures -- that is what denoising a measurement means. Detail enhancement is not one of them; it is dde_enabled above.
Processing::Set() rejects a value outside the enum with std::invalid_argument, and one the running backend does not implement with FeatureNotSupportedException. Neither is silently substituted. Before v12 this was an int cast into the backend's own enum: a value the CPU pipeline did not have fell through its filter switch and swapped an unwritten scratch buffer in as thermal data.
filter_strength
float filter_strength = 1.0f
How strongly the selected filter is applied, as a multiple of its nominal setting. 1.0 is nominal and is the default; 2.0 is twice as aggressive, 0.5 half. Must be greater than zero and at most 100.
One meaning on both backends. It has no effect on the filters that have no strength to vary -- the medians, the box blurs and the 3x3 Gaussian are fixed kernels -- and none on kTemporal, whose time constant is temporal_alpha below.
temporal_alpha
float temporal_alpha = 0.3f
Temporal (frame-to-frame) smoothing factor, and the time constant of NoiseFilter::kTemporal: out = alpha * current + (1 - alpha) * previous. 1.0 keeps only the current frame and so smooths nothing; lower values weigh the history more heavily and smooth harder. Must be greater than 0 and at most 1.
It defaulted to 0.0 in an earlier v12 build, which is not "no smoothing" but "discard every frame after the first": the history term keeps its full weight and the current frame gets none, so the filter latches the first frame it sees and holds it for as long as it stays selected. Selecting kTemporal froze the picture on both backends -- the CPU pipeline because it reads this field directly, and the GPU pipeline because Processing::Set() writes this 0.0 over its own 0.3 default.
Third instance of the defect this struct has now had three times: the old filter_strength = 0.0 and the old dde_gain_base / dde_gain_detail = 0.0, each of which multiplied the image out to nothing. Both of those passes left this one behind. 0.3 is the GPU backend's own nominal setting, which is what the GPU path used before this field began overwriting it.
subsampled_framerate
float subsampled_framerate = 0.0f
Read out fewer frames than the sensor produces, to lower the data rate without changing the optic. Zero leaves the sensor's own rate alone.
operation_info_interval
int operation_info_interval = 0
Diagnostic overlay: writes internal values into the image every operation_info_interval frames at (x, y). Zero interval is off.
operation_info_x
int operation_info_x = 0
Column of the single pixel whose value is traced through the pipeline, in sensor coordinates with (0, 0) at the top left.
Nothing is drawn. The trace is an out-of-band record of each processing module's average time and of this one pixel's value as it leaves that module; neither the thermal data nor the RGBA image is touched, so it cannot corrupt a measurement.
It is inert in this build: the processing adapter's handler is an empty stub and no trace is ever emitted. Setting these has no observable effect except the validation below.
Warning: Out of range throws, out of any Processing::Set() call. The coordinates are forwarded unguarded to a legacy validator that raises optris::SDKException -- not ConfigException -- when the imager is not connected or the pixel is outside the frame. A caller that only meant to change dde_enabled gets it too. The bound is off by one in the permissive direction: x may equal the frame width without throwing, though that is not a pixel.
operation_info_y
int operation_info_y = 0
Row of that pixel, same coordinate system and same validation as operation_info_x; y may likewise equal the frame height.