F_VN_Dft
Computes the DFT for a given image.
Syntax
Definition:
FUNCTION F_VN_Dft : HRESULT
VAR_INPUT
ipSpatialImage : ITcVnImage;
ipFrequencyImage : Reference To ITcVnImage;
bPackedCCS : BOOL;
bAutoPadding : BOOL;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipSpatialImage |
Source image (elements of type REAL or LREAL, 1 (Re) or 2 (Re + Im) channels) | |
ipFrequencyImage |
Reference To ITcVnImage |
Destination image (same type as ipSpatialImage, but number of channels and size can vary depending on bPackedCCS and bAutoPadding. |
bPackedCCS |
BOOL |
If true and ipSpatialImage has only 1 channel, the result image will have 1 channel with packed complex-conjugate-symmetrical format results. Otherwise, the result image will have 2 separate channels (Re + Im), containing the full spectrum. |
bAutoPadding |
BOOL |
If true, the input image is automatically padded (with 0s) to optimal size if required, to speed up dft (Creates a temporary copy so that ipSpatialImage content stays unchanged, which also requires some additional computation power. Therefore, it is recommended to compare execution times with and without padding.) |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
Required License
TC3 Vision Base
System Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4024.54 or later | PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU | Tc3_Vision |