1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 12:55:15 +08:00

refactored xfeatures2d in the same style as features2d

This commit is contained in:
Vadim Pisarevsky
2014-10-16 16:33:21 +04:00
parent 37c503d462
commit 0cfd795303
21 changed files with 421 additions and 450 deletions

View File

@@ -191,7 +191,8 @@ int main(int argc, char* argv[])
{
//Extract MSER
vector<vector<Point> > contours;
MSER(21,(int)(0.00002*grey.cols*grey.rows),(int)(0.05*grey.cols*grey.rows),1,0.7)(grey, contours);
Ptr<MSER> mser = MSER::create(21,(int)(0.00002*grey.cols*grey.rows),(int)(0.05*grey.cols*grey.rows),1,0.7);
mser->detectAndStore(grey, contours);
//Convert the output of MSER to suitable input for the grouping/recognition algorithms
if (contours.size() > 0)