Ask Your Question

FREAK selectPairs Error

asked 2012-12-27 04:17:54 -0600

aliciadominica gravatar image

updated 2012-12-27 04:19:23 -0600

Hello, since I'm not happy with the results achieved via FREAK, I decided to use FREAK::selectPairs() . But I keep getting an error at a parameter. The error is: "illegal call of non-static member function" My code is below:

vector<Mat> images;
vector<vector<KeyPoint>> keypoints;

for (int i=0; i<keypointsB.size();i++)
for (int i=0; i<keypointsA.size();i++)


Any help would be appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-12-27 06:01:04 -0600

Emmanuel gravatar image

updated 2012-12-27 06:01:47 -0600

Your syntax is incorrect. Since selectPairs() is not a declared as static function, it can only be called by an instance of the class.

So you have write something like this instead:

FREAK myFreak;
myFreak.selectPairs(images, keypoints, 0.7, true);
edit flag offensive delete link more


Thanks a lot. I figured the syntax was incorrect but since I'm not a computer scientist, didn't know why.

aliciadominica gravatar imagealiciadominica ( 2012-12-27 06:11:24 -0600 )edit

Question Tools


Asked: 2012-12-27 04:17:54 -0600

Seen: 393 times

Last updated: Dec 27 '12