You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, my aim is to optimize extrinsic, and intrinsic camera parameters and radial distortion coefficients of the camera. I could not find any edge in the g2o as default. So, I'm trying to implement the edge from scratch. I used a linear update step for all vertices except for the camera pose which is an exponential map. Even if it's converged, it takes lots of time. Do you have any suggestions for parameterization or optimization algorithms to improve the time consumption? Also, If I combined intrinsic vertices and distortion vertex, it makes algorithm faster? Maybe I can change the BaseFixedSizedEdge. I guess this issue belongs in a g2o forum. Sorry about that.
My optimizer:
g2o::SparseOptimizer optimizer;
// Initialize the solver and optimizer
typedef g2o::BlockSolverX BlockSolverType;
typedef g2o::LinearSolverCholmod<BlockSolverType::PoseMatrixType> LinearSolverType;
std::unique_ptr<BlockSolverType::LinearSolverType> linearSolver (new LinearSolverType());
std::unique_ptr<BlockSolverType> solver_ptr (new BlockSolverType(std::move(linearSolver)));
g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg(std::move(solver_ptr));
solver->setUserLambdaInit(0.01);
solver->setMaxTrialsAfterFailure(100);
optimizer.setAlgorithm(solver);
Hello, my aim is to optimize extrinsic, and intrinsic camera parameters and radial distortion coefficients of the camera. I could not find any edge in the g2o as default. So, I'm trying to implement the edge from scratch. I used a linear update step for all vertices except for the camera pose which is an exponential map. Even if it's converged, it takes lots of time. Do you have any suggestions for parameterization or optimization algorithms to improve the time consumption? Also, If I combined intrinsic vertices and distortion vertex, it makes algorithm faster? Maybe I can change the BaseFixedSizedEdge. I guess this issue belongs in a g2o forum. Sorry about that.
My optimizer:
Here is my Edge implementation:
The text was updated successfully, but these errors were encountered: