Aperture
pub struct Aperture
The sampling neighbourhood of a point region.
Anything other than ApertureShape::Pixel changes the reported
temperature: the sample becomes an average over the
neighbourhood. That is usually what you want on a noisy scene and
never what you want if you are comparing against a single-pixel
reading from elsewhere.
Aperture — fields
shape: ApertureShape
Shape of the neighbourhood.
radius_px: f32
Radius in pixels. Ignored for ApertureShape::Pixel.
min_coverage: f32
Below this coverage the sample is marked invalid.
A rule on an under-covered sample reports
AlarmState::Orphaned rather than alarming on two pixels.
Aperture — methods
pub fn new() -> Self
The SDK's default: a single pixel, which changes no temperatures.
pub fn square(radius_px: f32) -> Self
A square neighbourhood of (2r+1) pixels a side.
pub fn circle(radius_px: f32) -> Self
A disc of the given radius in pixels.
pub fn with_min_coverage(mut self, min_coverage: f32) -> Self
Require this much coverage before the sample counts as valid.