Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

filter_2d (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: filter implementation

Requires: MathScript RT Module

Syntax

y = filter_2d(f, x)

y = filter_2d(f, x, shape)

Legacy Name: filter2

Description

Applies a two-dimensional FIR filter.

Examples

Inputs

Name Description
f Specifies the 2D FIR filter to use. f is a 2D array of real or complex, double-precision, floating-point numbers.
x Specifies the signal to filter. x is a 2D array of real or complex, double-precision, floating-point numbers.
shape Specifies the size of the filtered signal. shape is a string that accepts the following values.

'full' Returns the full two-dimensional convolution. y is larger than x.
'same' (default) Returns the central part of the convolution. y is the same size as x.
'valid' Returns only the parts of the convolution that LabVIEW computes without zero-padded edges. y is smaller than x.

Outputs

Name Description
y Returns the filtered signal. y is a 2D array of real or complex, double-precision, floating-point numbers.

Examples

F = rand(2);
X = rand(4);
Y = filter_2d(F, X, 'full')

Related Topics

filter
filter_fft
filter_zerophase


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit