CogCaliperResults Map Method Cognex VisionPro 9.24
Map between filtered image location and result position and projection image location.

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

public double Map(
	double position,
	CogCaliperSpaceConstants toSpace,
	CogCaliperSpaceConstants fromSpace
)

Parameters

position
Type: System Double

The 1-dimensional position to map.

toSpace
Type: Cognex.VisionPro.Caliper CogCaliperSpaceConstants

The space to which to map position.

fromSpace
Type: Cognex.VisionPro.Caliper CogCaliperSpaceConstants

The space from which to map position.

Return Value

Type: Double

The mapped position.

Exceptions

ExceptionCondition
ArgumentException

fromSpace or toSpace is not a member of CogCaliperSpaceConstants.

Remarks

Maps 1-dimensional points among the three defined 1-d spaces supported by the Caliper tool: Filter, Projection, and Result.

See Also