Search in sources :

Example 1 with Zhang99AllParam

use of boofcv.alg.geo.calibration.Zhang99AllParam in project BoofCV by lessthanoptimal.

the class CalibrateStereoPlanar method calibrateMono.

/**
 * Compute intrinsic calibration for one of the cameras
 */
private CameraPinholeRadial calibrateMono(CalibrateMonoPlanar calib, List<Se3_F64> location) {
    CameraPinholeRadial intrinsic = calib.process();
    Zhang99AllParam zhangParam = calib.getZhangParam();
    for (Zhang99AllParam.View v : zhangParam.views) {
        Se3_F64 pose = new Se3_F64();
        ConvertRotation3D_F64.rodriguesToMatrix(v.rotation, pose.getR());
        pose.getT().set(v.T);
        location.add(pose);
    }
    return intrinsic;
}
Also used : CameraPinholeRadial(boofcv.struct.calib.CameraPinholeRadial) Zhang99AllParam(boofcv.alg.geo.calibration.Zhang99AllParam) Se3_F64(georegression.struct.se.Se3_F64)

Aggregations

Zhang99AllParam (boofcv.alg.geo.calibration.Zhang99AllParam)1 CameraPinholeRadial (boofcv.struct.calib.CameraPinholeRadial)1 Se3_F64 (georegression.struct.se.Se3_F64)1