OptrisOptrisDocumentation

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

optris::sdk::RegionBlob

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

Coordinates: Coordinates Region coordinates, the same space Region::geometry is in -- both axes normalised by the frame width, so y runs 0..0.75 on a 4:3 camera and a blob keeps its meaning when the frame is resized. That is deliberately not the space optris::sdk::view::Blob reports, which normalises each axis by its own dimension; the conversion is done once, here, so that a caller never has to know the detector's convention. centre * frame_width gives pixels, exactly as ToPixels() would.

Identity: Identity A blob is a single-frame observation and carries no id. The vector is rebuilt every frame and nothing in it is promised to be the same object as the entry at the same index last frame. Regions have generational ids and signal slots precisely because identity is expensive to keep; spending that on something the frame thread rediscovers 32 times a second would orphan every rule attached to it, every frame. Alarm on SignalField::kBlobCount, or on the region's own statistics, rather than on a blob.

Public attributes

centre

Vec2 centre

Centre of the bounding box, in region coordinates.

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

size

Vec2 size

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

max_c

float max_c = 0.0F

Hottest single pixel in the blob, in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit), at the region's own emissivity when it has one. Always a real sample.

mean_c

float mean_c = 0.0F

Unweighted mean over every member pixel, in the same unit. Note that BlobConfig::threshold is by construction a floor under this: raising the threshold raises mean_c even though nothing in the scene changed.

pixel_count

uint32_t pixel_count = 0

How many pixels are members. The number BlobConfig::min_size was compared against, and what BlobConfig::max_blob_size is a fraction of.

contour

std::vector< Vec2 > contour

Outer boundary in region coordinates, or empty.

Filled only when BlobConfig::render_mode is BlobRenderMode::kContour. A closed loop walked over the 8-neighbourhood -- so it steps diagonally even though the fill that found the blob was 4-connected -- thinned by BlobConfig::smoothing and capped at BlobConfig::contour_max_points. Only the outer boundary: a blob with a cold hole in it yields one loop and the hole is invisible here. The winding direction is whatever the walk produced; do not build an inside test on it.