本文整理了Java中boofcv.alg.geo.calibration.Zhang99CalibrationMatrixFromHomographies.computeParam()
方法的一些代码示例,展示了Zhang99CalibrationMatrixFromHomographies.computeParam()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zhang99CalibrationMatrixFromHomographies.computeParam()
方法的具体详情如下:
包路径:boofcv.alg.geo.calibration.Zhang99CalibrationMatrixFromHomographies
类名称:Zhang99CalibrationMatrixFromHomographies
方法名:computeParam
[英]Compute the calibration parameters from the b matrix.
[中]根据b矩阵计算校准参数。
代码示例来源:origin: org.boofcv/boofcv-calibration
/**
* Given a set of homographies computed from a sequence of images that observe the same
* plane it estimates the camera's calibration.
*
* @param homographies Homographies computed from observations of the calibration grid.
*/
public void process( List<DMatrixRMaj> homographies ) {
if( assumeZeroSkew ) {
if( homographies.size() < 2 )
throw new IllegalArgumentException("At least two homographies are required");
} else if( homographies.size() < 3 ) {
throw new IllegalArgumentException("At least three homographies are required");
}
if( assumeZeroSkew ) {
setupA_NoSkew(homographies);
if( !solverNull.process(A,1,b) )
throw new RuntimeException("SVD failed");
computeParam_ZeroSkew();
} else {
setupA(homographies);
if( !solverNull.process(A,1,b) )
throw new RuntimeException("SVD failed");
computeParam();
}
if(MatrixFeatures_DDRM.hasUncountable(K)) {
throw new RuntimeException("Failed!");
}
}
代码示例来源:origin: org.boofcv/calibration
throw new RuntimeException("SVD failed");
SingularOps.nullVector(svd,true,b);
computeParam();
内容来源于网络,如有侵权,请联系作者删除!