Skip to content

geo2raw.get_img_coords_dict sometimes returns wrong coordinates #14

Answered by HowcanoeWang
Seo-4d696b75 asked this question in Q&A
Discussion options

You must be logged in to vote

It is an existing bug with pix4d pmatrix calculation, it sometimes tends to project plot on another unrelated images very far away.

The solution I currently used to deal with it, is adding geo2raw.filter_cloest_img() function to judge whether the camera geo position is just above plot geo position.

pix2d_dict = geo2raw.get_img_coords_dict(p4d, points, method='pmat')
pix2d_dict_filter = geo2raw.filter_cloest_img(p4d, pix2d_dict, points, num=3, dist_thresh=5)

You can either use num or dist_thresh to filter wrong images

  • num: Only keep 3 closest images. (If not given, using the following distance filter)
  • dist_thresh: filter image-plot geo distance < 5m

I guess in your case, you prefer not m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HowcanoeWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working good first issue Good for newcomers
2 participants