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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user