Transform2DLinear MapArea Method Cognex VisionPro 9.10

Maps the given area through this transform and returns the result.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

public double MapArea(
	double area
)

Return Value

Type: Double
Remarks

MapArea computes the mapped area by first calculating the area of a unit square and then multiplying the given area by the result. The area formed by two vectors is the cross product of the vectors. MapArea takes the vectors (1, 0) and (0, 1), maps these to the new coordinates, and then calculates the cross product. Given the following 2x2 matrix vector (1, 0) maps to (a, c) and vector (0,1) maps to (b, d). You calculate the cross product as: The cross product is also equivalent to the determinant. You may want to call MapArea with an area of 1.0 to get a conversion constant, and then use this constant in calculations. This saves the overhead of invoking MapArea multiple times.

See Also