Class cv::fastcv::FCVMSER#
MSER blob detector for grayscale images.
#include <opencv2/fastcv/mser.hpp>Collaboration diagram for cv::fastcv::FCVMSER:
Detailed Description#
MSER blob detector for grayscale images.
Constructor & Destructor Documentation#
~FCVMSER()#
Member Function Documentation#
create()#
static Ptr< FCVMSER > cv::fastcv::FCVMSER::create(
const cv::Size & imgSize,
int numNeighbors = 4,
int delta = 2,
int minArea = 30,
int maxArea = 14400,
float maxVariation = 0.15f,
float minDiversity = 0.2f )
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 8delta— 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 2minArea— Minimum area (number of pixels) of a mser contour. Typical value range [10 50], typical value 30maxArea— Maximum area (number of pixels) of a mser contour. Typical value 14400 or 0.25widthheightmaxVariation— Maximum variation in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.15minDiversity— 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()#
void cv::fastcv::FCVMSER::detect(
InputArray src,
std::vector< std::vector< Point > > & contours )
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()#
void cv::fastcv::FCVMSER::detect(
InputArray src,
std::vector< std::vector< Point > > & contours,
std::vector< cv::Rect > & boundingBoxes )
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 contoursboundingBoxes— Array containing bounding boxes of found contours
detect()#
void cv::fastcv::FCVMSER::detect(
InputArray src,
std::vector< std::vector< Point > > & contours,
std::vector< cv::Rect > & boundingBoxes,
std::vector< ContourData > & contourData )
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 contoursboundingBoxes— Array containing bounding boxes of found contourscontourData— Array containing additional information about found contours
getDelta()#
int cv::fastcv::FCVMSER::getDelta()
getImgSize()#
getMaxArea()#
int cv::fastcv::FCVMSER::getMaxArea()
getMaxVariation()#
float cv::fastcv::FCVMSER::getMaxVariation()
getMinArea()#
int cv::fastcv::FCVMSER::getMinArea()
getMinDiversity()#
float cv::fastcv::FCVMSER::getMinDiversity()
getNumNeighbors()#
int cv::fastcv::FCVMSER::getNumNeighbors()
Source file#
The documentation for this class was generated from the following file:
opencv2/fastcv/mser.hpp