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

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.