OptrisOptrisDocumentation

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

RegionBlob

public readonly struct RegionBlob

One connected hot area a RegionKind.BlobGroup region found in the most recent frame.

Coordinates. Region coordinates -- both axes normalised by the frame width, so Centre.Y runs 0..0.75 on a 4:3 camera and Centre.X * width gives pixels. This is the same space every other Vector2 in this API carries.

Identity. A blob is a single-frame observation and carries no identifier. The array is rebuilt every frame and nothing in it is promised to be the same object as the entry at the same index last frame. Alarm on SignalField.BlobCount, or on the region's own statistics, rather than on an individual blob.

RegionBlob: properties

public Vector2 Centre { get; init; }

The centre of the bounding box, in region coordinates.

The centre of the box -- not the centroid of the member pixels, and not where RegionBlob.Max was found. For a ring- or comma-shaped blob it can land on a pixel that is not a member at all.

public int ContourPointCount { get; init; }

How many points the blob's outline has; zero unless the region asked for BlobRenderMode.Contour.

Read the points themselves with ThermalCamera.ReadRegionBlobContour(…).

public float Max { get; init; }

The hottest single pixel in the blob, in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), at the region's own emissivity when it has one.

public float Mean { get; init; }

The unweighted mean over every member pixel, in the SDK's temperature unit.

BlobDetection.Threshold is by construction a floor under this: raising the threshold raises the mean even though nothing in the scene changed.

public int PixelCount { get; init; }

How many pixels are members.

The number BlobDetection.MinSizePixels was compared against, and what BlobDetection.MaxBlobSize is a fraction of.

public Vector2 Size { get; init; }

The bounding-box extents in region coordinates, inclusive of both edge pixels -- so the narrowest blob possible is 1 / width and never zero.