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

IMAQ Automatic Focus Example

12 ratings | 4.00 out of 5
Print

Downloads

Filename: autofocuscvi.zip
Requirements: View

Filename: 4062.zip
Requirements: View

This example illustrates two methods for determining the best focus for your imaging system. One approach uses frequency content to determine edge sharpness. The other method uses an edge detector and measures the average intensity of the edges. Both methods return a relative score that you can use to automate focusing. The concept is similar for both, but the approaches are different. Experiment with both methods to find which works best for you.

To use these methods, you need a way to automatically control the focus of your imaging system. For example, you need a lens that supports programmatic focus adjustment or you need a way to programmatically move the camera relative to the object under inspection.


Related Links:
System Setup

Requirements


Filename: autofocuscvi.zip

Software Requirements


Application Software: Measurement Studio Professional Edition 6.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Vision (IMAQ)
Driver: NI-IMAQ 2.6

 
Filename: 4062.zip

Software Requirements


Application Software: LabVIEW Full Development System 6.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Vision (IMAQ)
Driver: NI-IMAQ 2.2

 
12 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/).