Compute camera calibration (Raw2DFromCamera2D) for all cameras using a group of
calibration feature correspondences from different calibration plate poses.
Namespace: Cognex.VisionPro.CalibFixAssembly: Cognex.VisionPro.CalibFixPlus (in Cognex.VisionPro.CalibFixPlus.dll) Version: 73.0.0.0
Syntax
public static CogTransform2DCameraCalibration[] ComputeRaw2DFromCamera2Ds( Rectangle[] pelRects, CogFeatureCrspsMCamerasNPoses correspondedPointPairsForMCameraNPoses, CogLensDistortionModelConstants distortionModel, out double[][] rmsErrsRaw2D, out double[][] maxErrsRaw2D, out double[][] rmsErrsPlate2D, out double[][] maxErrsPlate2D )
Parameters
- pelRects
- Type: System.Drawing Rectangle
The pelrects used to extract the corresponded point pairs. 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.
- correspondedPointPairsForMCameraNPoses
- Type: Cognex.VisionPro CogFeatureCrspsMCamerasNPoses
The corresponded point pairs to be processed.
- distortionModel
- Type: Cognex.VisionPro CogLensDistortionModelConstants
The lens distortion model used for camera calibration.
- rmsErrsRaw2D
- Type: System Double
The rms errors in Raw2D for the calibration results, indexed first by camera, then by view (plate pose).
- maxErrsRaw2D
- Type: System Double
The maximum errors in Raw2D for the calibration results, indexed first by camera, then by view (plate pose).
- rmsErrsPlate2D
- Type: System Double
The rms errors in Plate2D for the calibration results, indexed first by camera, then by view (plate pose).
- maxErrsPlate2D
- Type: System Double
The maximum errors in Plate2D for the calibration results, indexed first by camera, then by view (plate pose).
Return Value
Type: CogTransform2DCameraCalibrationA set of CogTransform2DCameraCalibration objects which maps between Raw2D and Camera2D for all cameras.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If correspondedPointPairsForMCameraNPoses or pelRects is null. |
| ArgumentException |
If any of the following is true:
|
| ArgumentException | if any calibration feature falls outside its corresponding image window. |
| ArgumentException | If the input data is degenerated, or if correspondedPointPairsForMCameraNPoses does not contain sufficient data to support a successful camera calibration. |
See Also