TcVnParamsSB
Offers parameters for SB method (a simple blob detector with multiple thresholds).
Syntax
Definition:
TYPE TcVnParamsSB :
STRUCT
bFilterByArea : BOOL;
bFilterByCircularity : BOOL;
bFilterByColor : BOOL;
bFilterByConvexity : BOOL;
bFilterByInertia : BOOL;
fMinArea : REAL;
fMaxArea : REAL;
fMinCircularity : REAL;
fMaxCircularity : REAL;
nBlobColor : USINT;
fMinConvexity : REAL;
fMaxConvexity : REAL;
fMinInertiaRatio : REAL;
fMaxInertiaRatio : REAL;
fMinBlobDist : REAL;
nMinRepeatability : UDINT;
fMinThreshold : REAL;
fMaxThreshold : REAL;
fThresholdStep : REAL;
END_STRUCT
END_TYPE
Parameters
Name |
Type |
Default |
Description |
---|---|---|---|
bFilterByArea |
BOOL |
TRUE |
Enable filtering by area (fMinArea <= area < fMaxArea). |
bFilterByCircularity |
BOOL |
FALSE |
Enable filtering by circularity (fMinCircularity <= circularity(4pi * area / perimeter^2) < fMaxCircularity). |
bFilterByColor |
BOOL |
FALSE |
Enable filtering by color (thresholdedColor(0 or 255) = nBlobColor). |
bFilterByConvexity |
BOOL |
FALSE |
Enable filtering by convexity (fMinConvexity <= convexity(area / hullArea) < fMaxConvexity). |
bFilterByInertia |
BOOL |
FALSE |
Enable filtering by inertia ratio (fMinInertiaRatio <= inertia ratio < fMaxInertiaRatio). |
fMinArea |
REAL |
25 |
Min estimated blob area in pixel |
fMaxArea |
REAL |
15000 |
Max estimated blob area in pixel |
fMinCircularity |
REAL |
0 |
Min circularity (1.0: ideal circle, < 1: less circular, 0: not circular at all) |
fMaxCircularity |
REAL |
1 |
Max circularity (1.0: ideal circle, < 1: less circular, 0: not circular at all) |
nBlobColor |
USINT |
255 |
0 or 255 |
fMinConvexity |
REAL |
0 |
Min convexity (1.0: blob fully convex, < 1: less convex) |
fMaxConvexity |
REAL |
1 |
Max convexity (1.0: blob fully convex, < 1: less convex) |
fMinInertiaRatio |
REAL |
0 |
Min inertia ratio (0.0 .. 1.0) |
fMaxInertiaRatio |
REAL |
1 |
Max inertia ratio (0.0 .. 1.0) |
fMinBlobDist |
REAL |
5 |
Min distance between different blobs |
nMinRepeatability |
UDINT |
2 |
Min number of same detected blobs (dist < fMinBlobDist) in different thresholds |
fMinThreshold |
REAL |
30 |
Min threshold (start) |
fMaxThreshold |
REAL |
225 |
Max threshold (stop) |
fThresholdStep |
REAL |
10 |
Threshold step between min and max threshold |