メインコンテンツ

hexagon.hvx.FFT2

R2026b

2-D fast Fourier transform using HVX

Since R2026b

Description

The hexagon.hvx.FFT2 System object™ computes the two-dimensional (2-D) fast Fourier transform (FFT) of a real-valued input matrix using the Qualcomm® Hexagon® Vector eXtensions (HVX) library.

To perform a 2-D FFT operation:

  1. Create the hexagon.hvx.FFT2 object.

  2. Call the object with arguments, as if it were a function.

To learn more about how System objects work, see What Are System Objects?

The System object supports simulation and generates optimized code for Qualcomm DSPs using CRL-based replacements. Use this System object to perform matrix-based frequency-domain computations in image processing and similar workflows.

You can deploy the code generated using the hexagon.hvx.FFT2 System object to one of these boards that are available under the Hardware board parameter in Configuration Parameters:

  • Qualcomm Hexagon Android Board

  • Qualcomm Hexagon Linux Board

Creation

Description

obj = hexagon.hvx.FFT2() creates a 2-D FFT System object.

example

Usage

Description

y = obj(x) performs a 2-D FFT operation on x.

Input Arguments

expand all

Input signal, specified as a 2-D square matrix with real values. The dimension of the square matrix must be a power of two and greater than or equal to 64.

Data Types: single

Output Arguments

expand all

FFT output, returned as a complex matrix.

Data Types: single
Complex Number Support: Yes

Object Functions

To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object named obj, use this syntax:

release(obj)

expand all

stepRun System object algorithm
releaseRelease resources and allow changes to System object property values and input characteristics
resetReset internal states of System object

Examples

collapse all

Create an input matrix. The size of the matrix must be a power of 2 and greater than or equal to 64.

x = rand([128,128],"single");

Create a 2-D FFT System object.

obj = hexagon.hvx.FFT2()

Compute the 2-D FFT.

Y = obj(x);

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2026b