CreateBandrejectGaussianFilter

Creates a bandreject Gaussian filter, which can be applied to a frequency domain image by element-wise multiplication.

Syntax

Definition:

HRESULT CreateBandrejectGaussianFilter(
    HRESULT      hrPrev,
    ITcVnImage*& ipFilter,
    ULONG        nWidth,
    ULONG        nHeight,
    bool         bDoublePrecision,
    bool         bOriginAtCenter,
    double       fCutoffDistance,
    double       fBandWidth
)

Parameters

Name

Type

Description

hrPrev

HRESULT

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

ipFilter

ITcVnImage*&

Returns the created filter (1 channel of type REAL or LREAL, depending on bDoublePrecision. Non-zero interface pointers are reused.).

nWidth

ULONG

Filter width (even, >= 2, must match the width of the image it is applied to)

nHeight

ULONG

Filter height (even, >= 2, must match the height of the image it is applied to)

bDoublePrecision

bool

If true, the filter is generated with double precision (LREAL) instead of single precision (REAL).

bOriginAtCenter

bool

If true, the filter origin is shifted to the image center.

fCutoffDistance

double

The cutoff distance of the Gaussian filter (> 0).

fBandWidth

double

The band width of the Gaussian filter (> 0).

CreateBandrejectGaussianFilter 1: Return value

HRESULT

Required License

TC3 Vision Base

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1. 4024.44 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision