OptrisOptrisDocumentation

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

RegionThreshold

public readonly record struct RegionThreshold : IEquatable<RegionThreshold>

Counting settings: how much of a region is past a limit.

Set Region.Threshold and read the result with ThermalCamera.GetRegionThresholdShare, or alarm on it with SignalField.ThresholdShare. Off by default: unlike percentiles this costs no selection and no storage, so it is opt-in only because a threshold nobody chose has no meaningful value.

RegionThreshold: properties

public ThresholdDirection Direction { get; init; }

Which side of RegionThreshold.ThresholdC counts. The comparison is strict on both sides, so ThresholdDirection.Above and ThresholdDirection.Below at one threshold never both count the same pixel.

public bool IsEnabled { get; init; }

Whether anything is counted at all.

public float ThresholdC { get; init; }

The limit, in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), whatever the C in its name says.

RegionThreshold: methods

public static RegionThreshold Above(float thresholdC)

Count the pixels above thresholdC.

  • thresholdC: The limit, in the SDK's temperature unit.

Returns: An enabled configuration.

public static RegionThreshold Below(float thresholdC)

Count the pixels below thresholdC.

  • thresholdC: The limit, in the SDK's temperature unit.

Returns: An enabled configuration.