OpenCV 4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::fastcv::FCVMSER Class Referenceabstract

MSER blob detector for grayscale images. More...

#include <opencv2/fastcv/mser.hpp>

Collaboration diagram for cv::fastcv::FCVMSER:

Classes

struct  ContourData
 Structure containing additional information about found contour. More...
 

Public Member Functions

virtual ~FCVMSER ()
 
virtual void detect (InputArray src, std::vector< std::vector< Point > > &contours)=0
 This is an overload for detect() function.
 
virtual void detect (InputArray src, std::vector< std::vector< Point > > &contours, std::vector< cv::Rect > &boundingBoxes)=0
 This is an overload for detect() function.
 
virtual void detect (InputArray src, std::vector< std::vector< Point > > &contours, std::vector< cv::Rect > &boundingBoxes, std::vector< ContourData > &contourData)=0
 Runs MSER blob detector on the grayscale image.
 
virtual uint32_t getDelta ()=0
 
virtual cv::Size getImgSize ()=0
 
virtual uint32_t getMaxArea ()=0
 
virtual float getMaxVariation ()=0
 
virtual uint32_t getMinArea ()=0
 
virtual float getMinDiversity ()=0
 
virtual uint32_t getNumNeighbors ()=0
 

Static Public Member Functions

static Ptr< FCVMSERcreate (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.
 

Detailed Description

MSER blob detector for grayscale images.

Constructor & Destructor Documentation

◆ ~FCVMSER()

virtual cv::fastcv::FCVMSER::~FCVMSER ( )
inlinevirtual

Member Function Documentation

◆ 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
imgSizeImage size. Image width has to be greater than 50, and image height has to be greater than 5.
numNeighborsNumber of neighbors in contours, can be 4 or 8
deltaDelta 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
minAreaMinimum area (number of pixels) of a mser contour. Typical value range [10 50], typical value 30
maxAreaMaximum area (number of pixels) of a mser contour. Typical value 14400 or 0.25*width*height
maxVariationMaximum variation in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.15
minDiversityMinimum 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
srcSource 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.
contoursArray 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
srcSource 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.
contoursArray containing found contours
boundingBoxesArray 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
srcSource 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.
contoursArray containing found contours
boundingBoxesArray containing bounding boxes of found contours
contourDataArray 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: