3D Range Image Cross Section Edit ControlCognex VisionPro

The 3D Range Image Cross Section edit control provides a graphical user interface to the Cog3DRangeImageCrossSectionTool vision tool, which creates a profile of a 3D range image and supports a variety of operators for analyzing the height-profile information it contains. The following figure shows the 3D Range Image Cross Section edit control after several operators have analyzed the profile:

Cognex Image Processing Cog 3DRange Image Cross Section Whole Control

The tool returns a Cog3DRangeImageCrossSectionProfile object containing the profile data and the results of all the operators that have analyzed it.

The edit control supports the following features:

Control Buttons

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Button Bar

The following table describes the function of each button:

ButtonDescriptionFunction
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Run
RunUses the Region to analyze the image stored in the Current.InputImage buffer to extract the profile and perform the measurements on the profile using the operators you specify.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Electric
Electric modeToggles electric mode, where the Range Image Cross Section tool executes automatically when particular configuration parameters change. In electric mode, a lightning bolt appears next to every electric property.

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Local

Local image display

Opens or closes the local image display window. A Range Image Cross Section tool supports the following image buffers:

  • The Current.InputImage buffer contains the current image and the overlay of the Region.
  • The LastRun.InputImage buffer contains the overlay of the Region and the feature extraction results in the profile.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Float
Floating image displayOpens one or more floating image windows, which support the same image buffers as the local image display window.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Open
OpenOpens a VisionPro persistence (.vpp) file that contains a set of saved properties for this vision tool object type. VisionPro reports an error if you try to open a .vpp file for another object type.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Save
SaveSaves the current properties of the vision tool to a VisionPro persistence (.vpp) file. The edit control allows you to choose between saving the vision tool with or without its image buffers and tool results.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Save As
Save AsSaves the current properties of the vision tool to a new VisionPro persistence (.vpp) file.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Reset
ResetResets the vision tool to its default state.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Tool Tips
Show ToolTipsEnables or disables the display of tooltips for individual items in the edit control.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Control Help
HelpOpens this VisionPro online help file.
Image Display

Manually specify the Region based on which profile creation is performed in the Current.InputImage record.

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Current Input Image

View the profile feature extraction results along with the diagnostic non-interactive Region in the LastRun.InputImage record. The feature extraction result graphics are displayed in green when the operator's status is Passed and in red when the operator's status is FailedTolerance.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Last Run Input Image

In addition to these typical display records, a Cog3DRangeImageCrossSectionTool has the following display records.
Current.Fixture

The Current.Fixture record displays the created profile and the selected space for the profile. You can manually drag and adjust the new space you define as the profile selected space.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Fixture
You can extract a corner using the Cross Section tool and use the coordinate of the point to fixture the profile in a subsequent Cross Section tool.
Current.Profile

The Current.Profile record displays the profile and the operator graphics. Use this record to manually adjust the regions for the profile features you want to extract. This record also shows the result of the operator you select from the list of operators. The result graphic is displayed in green when the operator status is Passed and in red when the operator status is FailedTolerance. Note that for each operator you can turn on or off whether the operator region and result should be displayed. The profile selected space is also displayed in this record in a non-interactive mode.

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Profile

LastRun.CombinedGraphics

The LastRun.CombinedGraphics record shows the results of multiple operators at once in a convenient way, with the Region-X axis position adjusted to be near your profile contour features. The displayed result can either be a feature graphic or a measurement graphic.
Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Combined Graphics
Note that for each operator you can turn on or off whether the result should be displayed in the LastRun.CombinedGraphics record.

Profile Tab

Use the Profile tab to configure the source of the profile the tool should use. Choose either to create the profile based on the input range image and the Region you specify or to use an input profile already created by another Cross Section tool.

Note: When you choose to use an already extracted input profile, even though the input profile contains all data you need to perform measurements on it, you must still supply to the tool the range image from which you extracted the profile to enable fitting the measurement results back on the range image.

