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.

<strong>Image</strong> Analysis 203<br />

in the array would represent the edge pairs in the following order: AB, AD, AF, CD,<br />

CF, EF, therefore the array element values would be as shown in Figure 7.58.<br />

FIGURE 7.58 ROI intensity plot edge coordinates.<br />

7.7.5 RAKING AN IMAGE FOR FEATURES<br />

7.7.5.1 Parallel Raking<br />

Just as a garden rake has several tines that create parallel lines in the dirt, an image<br />

rake is a series of parallel line ROIs, deÞned by their start and end points, and the<br />

relative distance between each line (Figure 7.59 and Figure 7.60).<br />

Raking an image can be very useful when trying to Þnd a feature in an image.<br />

Consider the example in Figure 7.59. If the part were shifted vertically, a single<br />

horizontal line ROI may fail to locate the hole in the pin, whereas using a rake can<br />

determine where the hole is, and its dimensions. IMAQ Rake is conÞgured using the<br />

inputs in Table 7.6. The IMAQ Rake function returns an array of clusters, where<br />

each array element corresponds to a rake line. The clusters contain an array of<br />

clusters, each specifying the edge coordinates found along the rake line.<br />

FIGURE 7.59 Parallel raking example.<br />

FIGURE 7.60 Parallel raking example — wiring diagram.

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

Saved successfully!

Ooh no, something went wrong!