Compute an initial estimate of the desired pose using the currently set Font, FontRenderParams, and Text. This estimated pose will size and position the current text to fit easily within the center of the supplied image. The computed pose will be cached internally as well as returned by this method.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 65.1.0.0
Syntax
Parameters
- pImage
- Type: Cognex.VisionPro CogImage8Grey
The image used to compute this pose. This should be the CogImage8Grey upon which you will display the interactive graphic created by FinalPosePrepare or FinalPosePrepareRectangleAffine.
Return Value
Type: CogTransform2DLinearA CogTransform2DLinear that will size and position the graphic created by either FinalPosePrepare or FinalPosePrepareRectangleAffine in the center of the supplied image.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this method changes the InitialPose and/or FinalPosePrepared properties. |
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | If the Font has not (yet) been imported. |
| ArgumentNullException | If the supplied image argument is NULL. |
See Also