17.12.2018 Views

Image Acquisitionand Proces

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3<br />

<strong>Image</strong> Acquisition<br />

There are two main methods of obtaining images: loading from disk and acquiring<br />

directly using a camera. <strong>Image</strong> acquisition is often considered a complex task, but<br />

it can be simpliÞed for most vision applications. National Instrument’s Measurement<br />

and Automation Explorer (MAX), LabVIEW and the Vision Toolkit make image<br />

acquisition a straightforward and integrated task.<br />

3.1 CONFIGURING YOUR CAMERA<br />

The range of cameras available to use with your vision system is astounding – several<br />

different types exist across brand lines (more information of camera types can be<br />

found in Chapter 2). If you are using a National Instruments image acquisition card,<br />

MAX depends on a camera deÞnition Þle to understand the conÞguration of the<br />

camera attached to the card. ConÞguration Þles for common cameras are included<br />

with a standard NI-IMAQ installation (Figure 3.1)<br />

An icd Þle contains all of the information MAX and subsequently IMAQ needs to<br />

acquire images and control the camera. Figure 3.2 illustrates an example icd Þle. As<br />

shown, the icd Þle is of a human-understandable format, and can be manually edited<br />

using Notepad, or a similar ASCII text editor. As the camera conÞguration Þle extension<br />

is icd, the Windows ® operating system should not have an application registered to<br />

launch the Þle type by default; therefore, you will need to manually open the Þle for<br />

FIGURE 3.1 icd Þle directory.<br />

47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!