Class CameraCalibrationCoefficients
java.lang.Object
org.photonvision.vision.calibration.CameraCalibrationCoefficients
- All Implemented Interfaces:
Releasable
- Direct Known Subclasses:
UICameraCalibrationCoefficients
-
Field Summary
Modifier 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
ConstructorDescriptionCameraCalibrationCoefficients
(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
public final org.opencv.core.Size unrotatedImageSize -
cameraIntrinsics
-
distCoeffs
-
observations
-
calobjectWarp
public final double[] calobjectWarp -
calobjectSize
public final org.opencv.core.Size calobjectSize -
calobjectSpacing
public final double 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
public org.opencv.core.Mat getCameraIntrinsicsMat() -
getDistCoeffsMat
public org.opencv.core.MatOfDouble getDistCoeffsMat() -
getIntrinsicsArr
public double[] getIntrinsicsArr() -
getDistCoeffsArr
public double[] getDistCoeffsArr() -
getPerViewErrors
-
release
public void release()- Specified by:
release
in interfaceReleasable
-
toString
-
cloneWithoutObservations
-