The following figure shows the default Profile tab:

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Profile Tab
You can set the following parameters for the profile and the Region.
FeatureDescription

Region Shape

Selects the shape of the Region within which the Range Image Cross Section tool will use the image data to create the profile. Points outside of this Region will not be considered during profile creation.

You can select one of the following shapes:

Adjust the various properties of the Region with the shape you selected.

ProfileDefaultSpaceName Sets the name of the default coordinate space of the profile to be created. Note that this setting becomes effective once you have run the tool and it is enabled only when you choose to create a profile. The default is Profile2D.

Fixture Tab

Use the Fixture tab to select the profile coordinate space of your needs. The profile data will be expressed at runtime in the profile coordinate space you specify. This space becomes the selected space of the output profile. The results of the Cross Section operators are also reported in this space. The fixturing process creates an output profile that is identical to the source profile (either created by extraction from a range image or an already existing profile selected as input profile) except that it has the selected space you specify, which may be different from the selected space of the source profile. The selected space name is shown on the tab as the Profile SSN.

The following figure shows the default Fixture tab:

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Fixture Tab
The radio buttons become enabled once the tool was run and an output profile is created.

Select the Current.Fixture record on the image display to view the alignment of the profile coordinate space you selected. Manually, you can adjust your profile coordinate space in the Current.Fixture record. The following figure shows a non-default profile space selected.

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Fixture Tab 2

You can set the following parameters for the profile space.

FeatureDescription

Selected space

Selects the profile space to be used at runtime and in the output profile.

You can select one of the following spaces:

  • Default Space: Use the default profile space

    The selected space of the output profile will be identical to the selected space of the source profile. If the source profile was created by this tool, the profile selected space name will be the one shown on the Profile tab. If the source profile was created by another tool, the selected space name will be copied from the input profile.

  • Existing Space: Use an existing space within the profile space tree

    The selected space of the output profile will be one of the existing spaces from the profile space tree of the source profile. If the space that you select is also the selected space of the source profile, then this option is exactly equivalent to the Default Space option.

    When you select this option for the first time, the control will initialize the existing space name to the default space. Once you make a selection, it will be remembered.

  • New Space: Define a new space and add it to the profile space tree

    The selected space of the output profile will be a newly-defined coordinate space. The new space will be defined relative to the selected space of the source profile. The relative position is given by the transformation parameters shown in the control. You can also specify the name of the new space in the control.

    When you select this option for the first time, the control will walk through the profile space tree and find a unique name in the form of FixtureN, where N is the next unique value. You can change the name of the space. The new space name and the transform values will be remembered.

Pin Regions
(PinRegions)
This allows you to pin the profile regions specified in the operators to their current location while you are changing the profile space selection or the new space transform. The profile regions with the default selected space name equal to "." will be updated. The profile regions with any other selected space name will not be pinned, updated, or modified. The PinRegions applies only during the setup of the Cross Section tool, it is ignored at runtime. This property is only used by the control; the programmatic interface ignores this property.

Operators Tab

Use the Operators tab to create and configure the operators that you want to use to make measurements on the profile:

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Operators Tab

Use the function buttons shown in the following figure to add, delete and reorder the items in the reference table:

Cognex Image Processing Cog 3DRange Image Cross Section Operators Tab Function Buttons

Operators are executed in the order they are listed, specified by their Index.

The following table describes what each button does:

ButtonDescription
Cognex Image Processing Cog 3DRange Image Cross Section Operators Tab Add Point Function
Add a new operator and define an operator region on the Current.Profile display.
Cognex Image Processing Cog 3DRange Image Cross Section Operators Tab Delete Point Function
Remove the selected operator from the reference table.
Cognex Image Processing Cog 3DRange Image Cross Section Operators Tab Move Up Function
Index of the selected operator up one position in the reference table.
Cognex Image Processing Cog 3DRange Image Cross Section Operators Tab Move Down Function
Index of the selected operator down one position in the reference table.

For each operator, you can:

  • Show or hide the feature regions used in the operator in the Current.Profile record.
  • Show or hide the operator's result in various records.
  • Show or hide the operator's result in the LastRun.CombinedGraphics record. Note that you have to rerun the tool for this setting to take effect.
  • View the Status of running the operator, that is, whether it has passed or failed. Also, if it failed, then why.
  • View the Result of running the operator.

The following figure shows an example of some operators configured and run successfully on the Operators tab.

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Operators Passed

The Status of each operator is Passed and the Result contained in each operator is shown. The overall (Passed) Status of the operators is shown above the operators. If one or more operators fail, the overall Status will be Failed.

The failures reported by an operator can be one of the following:

  • FailedTolerance: The operator ran but one or more of the tolerances failed.
  • FailedToMeasure: The operator ran but failed to produce a measurement.
  • FeatureNotExtracted: The operator ran but failed to extract a feature.
  • FeatureNotComputed: The operator ran but failed to compute a feature.
  • InputFeatureMissing: The operator ran but one or more of its input operators were not found.
  • NotRun: The operator has not been run.

Note that the angle minimum and maximum values are always stored in radians in the tool, but in the edit control you can work with the values in degrees as well.

The 3D Cross Section tool supports the following operators:

Profile Regions

Extract operators analyze portions of the profile enclosed within a region you specify.

Cognex Image Processing Cog 3DRange Image Cross Section Common Region

FeatureDescription
Regions You can specify one or more regions for the operator. You can browse the regions using the Index. You can Add a new region and Delete the one the Index is currently referring to. Select the shape of the input region. Only the CogRectangleAffine is supported currently.
SelectedSpaceNameThe coordinate space in which the operator region is interpreted. Note that the SelectedSpaceName is from the ProfileSpaceTree and not the image CoordinateSpaceTree. For information, see Coordinate Space Names.
Select ModeSelects the set of parameters that define the rectangle. If CogRectangleAffine is chosen (currently available only), note that the angles of rotation and skew can be specified in degrees or radians, although the underlying tool keeps the measurements in radians.

Note that fitting the region in the image is not available for the operator regions because the profile is a graphic record and not an image.

ExtractLineSegment

The ExtractLineSegment operator extracts a line segment from the profile contour points within the region(s) you specify.

Cognex Image Processing Cog 3DRange Image Cross Section Extract Line Segment
Note that VisionPro regions do have a direction but that direction is ignored now. The extracted line direction is always in the increasing X direction in the profile default space.

Specify the tolerances for the extracted line segment:
  • RMS - the root mean squared perpendicular error between the line and all of the points in the region
  • StartX - X coordinate of starting point of the line segment
  • StartY - Y coordinate of starting point of the line segment
  • EndX - X coordinate of ending point of the line segment
  • EndY - Y coordinate of ending point of the line segment
  • Angle - angle of line segment
Programmatically, you can set these tolerances as the properties of the Cog3DRangeImageCrossSectionExtractLineSegment class.

ExtractPoint

Cognex Image Processing Cog 3DRange Image Cross Section Extract Point

The ExtractPoint operator extracts a point from the profile contour points within the region(s) you specify. The ExtractPoint operator has three usage modes (Cog3DRangeImageCrossSectionExtractPointDirectionSelectionModeConstants):

  • DirectionFromPreDefinedList - the user can select the direction of extraction from a predefined list of points.

    The PointType can be one of the following:

    • Top - extracts the topmost point, that is, the point with the highest Y coordinate
    • Bottom - extracts the bottommost point, that is, the point with the lowest Y coordinate
    • Left - extracts the leftmost point, that is, the point with the lowest X coordinate
    • Right - extracts the rightmost point, that is, the point with the highest X coordinate
    • Average - extracts the average point, that is, the average position of all points within one or more profile regions
    • TopLeft - extracts the point with the lowest X and the highest Y coordinates
    • TopRight - extracts the point with the highest X and highest Y coordinates
    • BottomLeft - extracts the point with the lowest X and the lowest Y coordinates
    • BottomRight - extracts the point with the the highest X and the lowest Y coordinates
    These options are defined in the profile default space.

    You can specify the tolerances for the extracted point:
    • X coordinate of the point
    • Y coordinate of the point
    Programmatically, you can set these tolerances as the properties of the Cog3DRangeImageCrossSectionExtractPoint class.

    When the mode is set to DirectionFromPredefinedList, the user can select the direction of extraction from a predefined list of points:

    Cognex Image Processing Cog 3DRange Image Cross Section Extract Point Direction From Predefined List

  • DirectionFromAngle - This gives the most freedom and flexibility to advanced users. In this mode, the user can specify an angle in radians and specify whether that angle is given in ProfileDefaultSpace or ProfileSelectedSpace (Cog3DRangeImageCrossSectionSpaceSelectionConstants). ProfileDefaultSpace represents the profile’s default coordinate space while ProfileSelectedSpace represents the profile’s selected coordinate space. .

    Cognex Image Processing Cog 3DRange Image Cross Section Extract Point Direction From Angle

  • DirectionFromLineSegment - The ExtractPoint operator uses a line segment as the baseline for specifying the direction of the extraction. Besides specifying the base line, the user would need to specify the direction with respect to the base line (Cog3DRangeImageCrossSectionExtractPointLineSegmentDirectionConstants):

    • AlongLineSegment - Along the baseline (0 degrees)
    • OppositeOfLineSegment - Opposite to the line segment’s direction (180 degrees)
    • LeftPerpendicular - Left perpendicular (90 degrees)
    • RightPerpendicular - Right perpendicular (270 degrees)
    When run and the input line segment is available it will be drawn on the display as a dashed infinite line with light blue color.

    Cognex Image Processing Cog 3DRange Image Cross Section Extract Point Direction From Line Segment

ExtractCorner

An ExtractCorner operator returns a point representing a Corner from the profile of 3D range data.

Cognex Image Processing Cog 3DRange Image Cross Section Extract Corner

The ExtractCorner operator can process a 3D profile using one algorithm to locate clearly visible peaks and valleys:

CognexImageProcessing_Cog3DRangeImageCrossSection_PeaksAndValleys

The operator supports a second algorithm to locate corners represented by features such as the corner at the edge of a step, the corner at the edge of a gap, and so on:

CognexImageProcessing_Cog3DRangeImageCrossSection_GapCorners

See the Remarks section in the documentation for Cog3DRangeImageCrossSectionExtractCornerV2 for a description of the algorithm the ExtractCorner operator uses to locate corner points. In addition, the class supports three additional advanced parameters in the API to allow you to fine tune the search:

Configure the following parameters to find the right corner for your vision application:

Corner Properties

Use the Properties tab to define the parameters that locate the desired corner in the input region:

CognexImageProcessing_Cog3DRangeImageCrossSection_PropertiesTab

The tab supports the following:

Type of Corner

Check the type of corner (CornerType) you want the tool to locate:

CognexImageProcessing_Cog3DRangeImageCrossSection_TypeCheckBoxes

The corner types Upper, Left and Right require no additional settings but you have the option to select any combination of corner types that the operator should look for.

Peak and Valley Parameters

If you are using the ExtractCorner operator to locate Peak or Valley corners, the tool offers additional parameters that affect the corner-finding algorithm:

Corner Finder Lines

To locate peaks and valleys, the ExtractCorner algorithm evaluates the shape of the profile using two line segments separated by a space:

CognexImageProcessing_Cog3DRangeImageCrossSection_LinesAndGap

As the line segments move along the profile the angle between the line segments is measured and a corner is identified when the angle meets specified thresholds. The operator uses default values for the Length (LineFitLength) of the line segments and the Spacing (LineFitSpacing) between them:

CognexImageProcessing_Cog3DRangeImageCrossSection_DefaultLengthSpacing

By increasing (or decreasing) the length of the line segments and the spacing between them you can modify the number and location of found corners. For example the following figure shows how the locations of peak corners change from modifying the Length parameter:

