Examples of CalibrationSettings


Examples of com.googlecode.javacv.ProjectiveDevice.CalibrationSettings

        return new double[] { Math.sqrt(total_err/points_so_far), max_err };
    }

    public double[] calibrate(boolean useCenters) {
        ProjectiveDevice d = projectiveDevice;
        CalibrationSettings dsettings = (CalibrationSettings)d.getSettings();

        if (d.cameraMatrix == null) {
            d.cameraMatrix = CvMat.create(3, 3);
            cvSetZero(d.cameraMatrix);
            if ((dsettings.flags & CV_CALIB_FIX_ASPECT_RATIO) != 0) {
                d.cameraMatrix.put(0, dsettings.initAspectRatio);
                d.cameraMatrix.put(4, 1.);
            }
        }
        int kn = dsettings.isFixK3() ? 4 : 5;
        if (dsettings.isRationalModel() && !dsettings.isFixK4() &&
                !dsettings.isFixK4() && !dsettings.isFixK5()) {
            kn = 8;
        }
        if (d.distortionCoeffs == null || d.distortionCoeffs.cols() != kn) {
            d.distortionCoeffs = CvMat.create(1, kn);
            cvSetZero(d.distortionCoeffs);
View Full Code Here

Examples of com.googlecode.javacv.ProjectiveDevice.CalibrationSettings

    }

    public double[] calibrateStereo(boolean useCenters, GeometricCalibrator peer) {
        ProjectiveDevice d = projectiveDevice;
        ProjectiveDevice dp = peer.projectiveDevice;
        CalibrationSettings dsettings = (CalibrationSettings)d.getSettings();
        CalibrationSettings dpsettings = (CalibrationSettings)dp.getSettings();

        CvMat[] points1 = getPoints(useCenters);
        CvMat[] points2 = peer.getPoints(useCenters);

        // find points in common from points1 and points2
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.