How to calculate corresponding points coordinates with RGBD image? #4355
Unanswered
StardustLu
asked this question in
Support Q&A
Replies: 1 comment
-
Hi @StardustLu! Are you sure you have the correct intrinsic parameters? Did you run the experiment posted here? I think now you can set the intrinsic parameters through our API, take a look at #3949 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I try to calculate corresponding points coordinates in world coordinate system with RGBD image, but the result is not good. If I understand it right, the pos in airsim should have no error. So what's wrong with my calculation ?
I set intrinsic parameters with #issue269;
I set extrinsic parameters with airsim_rec.txt
here's my calculation codes:
where :
q
denotes (Q_X, Q_Y, Q_Z, Q_W) in airsim_rec.txtt
denotes (POS_X, POS_Y, POS_Z) in airsim_rec.txtd
denotes depth in depth imageu,v
denotes pixel coordinate in RGB imagehere is my
settings.json
to record the RGBD image (the depth image seems to be fixed in 256 x 144):eg. set a pair of corresponding points:
p1(214, 280), p2(654, 280)
, and the pos recorded in airsim_rec.txt :I can't find depth metric which seems to be a little different with issue#1054. I test it and find the scale factor seems to be 100. So the depth of these corresponding points are
55.029296875
and46.2890625
.But the results seem to be far away from each other:
P1(-79.48, 74.04, 98.77), P2(-51.52, 88.38, 90.03)
What's wrong with my calculation?
Beta Was this translation helpful? Give feedback.
All reactions