CognexImageProcessing_Cog3DRangeImageCrossSection_NewLengthsUsed

The Graphics tab allows you to enable graphics for the length of the line segments and the spacing between them, to show you how the algorithm places the line segments and the spacing between them.

Increasing the value for Length smooths the sharpness plot and removes some of the corners in the input region from consideration, while increasing the value for Spacing expands height data and can make it easier for the operator to locate corners. When you add an ExtractCorner operator to your application you might need to experiment with the values for Length and Spacing to find the desired corners for your application. Be aware the tool will generate a runtime error if the value of Length once converted to pixels is less than 2 pixels.

Corner Sharpness Angle Range

The operator detects angles with an absolute value between a minimum (MinCornerAngle) and maximum (MaxCornerAngle) sharpness range:

CognexImageProcessing_Cog3DRangeImageCrossSection_AngleRange

Modify the range to limit the range of angles you want the operator to identify as corners.

CognexImageProcessing_Cog3DRangeImageCrossSection_MinandMaxAngles

Be aware they cannot be set to the same value, and the Min cannot be set to 0 and the Max cannot exceed 180.

Corner Selection

The operator supports different options for selecting the location on or relative to the profile where a corner can be identified:

CognexImageProcessing_Cog3DRangeImageCrossSection_CornerSelection

The following graphic represents the different options for the corner selection (CornerSelection):

CognexImageProcessing_Cog3DRangeImageCrossSection_TypesOfPoints

By default, the operator uses the ProtrudedPoint option, equivalent to the Cognex In-Sight Explorer profile corner finder. Choose a different option as your application requires.

Sort Multiple Results

Depending on the parameter settings you choose, an ExtractCorner operator can find multiple corners. Use the sorting parameters to determine how the tool sorts the results and ultimately choose which corner is made available to other operators you add to this 3D Range Image Cross Section tool:

CognexImageProcessing_Cog3DRangeImageCrossSection_SortingParameters

The Sort Type (SortType) supports the following options:

Sort TypeDescription
LeftToRightThe sorting order is based on the x-axis position of the corner, with the corners sorted from left to right.
RightToLeftThe sorting order is based on the x-axis position of the corner, with the corners sorted from right to left.
SharpnessThe sorting order is based on sharpness of the corner, with the corners sorted from sharpest to least sharp.

AlongAngleDirection

The sort order is based on the value of Sort Direction Angle:

CognexImageProcessing_Cog3DRangeImageCrossSection_AnglesSorted

Use the Index field to specify which corner to return from the operator when multiple corners are identified.

Result Tolerances

Use the Tolerance tab to specify 2D position tolerances for any result the operator might return:

CognexImageProcessing_Cog3DRangeImageCrossSection_TolerancesTab

Set a Min and Max value on both the x-axis (XTolerance) and y-axis (YTolerance) to limit the area where valid corners can be found.

Input Region

Use the Regions tab to add multiple regions of interest to this ExtractCorner operator and to define the characteristics of each region:

CognexImageProcessing_Cog3DRangeImageCrossSection_RegionsTab

The tab allows you to add or remove additional regions for use by this single ExtractCorner operator. The operator returns the corner from a single region based on the parameters you specify for corner type and sorting results. The operator disregards the portions of the profile outside the defined regions.

Click on any region graphic to position and shape it manually, or use the parameters in the Region tab to provide exact values.

Graphics

Use the Graphics tab to control which graphics appear over the Current.Profile:

OptionGraphic

Show Sharpness Graph

Show a graph representing the sharpness of the corners across the profile:

CognexImageProcessing_Cog3DRangeImageCrossSection_ShowSharpnessGraph

By default, the graph displays a dotted blue line representing the Min setting for the corner angle sharpness range. Enable the Show Max Corner Angle Line option to enable a similar graphic representing the corresponding Max setting.

Show result line fit regions and Show result line fit lines

Show graphics representing the line segments used for Peak and Valley corner finding and the regions surrounding them. You must zoom in on the Current.Profile to see the graphics:

