OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ColorWindow

public readonly record struct ColorWindow : IEquatable<ColorWindow>

A temperature band drawn in colour over a grayscale base: an isotherm.

For showing where something is in range without losing sight of the rest of the scene. Display only: a colour window changes no measurement.

Bands composite in ascending id, so a later id draws over an earlier one where they overlap. At most ThermalCamera.MaxColorWindows at once.

Both edges are in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit) when the window is set, and read back in the unit in force.

ColorWindow: constructors

public ColorWindow(float MinimumTemperature, float MaximumTemperature, Palette Palette = 0, float Opacity = 1, bool MotionOnly = false, ReadOnlyMemory<Rgb24> Colors = default)

A temperature band drawn in colour over a grayscale base: an isotherm.

  • MinimumTemperature: The band's lower edge, in the SDK's temperature unit.
  • MaximumTemperature: The band's upper edge, in the SDK's temperature unit.
  • Palette: The colour map for the band, used when Colors is empty.
  • Opacity: How strongly it is drawn, 0 to 1.
  • MotionOnly: Colour only where motion was detected, which needs a motion zone to be configured. On a live camera the mask is one frame old, because it is computed from the frame the pipeline has already drawn.
  • Colors: The band's own colour ramp, coldest first, overriding Palette. Any length from 1 to Palettes.ColorCount; it is resampled across the band. One entry is a solid colour: the marker band that reads as a flag rather than a gradient. A table handed over end-for-end is a reversed ramp, which is how a cold band is made to read as cold. Empty means use Palette.

For showing where something is in range without losing sight of the rest of the scene. Display only: a colour window changes no measurement.

Bands composite in ascending id, so a later id draws over an earlier one where they overlap. At most ThermalCamera.MaxColorWindows at once.

Both edges are in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit) when the window is set, and read back in the unit in force.

ColorWindow: properties

public ReadOnlyMemory<Rgb24> Colors { get; init; }

The band's own colour ramp, coldest first, overriding Palette. Any length from 1 to Palettes.ColorCount; it is resampled across the band. One entry is a solid colour: the marker band that reads as a flag rather than a gradient. A table handed over end-for-end is a reversed ramp, which is how a cold band is made to read as cold. Empty means use Palette.

public float MaximumTemperature { get; init; }

The band's upper edge, in the SDK's temperature unit.

public float MinimumTemperature { get; init; }

The band's lower edge, in the SDK's temperature unit.

public bool MotionOnly { get; init; }

Colour only where motion was detected, which needs a motion zone to be configured. On a live camera the mask is one frame old, because it is computed from the frame the pipeline has already drawn.

public float Opacity { get; init; }

How strongly it is drawn, 0 to 1.

public Palette Palette { get; init; }

The colour map for the band, used when Colors is empty.