F_VN_GetConnectedComponent
Get the mask image of a connected component from a label image based on the label ID.
Syntax
Definition:
FUNCTION F_VN_GetConnectedComponent : HRESULT
VAR_INPUT
ipLabelImage : ITcVnImage;
nLabelID : DINT;
ipMaskImage : Reference To ITcVnImage;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipLabelImage |
Image containing labels for each pixel (1 channel DINT or UINT). | |
nLabelID |
DINT |
Value of the requested label |
ipMaskImage |
Reference To ITcVnImage |
Returns a mask image marking the pixels that belong to the component (1 channel USINT.) |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
Required License
TC3 Vision Base