CognexImageProcessing_Cog3DRangeImageCrossSection_ShowResultLineFit

The region graphics for fitting lines represent the line length. The line segments themselves are from the middle of the region to the intersect point

CircleFit

The Cog3DRangeImageCrossSectionExtractCircleFit operator is used to fit a circle to a user-selected region of the cross-section profile's curve. Please note that this operator is a fitter and not a finder, i.e. it will fit a circle the best way it can using all the chosen points of the input profile even if those points do not represent a circular feature of the object. This operator does not try to find which input points belong to a circle. It assumes that the correct points have already been found within the selected region.

The CircleFit operator’s user interface lets the user:

  • Specify regions of interest along the input profile
  • Set tolerance for the following properties of the found circle

Cognex Image Processing Cog 3DRange Image Cross Section Circle Fit

It is important to select only points on the input profile that truly represent circular features. Including improper points can result in a poor circle fit.

Cognex Image Processing Cog 3DRange Image Cross Section Circle Fit Better

Cognex Image Processing Cog 3DRange Image Cross Section Circle Fit Poor

NOTE: this is a fitter and not a finder tool. It will be able to fit a circle on any profile (that contains enough points to do so), see below:

Cognex Image Processing Cog 3DRange Image Cross Section Circle Fit Not Circle
IntersectLineLine

The IntersectLineLine operator computes the intersection point of two lines, each defined by a line segment produced by another operator.

Cognex Image Processing Cog 3DRange Image Cross Section Intersect Line Line
You specify the two line segments to be used in the LineSegment1 Operator Name and LineSegment2 Operator Name fields. The list in a field contains only those operators that are listed upstream and that are valid for this operation.

The input graphics for this operator is the regions associated with the 2 line segments.

You can specify the tolerances for the computed intersection point:
  • X coordinate of the intersection point
  • Y coordinate of the intersection point

PointLineSegment

The PointLineSegment operator computes a point on a line segment.

Cognex Image Processing Cog 3DRange Image Cross Section Point Line Segment
You specify the line segment on which the point should be computed in the LineSegment Operator Name field. The point can be the Start point, the End point, or the Middle point of the line segment, which you specify in the Point on LineSegment field (LineSegmentPoint in the API). The list in the field contains only those operators that are listed upstream and that are valid for this operation.

The input graphics for this operator is the region(s) associated with the line segment.

You can specify the tolerances for the computed point:
  • X coordinate of the point
  • Y coordinate of the point

MidpointPointPoint

The MidpointPointPoint operator computes the middle point between two points. The following figure shows the computed middle point and the regions based on which the two input points were extracted. You can view all the points in the LastRun.CombinedGraphics record.

Cognex Image Processing Cog 3DRange Image Cross Section Midpoint Point Point
You specify the two points to be used in the Point1 Operator Name and Point2 Operator Name fields. The list in a field contains only those operators that are listed upstream and that are valid for this operation.

The input graphics for this operator is the regions associated with the 2 points.

You can specify the tolerances for the computed point:
  • X coordinate of the point
  • Y coordinate of the point

LineSegmentPointPoint

The LineSegmentPointPoint operator computes the line segment between two points. The following figure shows the computed line segment and the regions based on which the two input points were extracted. You can view both points and the line segment in the LastRun.CombinedGraphics record.

Cognex Image Processing Cog 3DRange Image Cross Section Line Segment Point Point
You specify the two points to be used in the Point1 Operator Name and Point2 Operator Name fields. The list in a field contains only those operators that are listed upstream and that are valid for this operation.

The input graphics for this operator is the regions associated with the 2 points.

You can specify an angle tolerance for the computed line segment.

NearestPoint

The NearestPoint operator computes the nearest point from a point either on a line or on a line segment. (The line segment is a portion of the line.)

