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.

Displaying <strong>Image</strong>s 67<br />

FIGURE 4.3 Simple multiple image display.<br />

FIGURE 4.4 Simple multiple image display — wiring diagram.<br />

IMAQ WindClose terminal “Close All Windows?” to true, and all windows currently<br />

open (including any embedded windows, as discussed later) will close.<br />

4.2 DISPLAYING IMAGES WITHIN YOUR FRONT<br />

PANEL<br />

Although displaying your image in ßoating windows can be useful, a common<br />

question asked by beginner Vision Toolkit programmers is, “how do I embed a<br />

dynamic image in my front panel?” There are several methods of doing so, depending<br />

on what you want to display and the speed restrictions you are willing to accept.<br />

4.2.1 THE INTENSITY GRAPH<br />

The simplest method of displaying an image on a VI’s front panel is to convert it<br />

to an intensity graph (Figure 4.5). This method uses IMAQ <strong>Image</strong>ToArray (Figure<br />

4.6) to convert the image data to an array that the intensity graph can plot. Do not<br />

forget to either autoscale the z axis (intensity), or set its upper limit to an appropriate<br />

value (the default is 100, whereas you will probably need to set it to 255, as shown<br />

in Figure 4.5), otherwise your intensity data will be clipped.

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

Saved successfully!

Ooh no, something went wrong!