Initialize OutputArray for solvePnpRansac

asked 2013-12-01 10:24:39 -0600

Davinci gravatar image

How should the output array argument of solvePnPRansac() be initialized? I do cv::OutputArray array. But I get a:

 error: ‘array’ declared as reference but not initialized

I am not sure how big the array will be.

edit retag flag offensive close merge delete


OutputArray is just a wrapper. It can be a std::vector or a matrix. So just pass in a std::vector and see if that works.

Guanta gravatar imageGuanta ( 2013-12-12 06:22:57 -0600 )edit