Dft

Computes the DFT for a given image.

Syntax

Definition:

HRESULT Dft(
    HRESULT      hrPrev,
    ITcVnImage*  ipSpatialImage,
    ITcVnImage*& ipFrequencyImage,
    bool         bPackedCCS,
    bool         bAutoPadding
)

Parameters

Name

Type

Description

hrPrev

HRESULT

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

ipSpatialImage

ITcVnImage*

Source image (elements of type REAL or LREAL, 1 (Re) or 2 (Re + Im) channels)

ipFrequencyImage

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.)

Dft 1: 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