gpt4 book ai didi

boofcv.alg.geo.calibration.Zhang99CalibrationMatrixFromHomographies.setupA_NoSkew()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:38:58 27 4
gpt4 key购买 nike

本文整理了Java中boofcv.alg.geo.calibration.Zhang99CalibrationMatrixFromHomographies.setupA_NoSkew()方法的一些代码示例,展示了Zhang99CalibrationMatrixFromHomographies.setupA_NoSkew()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zhang99CalibrationMatrixFromHomographies.setupA_NoSkew()方法的具体详情如下:
包路径:boofcv.alg.geo.calibration.Zhang99CalibrationMatrixFromHomographies
类名称:Zhang99CalibrationMatrixFromHomographies
方法名:setupA_NoSkew

Zhang99CalibrationMatrixFromHomographies.setupA_NoSkew介绍

[英]Similar to #setupA(java.util.List) but all references to B12 have been removed since it will always be zero when the skew is zero
[中]与#setupA(java.util.List)类似,但所有对B12的引用都已删除,因为当倾斜为零时,B12将始终为零

代码示例

代码示例来源: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

setupA_NoSkew(homographies);
if( !svd.decompose(A) )
  throw new RuntimeException("SVD failed");

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com