OptrisOptrisDocumentation

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

optris::sdk::SpotSearchRange

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

A RegionKind::kHotSpot reports the warmest pixel inside its parent, and the warmest pixel is not always the one the region was drawn for: a sun glint off a rail, a reflection in a polished flange, a heater in the background of the same area. Each of those 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.

What the band is compared against: What the band is compared against The spot's own reading for that position, which is what SpotSearchMode decides: the aperture average under SpotSearchMode::kAperture, the single pixel under SpotSearchMode::kPixel. So "the hottest reading between 40 and 80 C" means the same thing in both modes, and with ApertureShape::kPixel they are the same number.

Under kPixel the band constrains the search, not the sample: once the extreme pixel has been found the aperture around it is averaged whole, neighbours outside the band included. The two settings answer different questions -- this one says where to measure, the aperture says what the measurement is over -- and filtering the aperture as well would report the mean of a hand-picked subset of its own window, which is a number with no physical meaning.

When the band excludes everything: When the band excludes everything The spot has found nothing, and says so: RegionStats::valid is false, the temperatures are NaN and a rule watching it goes kOrphaned. It deliberately does not fall back to the unbanded extreme -- that would be the glint again, reported as though the band had been honoured.

Read against the camera's temperatures, not the region's: Read against the camera's temperatures, not the region's The search runs on the frame as the camera reports it, before Region::emissivity is applied -- which is what makes it affordable, and which cannot change which pixel is the extreme because the correction is monotonic. A fixed bound is different: a region with its own emissivity can have pixels move across min_c or max_c that would not have moved across them after correction. Write the band in the numbers the camera shows, which is what an operator reading a band off the display has anyway.

Off by default, so a region that sets no band behaves exactly as before. Honoured by kHotSpot and kColdSpot; stored, saved and ignored on every other kind, the same way BlobConfig is.

min_c and max_c are in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit); the band above is written in Celsius.

Public attributes

enabled

bool enabled = false

Off by default. While false the search is unconstrained and the two bounds below are ignored.

min_c

float min_c = 0.0F

Coolest temperature a pixel may have and still be eligible, in the SDK's temperature unit, inclusive.

max_c

float max_c = 0.0F

Warmest temperature a pixel may have and still be eligible, in the SDK's temperature unit, inclusive. Must not be below min_c; a band that is the wrong way round admits nothing, which is reported as "found nothing" rather than silently swapped.