I am trying to implement optical flow in Vs2008 using opencv2.4.11 I use the following code:
Mat img = imread("t.JPeG", CV_LOAD_IMAGE_UNCHANGED);//read the image data
vector<Point2f> corn;
goodFeaturesToTrack(img,corn,100,0.01,0.01);
I get an error when I run the code and it crashes it says due to opencv_core2411d.dll
when I modify the code to:
Mat corn instead of vector<Point2f> corn;
the code runs however, it produces the corn vector 100 rows by 1 column i.e. there is no xy it is only x I assume is that normal? how to infer the coordinates of the features then?