optris_sdk_blob_config
Blob detection settings for a OPTRIS_SDK_REGION_BLOB_GROUP region. Mirrors optris::sdk::BlobConfig.
Every field here is honoured by the measuring pass. On any other region kind the whole struct is stored, saved and ignored.
Detection is confined to the region: only pixels the region contains can join a blob, so a hot area straddling the boundary is clipped to the region rather than accepted or rejected whole.
Initialise with optris_sdk_blob_config_init(), which fills in struct_size and the same defaults the C++ struct carries, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit). Set it on a region builder with optris_sdk_region_set_blob_config() and read the results with optris_sdk_imager_read_region_blobs().
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_blob_config).
threshold_c
float threshold_c
Lower edge of the band, in the SDK's temperature unit, inclusive: a pixel is a member when threshold_c <= value <= threshold_max_c.
threshold_max_c
float threshold_max_c
Upper edge of the band, in the SDK's temperature unit, inclusive. Zero -- and anything at or below 0 C, which in Fahrenheit is anything at or below 32 F -- means no upper bound, which is the default and also the trap, because 0 C is a ceiling a caller may genuinely want. Exactly zero means no upper bound in either unit.
min_size_pixels
uint32_t min_size_pixels
Smallest blob to report, in member pixels, inclusive. Counted in pixels that joined the blob, not bounding-box area, so a thin diagonal streak is judged on its own length.
max_count
uint32_t max_count
Most blobs to report; 0 means unlimited. Applied last, after max_blob_size, by ranking on bounding-box area and truncating.
max_blob_size
float max_blob_size
Largest blob to report, as a fraction of the region; 0 means no limit. Useful when a warm background would otherwise be one blob.
The fraction is of the pixels the region actually measured -- optris_sdk_region_stats::pixel_count -- compared against the blob's own member pixel count. Applied before max_count, so a blob rejected for being too large does not use up a slot.
smoothing
float smoothing
Outline simplification tolerance, in region coordinates -- the same units optris_sdk_vec2 uses, so smoothing * frame_width is the tolerance in pixels. Ignored unless render_mode is OPTRIS_SDK_BLOB_CONTOUR.
contour_max_points
uint32_t contour_max_points
Cap on the number of points in an outline, applied after smoothing by subsampling at a regular stride. 0 means the default 200 rather than "no points". Ignored unless render_mode is OPTRIS_SDK_BLOB_CONTOUR.
render_mode
optris_sdk_blob_render_mode render_mode
Box or outline. OPTRIS_SDK_BLOB_CONTOUR is what makes optris_sdk_imager_read_region_blob_contour() return anything.