CogCaliperEdge PositionXY Method Cognex VisionPro
A 2-D position of this result in the input image. T parameterizes the direction of projection such that a value of 0 corresponds to the P0PX edge of the caliper window and a value of 1 corresponds to the opposite edge.

Namespace: Cognex.VisionPro.Caliper
Assembly: Cognex.VisionPro.Caliper (in Cognex.VisionPro.Caliper.dll) Version: 65.1.0.0
Syntax

public void PositionXY(
	double t,
	out double x,
	out double y
)

Parameters

t
Type: System Double

Specify 0.0 to place the returned point at the top of the region (where the top is the origin side). Specify 1.0 to place the returned point at the bottom of the region. The default value for this parameter is 0.5, which places the point in the center of the region.

x
Type: System Double 

The x-coordinate of the returned location.

y
Type: System Double 

The y-coordinate of the returned location.

Remarks

Provides a 2-dimensional location within the input image that corresponds to this edge. Since the part of the input image that lies within the input region is projected to form a 1-dimensional image, the edge location is actually a line within this region. You control where along this line the location is placed using the t parameter (it gives the offset from the top of the input region, in the range 0.0 through 1.0, as shown below:

Calling this function is equivalent to taking the values returned by Position and mapping them through the MapToImage(Double, CogCaliperSpaceConstants, Double, Double , Double ) function.

See Also