SpotSearchRange
public readonly struct SpotSearchRange
The temperature band a tracked spot is allowed to search in.
A RegionKind.HotSpot reports the warmest pixel inside its parent, and the warmest pixel is not always the one the region was drawn for: a sun glint, a reflection in a polished flange, a heater behind the subject. Each outranks the subject and takes the spot with it. A band makes "the hottest pixel between 40 and 80 C" expressible, and the 300 C glint then cannot win.
The band constrains the search, not the sample: the Aperture around the winning pixel is averaged whole, neighbours outside the band included. The two say where to measure and what the measurement is over, and filtering both would report the mean of a hand-picked subset of a window.
When nothing in the parent falls inside the band the spot has found nothing and says so: RegionStats.IsValid is false and the temperatures are NaN. It does not fall back to the unbanded extreme, which would be the glint again.
Both edges are in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), whatever the C in their names says.
Example
// The hottest bearing, not the reflection off the guard above it. hotSpot.SearchRange = new SpotSearchRange(40.0f, 90.0f);
SpotSearchRange: constructors
public SpotSearchRange(float minimumC, float maximumC)
Confine the search to minimumC.. maximumC, inclusive.
minimumC: Coolest temperature a pixel may have and still be eligible.maximumC: Warmest temperature a pixel may have and still be eligible. A band the wrong way round admits nothing, which is reported as "found nothing" rather than quietly swapped.
SpotSearchRange: properties
public bool IsEnabled { get; }
Whether the band is applied at all.
public float MaximumC { get; }
Warmest eligible temperature, in the SDK's temperature unit.
public float MinimumC { get; }
Coolest eligible temperature, in the SDK's temperature unit.
public static SpotSearchRange Unconstrained { get; }
No band: the spot searches the whole of its parent, which is the default and changes no temperatures.