Ask Your Question

Revision history [back]

‘PointSetRegistrator’ is not a member of ‘cv’

I am trying to write some code for point cloud segmentation using Sample Consensus in OpenCV as part of GSoC 2020.

This would eventually live in opencv_contrib, but involves heavy use of RANSAC which is in OpenCV's calib3d module.

Cutting to the chase, I need to write a RANSAC PointSet Registrator like in

https://github.com/opencv/opencv/blob/560f85f8e51226340e5da4e0fa0047f0920e663e/modules/calib3d/src/solvepnp.cpp#L274

But trying to access both PointSetRegistrator and createRANSACPointSetRegistrator outside of OpenCV, I get compile error "‘PointSetRegistrator’ is not a member of ‘cv’".

But I can clearly see in the source code that these classes are exported using CV_EXPORT.

Please let me know how I can use OpenCV's RANSAC functions outside of OpenCV.