OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

Aperture

public readonly struct Aperture

The sampling neighbourhood of a point region.

This changes the temperature a spot reports. Anything wider than ApertureShape.Pixel averages several pixels. The aperture is evaluated in image space and axis-aligned -- it is never sheared by the region's rotation -- and is clipped both to the region's own geometry and to the image bounds, so a point sitting on a sharp corner averages only pixels actually inside the region. RegionStats.Coverage reports how much of the nominal area had data.

Example

// A 3x3 average rather than a single noisy pixel.
var region = Region.Spot(new Vector2(0.5f, 0.375f),
                         new Aperture(ApertureShape.Square, 1.0f));

Aperture: constructors

public Aperture(ApertureShape shape, float radiusPixels = 0, float minimumCoverage = 0.25)

Create an aperture.

  • shape: The neighbourhood's shape.
  • radiusPixels: Its radius in pixels. Ignored for ApertureShape.Pixel.
  • minimumCoverage: Below this fraction of the nominal area, the sample is marked invalid rather than reported from a handful of pixels.

Aperture: properties

public float MinimumCoverage { get; }

The fraction of the nominal area that must have data for the sample to count as valid.

public float RadiusPixels { get; }

Its radius in pixels.

public ApertureShape Shape { get; }

The neighbourhood's shape.

public static Aperture SinglePixel { get; }

A single pixel: the historical behaviour.