The following figures show computing the nearest point on a line.
Cognex Image Processing Cog 3DRange Image Cross Section Nearest Point
Cognex Image Processing Cog 3DRange Image Cross Section Nearest Point 2
The following figures show computing the nearest point on a line segment.
Cognex Image Processing Cog 3DRange Image Cross Section Nearest Point 3
Cognex Image Processing Cog 3DRange Image Cross Section Nearest Point 4
You specify the input point in the Point Operator Name field and the input line segment in the LineSegment Operator Name field. The list in a field contains only those operators that are listed upstream and that are valid for this operation.

You specify whether the nearest point should be computed on the line or on the line segment in the NearestType field. NearestToLine is the projection of the input point on the line that passes through the line segment. NearestToLineSegment is the closest point on the line segment to the input point.

The input graphics for this operator is the regions associated with the input point and the input line segment.

You can specify the tolerances for the computed point:
  • X coordinate of the point
  • Y coordinate of the point

PointAreaResult

The Cog3DRangeImageCrossSectionPointAreaResult operator can have an input of the result of an area measurement and extract one single point of interest from the result object (only if the points are valid).

Cognex Image Processing Cog 3DRange Image Cross Section Point Area Result

The following properties are available:

PointCircle

The Cog3DRangeImageCrossSectionPointCircle operator allows customers to use the circle center point in downstream calculations. For example, the user can measure the Euclidean distance between two circle centers or between a circle center and a line segment.

Cognex Image Processing Cog 3DRange Image Cross Section Point Circle

The PointCircle operator can be found under the menu item Compute. It lets the user:

  • Specify the operator that produces the circle.
  • Set tolerance for the following properties of the found circle:

NOTE: The CircleFit operator is not a circle finder tool. It should not be used to find a circle or an arc of a circle of the input profile. It will use the given points of the input profile and fit a best available circle on those points.

AngleLineLine

The AngleLineLine operator measures the angle between two line segments. The following figures show the measurement of the angle between two line segments.

Cognex Image Processing Cog 3DRange Image Cross Section Angle Line Line
Cognex Image Processing Cog 3DRange Image Cross Section Angle Line Line 2
You specify the two line segments to be used in the LineSegment1 Operator Name and LineSegment1 Operator Name fields. The list in a field contains only those operators that are listed upstream and that are valid for this operation. The angle is computed from LineSegment1 to LineSegment2. If you set the SupplementaryAngle to True, the returned angle is measured from -LineSegment2 to LineSegment1.

The input graphics for this operator is the regions associated with the 2 line segments.

You can specify an angle tolerance for the measured angle.

DistancePointPoint

The DistancePointPoint operator measures the distance between two points. The following figures show the measurement of the distance between two points.

Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Point
Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Point 2
You specify the two points to be used in the Point1 Operator Name and Point2 Operator Name fields. The list in a field contains only those operators that are listed upstream and that are valid for this operation. The measurement is in the profile selected space.

The DistanceType field specifies what distance should be measured: Euclidean distance (the length of the line segment connecting the two points), the distance in X, or the distance in Y. The distance in X is the width between the 2 points. The distance in Y is the height between the 2 points.

The input graphics for this operator is the regions for each point that was extracted from regions (and not computed from other features).

You can specify a distance tolerance for the measured distance.

DistancePointLine

The DistancePointLine operator measures the distance between a point and a line or a line segment. (The line segment is a portion of the line.)

The following figures show measuring the distance to the nearest point on the line.
Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Line
Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Line 2
The following figures show measuring the distance to the nearest point on the line segment.
Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Line 3
Cognex Image Processing Cog 3DRange Image Cross Section Distance Point Line 4
You specify the input point in the Point Operator Name field and the input line segment in the LineSegment Operator Name field. The list in a field contains only those operators that are listed upstream and that are valid for this operation.

You specify whether the distance to the nearest point on the line (NearestToLine) or the nearest point on the line segment (NearestToLineSegment) should be measured in the NearestType field.

The input graphics for this operator is the regions associated with the point and the line segment (for those that were extracted from regions, and not computed from other features).

You can specify a distance tolerance for the measured distance.

