我正在尝试使用opencv cv::goodFeaturesToTrack
获取角点。我做了以下代码。但输出角矢量大小始终为零,但拐角容量发生了变化。
using namespace cv;
void main()
{
Mat img = imread("cameraman.tif",CV_LOAD_IMAGE_GRAYSCALE);
std::vector<Point2f> Corners;
cv::goodFeaturesToTrack(img,Corners,10,0.01,10);
std::cout<<Corners.size()<<endl;
}
输出为0