F_VN_Dft

F_VN_Dft 1:

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

F_VN_Dft 2: Inputs

Name

Type

Description

ipSpatialImage

ITcVnImage

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

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

F_VN_Dft 3: Return value

HRESULT

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