I just want to give this function a test. And yet, it came with some incomprehensive errors at the beginning, which I finally found the solution. That is: both objectPoints
& imagePoints
have to be changed to CV_32FC3
& CV_32FC2
respectively, the code works fine.
For this, the documentation of OpenCV is so erroneous which tells that all matrix representation can work
Getting over this bug, I have incorrect output:
The projected image points are irrational (of course, I've checked my input data).
Has anyone experienced with this function of OpenCV, giving correct projection?
Edit 01: output(2,2) = -1.#QNAN000
=> can this be a clue to know the cause of error??