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

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Fast Fourier Transform (FFT) Examples

5 ratings | 4.00 out of 5
Print

Downloads

Filename: 3600.vi
Requirements: View

Filename: 3599.llb
Requirements: View

The following example illustrate how to use the IMAQ FFT functions for image analysis.

The first example shows how to use the FFT functions to interactively filter an image in the frequency domain. First, the Sinusoidal Image Generator VI generates an image with horizontal and vertical sinusoidal patterns. You can adjust the frequency of these patterns from the front panel.

After displaying the original image, the VI displays the FFT of the image and then prompts you to select a region of interest (ROI). If you zoom into the center of the image, or where the high frequency information resides, you will see four dots that represent the +/- vertical and horizontal frequencies. Next, the VI multiplies the mask by the image in the complex domain. The result is then converted back to the time domain using the IMAQ Inverse FFT function.

Note: To select only the horizontal components of the image, hold down the Ctrl key and select multiple ROIs. This will filter out all of the vertical components.

The second example provides an easy way to benchmark FFT algorithms. This example allows the user to specify the size of the image and the example returns how long it takes to perform the FFT.

Related Links:
Automatic Focus Using FFT
Save FFT Image to file

Requirements


Filename: 3600.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): LabVIEW

 
Filename: 3599.llb

Software Requirements


Application Software: LabVIEW Professional Development System 7.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 7.0
Language(s): LabVIEW

 
5 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).