optris::sdk::Aperture
The sampling neighbourhood of a point region.
Warning: This changes reported temperatures. The aperture is evaluated in image space and axis-aligned; it is never transformed by the region's matrix, so it is never sheared. It is clipped to the owning region's geometry and to the image bounds: a point sitting on a sharp polygon corner averages only the pixels that are actually inside the region, and never pixels outside it. The resulting RegionStats::coverage reports sampled/nominal, so the fact that a corner sample is noisier than a centre sample is visible rather than hidden. Below min_coverage the sample is marked invalid, its temperatures are blanked to NaN, and rules on it go kOrphaned rather than alarming on two pixels.
Public attributes
shape
ApertureShape shape = ApertureShape::kPixel
pixel, square or circle
radius_px
float radius_px = 0.0F
Radius in pixels. A square of radius r is (2r+1) wide, so r=1 is 3x3 and r=2 is 5x5. Ignored for kPixel.
min_coverage
float min_coverage = 0.25F
The least fraction of the intended window that must have data for the sample to count. Below it the sample is invalid, reports NaN temperatures rather than the few pixels it managed to reach, and a rule watching it goes kOrphaned rather than alarming on them.