MSER detector mask ignored (v3.0 beta) (Feature #4222)


Added by Lukas Kuzmiak about 10 years ago. Updated over 9 years ago.


Status:Done Start date:2015-02-27
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

100%

Category:features2d
Target version:3.0
Difficulty: Pull request:

Description

I've updated old mser_sample.cpp to work with new 3.0 interface a follows:

vector<vector<Point> > contours;
vector<Rect> boxes;
Ptr<MSER> mser = MSER::create();

mser->detectRegions(yuv, contours, boxes);

where boxes are the optional masks, which marks the areas where MSERs are searched for (according to documentation):
[[http://docs.opencv.org/trunk/modules/features2d/doc/feature_detection_and_description.html]]

Code works as expected, but when I add a mask to limit inspected area:
boxes.push_back ( Rect(100,100,400,300));
it has no influence on result nor algorithm computation time. MSERs are found on the whole image as without any mask.


Associated revisions

Revision 11c3fa52
Added by Alexander Alekhin over 9 years ago

Merge pull request #4222 from mshabunin:fix-android-warnings

History

Updated by Maksim Shabunin almost 10 years ago

  • Target version changed from 3.0-beta to 3.0

Updated by Vadim Pisarevsky almost 10 years ago

  • Tracker changed from Bug to Feature

Updated by Lukas Kuzmiak over 9 years ago

Documentation is not correct, vector<Rect> boxes serves as a result array for storing minimum area rectangle for each contour found by MSER.

  • Status changed from New to Done
  • % Done changed from 0 to 100

Also available in: Atom PDF