OptrisOptrisDocumentation

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

optris_sdk_blob

One connected hot area a OPTRIS_SDK_REGION_BLOB_GROUP region found in the most recent frame. Mirrors optris::sdk::RegionBlob.

Coordinates: 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 optris_sdk_vec2 carries everywhere else in this header.

Identity: Identity A blob is a single-frame observation and carries no id. 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 OPTRIS_SDK_FIELD_BLOB_COUNT, or on the region's own statistics, rather than on an individual blob.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_blob).

centre

optris_sdk_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.

size

optris_sdk_vec2 size

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

max_c

float max_c

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

mean_c

float mean_c

Unweighted mean over every member pixel, in the SDK's temperature unit. Note that threshold_c is by construction a floor under this.

pixel_count

uint32_t pixel_count

How many pixels are members: the number min_size_pixels was compared against, and what max_blob_size is a fraction of.

contour_points

uint32_t contour_points

How many points the blob's outline has. Zero unless the region's render_mode is OPTRIS_SDK_BLOB_CONTOUR. Read the points themselves with optris_sdk_imager_read_region_blob_contour().