Area

This section describes the edit controls that are available for the Area operator (Cog3DRangeImageCrossSectionAreaLineSegments). The area measurement operator produces the result to get the point from. For more detailed information on using the operator, see the Using the Cross Section Tool section. In general, the new operator will measure the area between:

  • The profile of a cross-section and
  • one or more line segments.
The line segments will be interpreted as infinite lines and these infinite lines will make up a new reference profile and we can measure the difference between these two profiles. Depending on what the users want to measure in the profile they can create the reference profile from the highest or from the lowest line segments. Finally, they might be interested in the area that is under the input profile and above the reference profile, or the ones that are above the input profile and under the reference profile or both. Since this choice is very application-specific, the options are provided to the users to pick the one that fits for the application.

Cognex Image Processing Cog 3DRange Image Cross Section Area

The Area operator has five tabs with the collected parameters:

Line Segments Tab

Allows the user to select the input line segments (more precisely the operators that produce those line segments) for the Area operator (AddLineSegment). This group is very operator specific and it provides the UI for setting the input of the operator.

Cognex Image Processing Cog 3DRange Image Cross Section Area Line Segments Tab

The following tabs are not specific to the Area Under Line Segments operator and they will be the same for all of the area measurement operators.

Regions Tab

Allows the user to configure the regions of interest, add and remove regions.

Cognex Image Processing Cog 3DRange Image Cross Section Area Regions Tab

Parameters Tab

Allows the user to set the generic area measurement parameters:

Cognex Image Processing Cog 3DRange Image Cross Section Area Parameters Tab

Tolerances Tab

Graphics Tab

Allows the user to turn on/off specific output graphics.

  • Fill Area Background
  • Left Point
  • Right Point
  • Closest Point Above Reference Profile
  • Farthest Point Above Reference Profile
  • Closest Point Below Reference Profile
  • Farthest Point Below Reference Profile
  • Threshold

Cognex Image Processing Cog 3DRange Image Cross Section Area Graphics Tab

The created graphics of the area measurement operators are the following:

  • Drawing the inputs (if available) (cyan)
  • Drawing the reference profile created from the input shapes (orange)
  • Drawing the regions (interactive controls) (blue/cyan rectangles)
  • Drawing the outline of the measured area(s) (dark green / dark red depending whether the area passes tolerance or not)
  • Fill the measured area’s background (dark green / dark red depending whether the area passes tolerance or not)
  • Drawing PointMarkers for the following interesting points (green / red depending whether the point passes tolerance or not)

    • LeftPoint
    • RightPoint
    • ClosestPointAboveReferenceProfile
    • FarthestPointAboveReferenceProfile
    • ClosestPointBelowReferenceProfile
    • FarthestPointBelowReferenceProfile
  • Drawing the threshold markers above and below the reference profile (white)

Graphics Tab

Use the Graphics tab to control which graphics the Range Image Cross Section tool generates and displays. The following figure shows the default Graphics tab:

Cognex Image Processing Cog 3DRange Image Cross Section Cross Section Graphics Tab
You can enable the following graphics associated with the Cross Section display buffers:

FeatureDescription
Show Input Region Displays the Region based on which profile creation is performed in the Current.InputImage record.
Show Features Displays the extracted or computed features in the LastRun.CombinedGraphics record. The Combined Graphics option must be enabled on the operator for the graphic to be shown in the LastRun.CombinedGraphics record.
Show Measurements Displays the measurements in the LastRun.CombinedGraphics record. The Combined Graphics option must be enabled on the operator for the graphic to be shown in the LastRun.CombinedGraphics record.
Show Input Image The Without Copy, With Copy, and None options determine whether or not the input image and the combined graphics are recorded as part of the diagnostic (LastRun) record; and whether the input image and the combined graphics are copied to the record or saved in the record as a reference.
Show Diagnostics Input Region Displays the diagnostic input Region based on which profile creation is performed in the LastRun.InputImage record. You must re-run the tool for this setting to take effect.