2017-09-01 17:14:25 -0600 | received badge | ● Student (source) |
2016-07-18 17:48:33 -0600 | commented answer | Undistort image before estimating pose using solvePnP Thanks. I got it. |
2016-07-18 17:47:37 -0600 | received badge | ● Scholar (source) |
2016-07-18 16:22:00 -0600 | asked a question | Undistort image before estimating pose using solvePnP I have to estimate the pose of the camera using a known marker. The camera is calibrated and I have all the calibration coefficients. The current version of the algorithm extracts 4 co-planar points from the frame and uses them to estimate the pose using the solvePnP function. The algorithms seems to work fine but I have a doubt. Since the solvePnP takes as input also the calibration coefficients, do I need to undistort the image before looking the 4 points? In the following code, are the initUndistortRectifyMap/remap functions necessary? |
2016-02-11 00:46:57 -0600 | asked a question | solvePnpRansac GPU assertion failed I'm trying to use the gpu version of solvePnPRansac to estimate the pose of the camera, but I get the following error: OpenCV Error: Assertion failed (object.rows == 1 && object.cols > 0 && object.type() == CV_32FC3) in cv::gpu::solvePnPRansac, file C:\opencv\sources\modules\gpu\src\calib3d.cpp, line 218 If I run my code using the solvePnP or cpu-based solvePnPRansac, everything works fine. I took a look into the code of calib3d.cpp at line 218 and the problem seems to be related to the first parameter of the function (that should be the list of the reference points). It seems that the format that I use to send the reference point to the function is wrong, but I didn't figure out which one is correct. Here is my code: Do you have any suggestions? |