Compute the CogHandEyeCalibrationResults for the supplied
trackedRaw2DFeatures, pelrects, and UncorrectedHome2DFromStage2D
poses, using the current parameter settings.
Namespace: Cognex.VisionPro.CalibFixAssembly: Cognex.VisionPro.CalibFixPlus (in Cognex.VisionPro.CalibFixPlus.dll) Version: 69.0.0.0
Syntax
Parameters
- trackedRaw2DFeatures
- Type: Cognex.VisionPro CogFeaturePositionsMCamerasNPoses
Tracked Raw2D feature position points. Each feature includes x,y coordinate and a validation value. For different poseID: i, trackedRaw2DFeatures[i][cameraID][featureID] should always correspond to the same physical feature. The validation value indicates whether this feature is visible in current camera under current pose.
- pelRects
- Type: System.Drawing Rectangle
The pelrects of the cameras. There should be one pelrect for each camera. The input pelRects specifies the pelrect of each camera. There is no relationship between the pelrects of two separate cameras. It is used to define the origin of camera coordinate system (i.e. Camera2D) which is at the center of the pelrect.
- uncorrectedHome2DFromStage2Ds
- Type: Cognex.VisionPro CogTransform2DRigid
The sequence of UncorrectedHome2DFromStage2D poses that were used to move the stage when the images that provided the tracked Raw2D features were acquired.
Return Value
Type: CogHandEyeCalibrationResultsA CogHandEyeCalibrationResults containing the results of the analysis, i.e. a CogHandEyeCalibrationResult object for each camera.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If the trackedRaw2DFeatures argument is null. |
| ArgumentNullException | If the pelRects argument is null. |
| ArgumentNullException | If the uncorrectedHome2DFromStage2Ds argument is null. |
| CogTimeoutExpiredException | If TimeoutEnabled is true and this method does not complete within Timeout milliseconds. |
| ArgumentException |
If any of the following is true:
|
| NotSupportedException | If MotionCapability is Not RotationAndTranslation. |
| ArgumentException |
If MotionCapability is RotationAndTranslation and any of the
following is true:
|
| ArgumentException | If any Raw2D feature point in the trackedRaw2DFeatures argument falls outside its corresponding pelrect. |
| ArgumentException | If the input data is degenerate. |
Remarks
This method handles the usage case where a run time part are used instead of a calibration plate. Which means the input parameter will not have point pairs that have both physical feature location and Raw2D point locations. The usage case is illustrated as the graph below.
___ ___
| | Camera 1 | | Camera 2
|___| |___|
/_\ /_
___ ___
| | Camera 3 | | Camera 4
|___| |___|
/_\ /_
____________________________________________________
/ /|
/ _________ _______ / |
/ / \ Motion Stage / \ / |
/ / * \ / * | / |
/ / * /________________/ * | / |
/ |\___ ____/| /
/ \__/ /____/ /
/ / Runtime part // /
/ / (Calibration Object) // /
/ / // /
/ _____/ //___ /
/ / _____________ * \ /
/ / * /_____________\ /| /
/ / * * // \\ * * // /
/ |\____________// \\___________// /
/ \____________/ \___________/ /
/ /
/___________________________________________________/
| |
| |
Tracked Raw2D feature based hand-eye calibrationSee Also