Class CameraCalibrationCoefficients
java.lang.Object
org.photonvision.vision.calibration.CameraCalibrationCoefficients
- All Implemented Interfaces:
Releasable
- Direct Known Subclasses:
UICameraCalibrationCoefficients
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.opencv.core.Size
final double
final double[]
final JsonMatOfDouble
final JsonMatOfDouble
final CameraLensModel
final List<BoardObservation>
final org.opencv.core.Size
-
Constructor Summary
ConstructorsConstructorDescriptionCameraCalibrationCoefficients
(org.opencv.core.Size resolution, JsonMatOfDouble cameraIntrinsics, JsonMatOfDouble distCoeffs, double[] calobjectWarp, List<BoardObservation> observations, org.opencv.core.Size calobjectSize, double calobjectSpacing, CameraLensModel lensmodel) Contains all camera calibration data for a particular resolution of a camera. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.Mat
double[]
org.opencv.core.MatOfDouble
double[]
void
release()
rotateCoefficients
(ImageRotationMode rotation) toString()
-
Field Details
-
unrotatedImageSize
-
cameraIntrinsics
-
distCoeffs
-
observations
-
calobjectWarp
-
calobjectSize
-
calobjectSpacing
-
lensmodel
-
-
Constructor Details
-
CameraCalibrationCoefficients
public CameraCalibrationCoefficients(org.opencv.core.Size resolution, JsonMatOfDouble cameraIntrinsics, JsonMatOfDouble distCoeffs, double[] calobjectWarp, List<BoardObservation> observations, org.opencv.core.Size calobjectSize, double calobjectSpacing, CameraLensModel lensmodel) Contains all camera calibration data for a particular resolution of a camera. Designed for use with standard opencv camera calibration matrices. For details on the layout of camera intrinsics/distortion matrices, see: https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#ga3207604e4b1a1758aa66acb6ed5aa65d- Parameters:
resolution
- The resolution this applies to. We don't assume camera binning or try rescaling calibrationcameraIntrinsics
- Camera intrinsics parameters matrix, in the standard opencv form.distCoeffs
- Camera distortion coefficients array. Variable length depending on order of distortion modelcalobjectWarp
- Board deformation parameters, for calibrators that can estimate that. See: https://mrcal.secretsauce.net/formulation.html#board-deformationobservations
- List of snapshots used to construct this calibrationcalobjectSize
- Dimensions of the object used to calibrate, in # of squares in width/heightcalobjectSpacing
- Spacing between adjacent squares, in meters
-
-
Method Details
-
rotateCoefficients
-
getCameraIntrinsicsMat
-
getDistCoeffsMat
-
getIntrinsicsArr
-
getDistCoeffsArr
-
getPerViewErrors
-
release
- Specified by:
release
in interfaceReleasable
-
toString
-
cloneWithoutObservations
-