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 199<br />

distance between them is trivial. For example, if a user draws a line ROI between<br />

two points, the pixel distance between them can be easily determined (Figure 7.49<br />

and Figure 7.50).<br />

While this is simple when we know the spatial positions of the two points, it<br />

becomes more difÞcult when their coordinates must be determined programmatically.<br />

FIGURE 7.51 Finding edges and their parameters — wiring diagram.<br />

7.7.3 FINDING EDGES PROGRAMMATICALLY<br />

An edge in an image is generally deÞned as a feature interface with high contrast;<br />

if an image’s intensity changes dramatically within a small spatial range, then it can<br />

be considered as an edge. The IMAQ Edge Tool can be used to detect and classify<br />

edges in an image by inspecting the pixel intensity values along a trace applied to<br />

the image. The example in Figure 7.51 obtains the pixel coordinates of points along<br />

a line ROI drawn by the user, and uses them to search for edges.<br />

The pixel coordinates are obtained using IMAQ ROIProfile, and are wired into<br />

IMAQ Edge Tool. IMAQ Edge Tool outputs the number of edges detected, their<br />

coordinates and an array of clusters detailing comprehensive information regarding<br />

each of the edges (Figure 7.52).<br />

FIGURE 7.52 Finding edges and their parameters.<br />

IMAQ Edge Tool is conÞgured by deÞning the edge parameters to use during<br />

the search. Contrast speciÞes the threshold for the edge’s intensity difference<br />

between features — edges with a contrast less than this threshold are not treated as<br />

edges, and are subsequently ignored. The contrast is calculated as the difference

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

Saved successfully!

Ooh no, something went wrong!