Ask Your Question
0

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

asked Feb 24 '17

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,

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jan 18 '19

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

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Feb 24 '17

Seen: 219 times

Last updated: Feb 24 '17