st.planes,// final TilePlanes.PlaneData[][] planes,
0,// debugLevel
merge_groups,// final int [][][] merge_groups,
// parameters to generate ellipsoids
0.0,// 3, // final double disp_far, // minimal disparity to select (or NaN)
Double.NaN,// final double disp_near, // maximal disparity to select (or NaN)
clt_parameters.plDispNorm,// final double dispNorm, // Normalize disparities to the average if above
0.0,// final double min_weight,
clt_parameters.plMinPoints,// final int min_tiles,
// parameters to reduce outliers
clt_parameters.plTargetEigen,// final double targetEigen, // = 0.1; // Remove outliers until main axis eigenvalue (possibly scaled by plDispNorm) gets below
clt_parameters.plFractOutliers,// final double fractOutliers, // = 0.3; // Maximal fraction of outliers to remove
clt_parameters.plMaxOutliers,// final int maxOutliers, // = 20; // Maximal number of outliers to remove
2,// -1, // debugLevel, // final int debugLevel)
clt_parameters.tileX,
clt_parameters.tileX,
clt_parameters.tileY);
clt_parameters.tileY);
st.filterNeighborPlanes(
System.out.println("Removed "+num_removed_by_merging+" planes by merging, recalculating connections");
clt_parameters.plWorstWorsening,// final double worst_worsening,
if(num_removed_by_merging>0){// re-calculate all links
clt_parameters.plWorstWorsening2,// final double worst_worsening2 Worst case worsening for thin planes,
lp.matchPlanes(
clt_parameters.plWorstEq,// final double worstEq, // Worst case worsening after merge with equal weights
st.planes,// final TilePlanes.PlaneData [][] planes,
clt_parameters.plWorstEq2,// final double worstEq2, // Worst case worsening for thin planes with equal weights
2,// -1, // debugLevel, // final int debugLevel)
clt_parameters.plWeakWorsening,// final double worst_worsening,
clt_parameters.plOKMergeEigen,// final double okMergeEigen, f result of the merged planes is below, OK to use thin planes (higher) threshold
clt_parameters.plMaxWorldSin2,// final double maxWorldSin2,
clt_parameters.plDispNorm,
clt_parameters.plMaxEigen,
clt_parameters.plEigenFloor,// final double eigenFloor, // Add to eigenvalues of each participating plane and result to validate connections