Extracting distinctive regions using MSER
In the previous recipe, you learned how an image can be segmented into regions by gradually flooding it and creating watersheds. The Maximally Stable External Regions (MSER) algorithm uses the same immersion analogy in order to extract meaningful regions in an image. These regions will also be created by flooding the image level by level, but this time, we will be interested in the basins that remain relatively stable for a period of time during the immersion process. It will be observed that these regions correspond to some distinctive parts of the scene objects pictured in the image.
How to do it...
The basic class to compute the MSER of an image is cv::MSER
. This class is an abstract interface that inherits ...
Get OpenCV 3 Computer Vision Application Programming Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.