17.12.2018 Views

Image Acquisitionand Proces

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

74 <strong>Image</strong> Acquisition <strong>Proces</strong>sing with LabVIEW<br />

FIGURE 4.17 Embed an IMAQ Vision Window in a parent example — wiring diagram.<br />

Although the child window is embedded in the parent, programming data to it<br />

is almost no different to when it was a ßoating window. However, keep in mind the<br />

relative spatial coordinates as mentioned previously, and that moving the child even<br />

partially outside of the parent’s bounds (Figure 4.18) will mask the image (perhaps<br />

even completely, where it may seem that your image window has disappeared). If<br />

you scroll a front panel while it contains a child window, the image may not be<br />

correctly redrawn. Therefore, it is often a good idea to disable scrolling on a front<br />

panel that will have an embedded IMAQ image.<br />

4.3 THE IMAGE BROWSER<br />

The image browser is a very useful function if you need to display a selection of<br />

thumbnails to a user, perhaps with them selecting one (or more) for further processing.<br />

The image browser itself is displayed as a ßoating IMAQ image window (Figure 4.19).<br />

Loading images into the image browser is quite simple. First, the browser is<br />

conÞgured, including its background color, size, style, and the number of images<br />

you want displayed per line. The image browser is then displayed, like any other<br />

image, and populated with images. Figure 4.20 shows the image browser is updated<br />

after each image is inserted into it, but you could put the IMAQ WindDraw outside<br />

of the for loop, causing the program to wait until all of the images have been inserted,<br />

thus displaying them all simultaneously.<br />

FIGURE 4.18 Embedded window poor move example.

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

Saved successfully!

Ooh no, something went wrong!