OptrisOptrisDocumentation

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

optris::sdk::view::Blob

One connected area of pixels that fell inside the BlobConfig band.

Connectivity is 4-way, so two hot areas that touch only at a corner are two blobs and not one. All geometry is normalized to the whole frame -- never to a region of interest -- and the box is the axis-aligned extent of the member pixels, with no orientation and no record of holes. A Blob is a single-frame observation with no memory: nothing in it survives to the next call. Feed it through Detection into BlobTracker when an identity that outlives the frame is what is actually wanted.

Public attributes

id

uint32_t id

Position in this call's detection order, counting from 1.

Raster order of the seed pixel, meaningful only within the vector Detect() returned. It restarts at 1 on every call, so the same physical hot spot is renumbered as soon as another blob appears above or to the left of it. The counter also advances for candidates that min_size_pixels then rejects, so the ids in a returned vector have gaps and are not indices into it. For a number that means "the same object as last frame", use TrackedDetection::id.

max_temp

float max_temp

Hottest single pixel in the blob, in degrees Celsius.

Always a real sample, never interpolated between pixels. The int16_t overload of Detect() converts with (raw - 1000) / 10, so there it is quantized to 0.1 K; the float overload passes the value through untouched.

avg_temp

float avg_temp

Unweighted mean over every pixel in the blob, in Celsius.

Accumulated in double and divided by the pixel count, so it does not drift on large blobs. Note that BlobConfig::threshold is by construction a floor under this value: raising the threshold raises avg_temp even though nothing in the scene changed, because the cooler pixels stop being members.

center_x

float center_x

Horizontal centre of the bounding box, 0..1 across the frame.

The centre of the box -- not the centroid of the pixels, and not where max_temp was found. For a ring- or comma-shaped blob it can land on a pixel that is not a member at all. Normalized by the full frame width, so a one-pixel blob in column 0 reports 0.5 / width rather than 0.

center_y

float center_y

Vertical centre of the bounding box, 0..1 down the frame. Same conventions as center_x.

width

float width

Bounding box width as a fraction of the frame width.

Measured in whole pixels and inclusive of both edge columns, so the narrowest blob possible is 1 / frame_width wide and never 0. Multiply by the frame width for pixels. BlobConfig::max_count ranks on width * height, this box area, and not on how many pixels a blob actually has.

height

float height

Bounding box height as a fraction of the frame height. Same conventions as width.

pixel_count

uint32_t pixel_count

How many pixels are members of the blob.

The count the 4-connected fill actually visited, so it is the same number BlobConfig::min_size_pixels was compared against -- not the bounding-box area, which for a sparse L-shape is far larger. optris::sdk::BlobConfig::max_blob_size is expressed as a fraction of the region's measured pixels and is applied against this, which is why it is reported rather than left implicit.

contour

std::vector< ContourPoint > contour

Outer boundary of the blob, or empty.

Filled only when BlobConfig::extract_contour is set. It is a closed loop in ContourPoint coordinates, walked over the 8-neighbourhood -- so it steps diagonally even though the fill that found the blob was 4-connected -- then thinned by BlobConfig::contour_simplify 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. A boundary longer than 10000 steps is abandoned mid-walk and the loop does not close. The winding direction is whatever the walk produced; do not build an inside test on it.