MSER blob detector for grayscale images.
More...
#include <opencv2/fastcv/mser.hpp>
|
struct | ContourData |
| Structure containing additional information about found contour. More...
|
|
|
static Ptr< FCVMSER > | create (cv::Size imgSize, uint32_t numNeighbors=4, uint32_t delta=2, uint32_t minArea=30, uint32_t maxArea=14400, float maxVariation=0.15f, float minDiversity=0.2f) |
| Creates MSER detector.
|
|
MSER blob detector for grayscale images.
◆ ~FCVMSER()
virtual cv::fastcv::FCVMSER::~FCVMSER |
( |
| ) |
|
|
inlinevirtual |
◆ create()
static Ptr< FCVMSER > cv::fastcv::FCVMSER::create |
( |
cv::Size | imgSize, |
|
|
uint32_t | numNeighbors = 4, |
|
|
uint32_t | delta = 2, |
|
|
uint32_t | minArea = 30, |
|
|
uint32_t | maxArea = 14400, |
|
|
float | maxVariation = 0.15f, |
|
|
float | minDiversity = 0.2f ) |
|
static |
Creates MSER detector.
- Parameters
-
imgSize | Image size. Image width has to be greater than 50, and image height has to be greater than 5. |
numNeighbors | Number of neighbors in contours, can be 4 or 8 |
delta | Delta to be used in MSER algorithm (the difference in grayscale values within which the region is stable ). Typical value range [0.8 8], typical value 2 |
minArea | Minimum area (number of pixels) of a mser contour. Typical value range [10 50], typical value 30 |
maxArea | Maximum area (number of pixels) of a mser contour. Typical value 14400 or 0.25*width*height |
maxVariation | Maximum variation in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.15 |
minDiversity | Minimum diversity in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.2 |
- Returns
- Feature detector object ready for detection
◆ detect() [1/3]
virtual void cv::fastcv::FCVMSER::detect |
( |
InputArray | src, |
|
|
std::vector< std::vector< Point > > & | contours ) |
|
pure virtual |
This is an overload for detect() function.
- Parameters
-
src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
contours | Array containing found contours |
◆ detect() [2/3]
virtual void cv::fastcv::FCVMSER::detect |
( |
InputArray | src, |
|
|
std::vector< std::vector< Point > > & | contours, |
|
|
std::vector< cv::Rect > & | boundingBoxes ) |
|
pure virtual |
This is an overload for detect() function.
- Parameters
-
src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
contours | Array containing found contours |
boundingBoxes | Array containing bounding boxes of found contours |
◆ detect() [3/3]
virtual void cv::fastcv::FCVMSER::detect |
( |
InputArray | src, |
|
|
std::vector< std::vector< Point > > & | contours, |
|
|
std::vector< cv::Rect > & | boundingBoxes, |
|
|
std::vector< ContourData > & | contourData ) |
|
pure virtual |
Runs MSER blob detector on the grayscale image.
- Parameters
-
src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
contours | Array containing found contours |
boundingBoxes | Array containing bounding boxes of found contours |
contourData | Array containing additional information about found contours |
◆ getDelta()
virtual uint32_t cv::fastcv::FCVMSER::getDelta |
( |
| ) |
|
|
pure virtual |
◆ getImgSize()
virtual cv::Size cv::fastcv::FCVMSER::getImgSize |
( |
| ) |
|
|
pure virtual |
◆ getMaxArea()
virtual uint32_t cv::fastcv::FCVMSER::getMaxArea |
( |
| ) |
|
|
pure virtual |
◆ getMaxVariation()
virtual float cv::fastcv::FCVMSER::getMaxVariation |
( |
| ) |
|
|
pure virtual |
◆ getMinArea()
virtual uint32_t cv::fastcv::FCVMSER::getMinArea |
( |
| ) |
|
|
pure virtual |
◆ getMinDiversity()
virtual float cv::fastcv::FCVMSER::getMinDiversity |
( |
| ) |
|
|
pure virtual |
◆ getNumNeighbors()
virtual uint32_t cv::fastcv::FCVMSER::getNumNeighbors |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: