OptrisOptrisDocumentation

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

optris_sdk_spot_search_range

The temperature band a tracked spot is allowed to search in.

A OPTRIS_SDK_REGION_HOT_SPOT 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. 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 settings 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 -- optris_sdk_region_stats::valid is zero and the temperatures are NaN. It does not fall back to the unbanded extreme, which would be the glint again.

Set with optris_sdk_region_set_search_range(). Off by default; honoured by OPTRIS_SDK_REGION_HOT_SPOT and OPTRIS_SDK_REGION_COLD_SPOT, stored and ignored on every other kind.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_spot_search_range).

enabled

int32_t enabled

Non-zero to apply the band. While zero the search is unconstrained and the two bounds are ignored.

min_c

float min_c

Coolest temperature a pixel may have and still be eligible, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit), inclusive.

max_c

float max_c

Warmest temperature a pixel may have and still be eligible, in the SDK's temperature unit, inclusive. A band the wrong way round admits nothing, which is reported as "found nothing" rather than quietly swapped.