Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Continuous Grab with FFT Mask

by Member Simon-P on ‎11-12-2012 12:42 PM

Description:

This example program demonstrates how to use IMAQ FFT, IMAQ Mask, and IMAQ Inverse FFT to perform a Mask FFT Filter. It grabs images from a camera and allows the user to chose an area of the FFT to block; it then displays the result on the front panel next to the original image. It may be used to block or eliminate certain features of an image.

All VIs are in LabVIEW 2012 with NI-IMAQ 4.7

Instructions:

1) Chose a camera

2) Select a filter type. Low Pass will block everything but the chosen region of the FFT; High pass will do the opposite.

3) Run the VI

4) Use the window that pops up in order to block portions of the FFT

5) Press the Change Mask button to chose another portion of the FFT to block

FFT_Front_Panel.png

Block Diagram:

1) Open a camera session and commence grabbing images

2) Take the FFT of the image after converting it to grayscale

3) Chose the ROI

4) Transpose the frequency components of a complex image

5) Completes the mask and inverses the FFT

FFT_Block_Diagram.png