Ask Your Question

Revision history [back]

Which version of OpenCV are you using? cvGoodFeaturesToTrack is old (deprecated, never use again, pure evil) C-Api. The new cv::GoodFeaturesToTrack just returns what you need:

cv::Mat img;
vector<cv::Point2f> corners;
cv::goodFeaturesToTrack(img,corners,100,1,1);