CogTransform2DLinear Compose Method Cognex VisionPro 9.10
Returns a new linear transform which is the composition of the given transform (on the right side) and this one (on the left side).

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 79.0.0.0
Syntax

public CogTransform2DLinear Compose(
	CogTransform2DLinear rightSide
)

Return Value

Type: CogTransform2DLinear

The result of the composition.

Exceptions

ExceptionCondition
ArgumentException

rightSide is NULL.

Remarks

Returns a new linear transformation object that is the composition of a given transformation object and this one.

The order in which you compose transformations is important. If you have a transform that maps AFromB and another that maps BFromC, you compose the two to get a single transform that maps AFromC as follows: AFromB.Compose(BFromC). You do not use: BFromC.Compose(AFromB).

Compose(CogTransform2DLinear) performs the same operation as the ComposeBase(ICogTransform2D) method of CogTransform2D. The only difference is the type of the returned object: CogTransform2DLinear's Compose(CogTransform2DLinear) method returns a linear transform.

See Also