Initialize OutputArray for solvePnpRansac
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.
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.