F_VN_ImageMoments
Computes the spatial moments, the central moments, and the central normalized moments of an image up to the third order.
Syntax
Definition:
FUNCTION F_VN_ImageMoments : HRESULT
VAR_INPUT
ipImage : ITcVnImage;
END_VAR
VAR_IN_OUT
stMoments : TcVnMoments;
END_VAR
VAR_INPUT
bBinaryImage : BOOL;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipImage |
Source image (1 channel, elements of type USINT or REAL) | |
bBinaryImage |
BOOL |
If true, all non-zero pixels are treated as ones |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
Required License
TC3 Vision Base