Package org.openpnp.vision
Class LensCalibration
- java.lang.Object
-
- org.openpnp.vision.LensCalibration
-
public class LensCalibration extends java.lang.ObjectPerforms OpenCV based lens calibration based on the techniques described in: http://opencv-java-tutorials.readthedocs.org/en/latest/09-camera-calibration.html http://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html https://github.com/Itseez/opencv/blob/master/samples/cpp/tutorial_code/calib3d/camera_calibration /camera_calibration.cpp FishEye model code is included but unfinished. This code cannot be finished until we are using OpenCV 3.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLensCalibration.LensModelstatic classLensCalibration.Pattern
-
Constructor Summary
Constructors Constructor Description LensCalibration(LensCalibration.LensModel lensModel, LensCalibration.Pattern pattern, int patternWidth, int patternHeight, double objectSize, long applyDelayMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opencv.core.Matapply(org.opencv.core.Mat mat)booleancalibrate()voidclose()org.opencv.core.MatgetCameraMatrix()org.opencv.core.MatgetDistortionCoefficients()intgetPatternFoundCount()booleanisCalibrated()
-
-
-
Constructor Detail
-
LensCalibration
public LensCalibration(LensCalibration.LensModel lensModel, LensCalibration.Pattern pattern, int patternWidth, int patternHeight, double objectSize, long applyDelayMs)
-
-
Method Detail
-
close
public void close()
-
apply
public org.opencv.core.Mat apply(org.opencv.core.Mat mat)
-
calibrate
public boolean calibrate()
-
getPatternFoundCount
public int getPatternFoundCount()
-
isCalibrated
public boolean isCalibrated()
-
getCameraMatrix
public org.opencv.core.Mat getCameraMatrix()
-
getDistortionCoefficients
public org.opencv.core.Mat getDistortionCoefficients()
-
-