Table of Contents

Class SimpleBlobDetector.Params

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SimpleBlobDetector parameters

public class SimpleBlobDetector.Params
Inheritance
SimpleBlobDetector.Params
Inherited Members

Constructors

Params()

Properties

BlobColor

Expected intensity of a blob center in the binary image, used when FilterByColor is enabled. Use 0 to extract dark blobs and 255 to extract light blobs.

CollectContours

Flag to enable contour collection. If set to true, the detector will store the contours of the detected blobs in memory, which can be retrieved after the Detect() call using GetBlobContours(). Default value is false.

FilterByArea

If true, blobs are filtered by area; only blobs with an area between MinArea (inclusive) and MaxArea (exclusive) are extracted.

FilterByCircularity

If true, blobs are filtered by circularity (4piarea / perimeter^2); only blobs with a circularity between MinCircularity (inclusive) and MaxCircularity (exclusive) are extracted.

FilterByColor

If true, blobs are filtered by comparing the intensity of a binary image at the center of a blob to BlobColor; blobs with a different intensity are filtered out.

FilterByConvexity

If true, blobs are filtered by convexity (area / area of the blob's convex hull); only blobs with a convexity between MinConvexity (inclusive) and MaxConvexity (exclusive) are extracted.

FilterByInertia

If true, blobs are filtered by the ratio of the minimum to the maximum inertia; only blobs with a ratio between MinInertiaRatio (inclusive) and MaxInertiaRatio (exclusive) are extracted.

MaxArea

Upper bound (exclusive) of blob area used when FilterByArea is enabled.

MaxCircularity

Upper bound (exclusive) of blob circularity used when FilterByCircularity is enabled.

MaxConvexity

Upper bound (exclusive) of blob convexity used when FilterByConvexity is enabled.

MaxInertiaRatio

Upper bound (exclusive) of the inertia ratio used when FilterByInertia is enabled.

MaxThreshold

Upper bound (exclusive) of the range of thresholds used to binarize the source image.

MinArea

Lower bound (inclusive) of blob area used when FilterByArea is enabled.

MinCircularity

Lower bound (inclusive) of blob circularity used when FilterByCircularity is enabled.

MinConvexity

Lower bound (inclusive) of blob convexity used when FilterByConvexity is enabled.

MinDistBetweenBlobs

Maximum distance between centers of two blobs for them to be merged into a single blob group when combining results from the several binarized images.

MinInertiaRatio

Lower bound (inclusive) of the inertia ratio used when FilterByInertia is enabled.

MinRepeatability
MinThreshold

Lower bound (inclusive) of the range of thresholds used to binarize the source image.

ThresholdStep

Distance between neighboring thresholds when converting the source image to several binary images, from MinThreshold (inclusive) to MaxThreshold (exclusive).