OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::RadiationConfig

Radiation parameters for temperature measurement.

ambient_temp_c is in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit). Its default of 20 is a compile-time Celsius number, so in Fahrenheit a default-constructed RadiationConfig asks for 20 F. Start from the SDK's current value, Radiometry().Get(), change the fields you mean to, and write that back.

Public attributes

emissivity

float emissivity = 1.0f

How efficiently the surface radiates, 0..1. The single most important measurement setting: 1.0 assumes a perfect radiator, and a polished metal surface is nowhere near it.

transmissivity

float transmissivity = 1.0f

Transmissivity of anything between camera and object -- a window, a protective pane. 1.0 is a clear path.

ambient_temp_c

float ambient_temp_c = 20.0f

Air temperature between camera and object, in the SDK's temperature unit. Ignored when estimate_ambient is set.

Reading this gives back the configured value in either mode -- what was last written, never the figure the camera worked out for itself. While estimate_ambient is set, this is therefore not the value the measurement is using; for that read Imager::GetEffectiveAmbientTemperature(), or watch the SignalField::kAmbientTemp device signal.

This is also the reflected reference: the correction for a low-emissivity surface, which shows its surroundings, uses this same temperature. The engine holds one value for both and has no setter for a separate reflected temperature, so there is one field here rather than two that would have to agree.

estimate_ambient

bool estimate_ambient = false

Let the camera estimate the ambient temperature itself, instead of using ambient_temp_c.

Supplying an explicit ambient temperature turns estimation off, which is why this defaults to false. Before v12 there was no way to turn it back on: every path that set a radiation parameter disabled estimation as a side effect and nothing re-enabled it.

The estimate is derived from the housing probe with a 0.1 K hysteresis, so it steps rather than drifts and cannot be reproduced from outside the SDK. Read it, do not copy the rule: Imager::GetEffectiveAmbientTemperature() and the SignalField::kAmbientTemp device signal both report the value actually in force, and are invalid until the first frame.

emissivity_affects_image

bool emissivity_affects_image = true

When true (the default), a per-region emissivity is applied in the pipeline, so it changes both the measured temperatures and the false-color image. When false the image stays on the global emissivity and a per-region emissivity only adjusts the reported region temperatures.

The image half reaches both pipelines, GPU and CPU, and so a simulated camera too: each applies the region's emissivity to its pixels while converting energy to temperature, by the same arithmetic. It follows the regions as they are added, edited and removed, so a region given an emissivity afterwards still reaches the picture, and it follows the camera onto the CPU pipeline if its GPU pipeline fails. Playback, a still and a radiometric simulated camera (SimulatedConfig::raw_detector) have no image-side path, so there the temperatures are corrected and the picture is not.

The readings are the same in both positions. A region's statistics, its spot readings and the alarms on them follow the region's own emissivity, and the camera's, whether this is set or not; only the delivered picture differs. A temperature sampled from the picture is therefore not a region's reading while this is off -- Radiometry::TemperatureAtEmissivity() converts one.

This flag reads back as it was set, everywhere. It said here that it "reads as false there however it is set", and it never did: Radiometry::Get() reports it as set, deliberately, because an application that reads a configuration back and writes it out again must not have the setting silently rewritten under it. So this flag is what was asked for and not what happened.

Radiometry::RegionEmissivityInFrames() is what happened. It answers, for the frames being delivered right now, whether a region's own emissivity is already in the pixels -- which is the question the sentence above was trying to answer and could not, because it depends on the pipeline behind the source and on whether any region carries an emissivity at all.

emissivity_own_scale

bool emissivity_own_scale = false

Colour each corrected region on ITS OWN range, instead of on the scene's.

Only meaningful when emissivity_affects_image is set: this decides how the corrected pixels are coloured, not whether they are corrected. Together the two read as the three things an operator can ask for:

  • emissivity_affects_image = false -- the readings change and the picture does not. The area looks exactly like its surroundings, and only the numbers say otherwise.
  • true, this false -- the picture inside the area is corrected and coloured on the GLOBAL scale. Truthful: a colour in the area means what the same colour means outside it. It is usually a narrow band, because a corrected area covers a fraction of the range the whole scene does.
  • true, this true -- the picture inside the area is corrected and coloured on its own min/max, so it uses the whole palette whatever the rest of the scene is doing. This is the one for looking INTO a hot part. The colours inside no longer mean what the bar outside says, which is a real cost and the reason it is not the default.

Like the image half of emissivity_affects_image, this works on both pipelines; it also works on playback and a still, because the scaling is a pass over the delivered picture, not a pipeline stage. On a source with no image-side emissivity path (playback, a still) the area is rescaled but not re-corrected, so the contrast appears and the temperatures behind it do not move.