calibratorocv.java
来自「camra calibration and you will enjoy it!」· Java 代码 · 共 31 行
JAVA
31 行
/* * CalibratorOCV.java */package itesm.gvision.apps.calibrator;//----------------------------------------------------------------------------------/** * * @author hugo */public class CalibratorOCV { /** Creates a new instance of CalibratorOCV */ public CalibratorOCV() { System.loadLibrary("ocvcalib"); this.initOCVCalibrator(); } //---------------------------------------------------------------------------------- public native void initOCVCalibrator(); public native double[] findCorners(int img[], int w, int h); public native void addCalibrationImage(int img[], int w, int h); public native boolean calibrate(); public native double[] getResults(); public native int[] getUndistortedImage(int img[], int w, int h); public native double[] getHomographyMatrix(double img[], double rw[], int np, int w, int h);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?