InnerCircle
Calculates the position and radius of the largest inscribed circle within the white region of a binary image.
Syntax
Definition:
HRESULT InnerCircle(
HRESULT hrPrev,
ITcVnImage* ipSrcImage,
double& fRadius,
TcVnPoint2_REAL& aCenter,
ETcVnDistanceType eDistanceType = DT_L2,
ETcVnDistanceTransformationMask eMaskSize = DTM_5
)Parameters
|
Name |
Type |
Default |
Description |
|---|---|---|---|
|
hrPrev |
|
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) | |
|
ipSrcImage |
|
Source image (USINT, 1 channel) | |
|
fRadius |
double& |
|
Returns the radius of the inner circle |
|
aCenter |
|
Returns the center of the inner circle | |
|
eDistanceType |
DT_L2 |
Distance computation method (supported: L1, L2, C) | |
|
eMaskSize |
DTM_5 |
Size of the distance transformation mask |
Required License
TC3 Vision Base
System Requirements
|
Development environment |
Target platform |
PLC libraries to include |
|---|---|---|
|
TwinCAT V3.1.4026 or later |
PC or CX (x64) with min. PL50, e.g. Intel 4-core Atom CPU |
Tc3_Vision |