Ask Your Question
0

Should 3D and 2D point lists for solvePnP be declared in double or float?

asked 2017-02-24 00:55:27 -0500

yorkhuang gravatar image

Does anyone can confirm that the data type of 3D and 2D point lists for solvePnP should be declared in double or float? Someone in the Web said that they should be in double otherwise the answer will not correct. There is no specific instruction in OpenCV document. Thanks,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-01-18 16:57:34 -0500

taubhi gravatar image

Hi,

For next guys coming here, I tried with both types, and the same algorithm worked with double but not with float. Thus we should use solvePnP with double.

Cheers

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-02-24 00:55:27 -0500

Seen: 83 times

Last updated: Feb 24 '17