InspectEdge
Used to perform advanced edge analysis. Within the referenced Region of Interest (ROI) of the function, an array of indexed, edge detecting sub-regions (called Calipers) develop detailed information about the precise location of features, by locating edges or edge pairs in an image. This information is used to determine the location of edges or features, the location and spacing of pairs of edges, and measure the width of objects in images.
InspectEdge Overview
After inserting the InspectEdge function, the ROI is established, either using the own internal region of the function or as a reference to an external ROI, such as an EditMaskedRegion or EditPolylinePath, to determine where in the image the tool should detect the edge or edge pairs. The referenced ROI is segmented into individual Calipers, where each Caliper projects the pixels within it into a single convolution for edge analysis.
Once the ROI has been configured, the following steps are necessary to properly apply the function:
- Specify Caliper, Minimum Contrast, and Edge Width parameter values that isolate the edges of interest.
- Define an edge model that describe the edge or edge pair of interest using the InspectEdgeForDefect, InspectEdgePosition, InspectEdgeTrainBeadPath, or InspectEdgeWidth functions.
With the InspectEdge function in place, multiple inspections can be performed using a single InspectEdge function as an input. For example, within one InspectEdge ROI, an InspectEdgeForDefect function could reference the function to determine positional defects, while an InspectEdgeWidth function performs a separate width measurement, and an InspectEdgePosition function determines a best-fit line for another edge.
| Parameter | Description | ||||||||||||
|
Image |
This parameter must reference
a spreadsheet cell that contains an Image data structure. By
default, this parameter references cell |
||||||||||||
|
Fixture |
Defines the Region of Interest (ROI) relative to a Fixture input or the output of the image coordinate system for the Vision Tools function. Setting the ROI relative to a Fixture ensures that if the Fixture is rotated or translated, the ROI is rotated or translated in relation to the Fixture. Note: 2D projections use real world units but fixturing with 2D tools requires input in pixel values. When using a 2D projection from a 3D point cloud as a Fixture, convert the real world units to pixel values using the TransWorldToPixel function.
The default setting is (0,0,0), the top leftmost corner of the image.
|
||||||||||||
|
Region |
Also known as the Region of Interest (ROI), specifies the region of the image
that undergoes edge analysis. It creates a Rectangle Regions Interactive Graphics Mode that can be transformed and rotated. With this parameter
selected, click Maximize
Region
|
||||||||||||
|
Note: The Fixture and Region parameters must be defined
within the bounds of the image. Otherwise, the function returns #ERR.
|
|||||||||||||
|
External Region or Path |
Specifies Cell References to a spreadsheet cell that contains an Annulus, a Region, an EditAnnulus, an EditMaskedRegion, an EditPolylinePath or an EditRegion function. When this parameter is used, the function ignores the Region and Fixture settings and inspects the image area specified by the referenced region.
Note:
|
||||||||||||
|
Caliper |
Specifies the Caliper array within the ROI that will be used to define the size of the detectable defects and/or gaps. The size of the detectable defect or gap is determined by the number of edges that can be detected, which is determined by the number of Calipers placed along the edge. The Calipers are displayed within the ROI as red rectangles, and edges detected within the Caliper are displayed in green, when the InspectEdge cell is highlighted or the Show parameter is set to show all. Note: Depending on the type of defect being examined, Calipers may be positioned to overlap. However, the more Calipers that are applied within the ROI increase the execution time of the function.
|
||||||||||||
|
Minimum Contrast |
Specifies the minimum greyscale contrast transition (0 to 255; default = 5) to be considered an edge. For each indexed Caliper, an edge response chart is displayed with the image. The values in the chart are automatically scaled to a 0-100 value. Utilize this chart when applying this parameter to properly adjust the value. Example - Minimum Contrast Parameter with Chart |
||||||||||||
|
Edge Width |
Specifies the pixel distance (1 to the Region width value; default = 3) over which an edge transition takes place. This setting is the approximate size of the pixel operator used to filter the greyscale projections before edges are extracted. Use this setting to filter noise from the image. |
||||||||||||
|
Fit All Calipers |
Specifies whether or not all of the Calipers are placed within the ROI.
|
||||||||||||
|
Caliper Graph Index |
Specifies the Caliper displayed on the image (the Caliper is outlined in green). The default Caliper displayed is 0. |
||||||||||||
|
Polyline Width |
Specifies the height (1 to Region height value; default = 20, Max: 1920) of an EditPolylinePath. This parameter is used in conjunction with the InspectEdgeTrainBeadPath function to inspect a polyline path. |
||||||||||||
|
Show |
Specifies the display mode for InspectEdge graphical overlays on top of the image.
|
||||||||||||
|
Returns |
An InspectEdgeVision Data Access functions containing the detected edges in the image and the number of Calipers, or #ERR if any of the input parameters are invalid. |
|
Results |
The number of Calipers in the ROI. |
on the toolbar of the property sheet. The region is automatically
stretched to cover the entire image. The dashed yellow line indicates the direction in which the edge is found.