OptrisOptrisDocumentation

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

optris::sdk::view::BlobDetector

Finds connected areas inside a temperature band in one frame.

Flood-fills 4-connected outward from every in-band pixel, visiting each pixel once, so a frame costs O(width * height) plus whatever BlobConfig::extract_contour asks for on top. It holds no state between frames and nothing here knows that the blob in this frame is the one from the last -- BlobTracker is what adds that.

The object exists only to own scratch buffers across calls: keep one alive per stream instead of constructing one per frame, and do not share it between threads, because two concurrent Detect() calls will write over each other's mask. The buffers are sized to the frame, so alternating between two frame sizes reallocates each way.

Public functions

Detect

std::vector< Blob > Detect(const int16_t *data, uint32_t w, uint32_t h, const BlobConfig &config)

Detect blobs in raw thermal data.

Parameters

Name Description
data Raw int16 thermal data ((celsius * 10) + 1000).
w Frame width in pixels.
h Frame height in pixels.
config Detection parameters.

Detect

std::vector< Blob > Detect(const float *data, uint32_t w, uint32_t h, const BlobConfig &config)

Detect blobs in float celsius thermal data.

Parameters

Name Description
data Float celsius temperatures.
w Frame width in pixels.
h Frame height in pixels.
config Detection parameters.