Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the weight of marker #6

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/optimization/pnpsolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ int PnPSolver::solvePnp( const Frame &frame, std::shared_ptr<Map> TheMap, std::v
//compute the weight of markers considering that w_markers+w_points must be 1.
//the total sum of poits weigh is so far totalNEdges.
//So first, count nunmber of marker edges
float w_markers=0.3;
float w_markers=0.95;
int totalNEdges=map_matches.size()+ marker_poses.size();
double weight_marker= ((w_markers *totalNEdges)/ (1.- w_markers))/float(KpWeightSum);

Expand Down
Loading