Class MSER
- Namespace
- Emgu.CV.Features2D
- Assembly
- Emgu.CV.dll
MSER detector
public class MSER : Feature2D, IDisposable, IAlgorithm
- Inheritance
-
MSER
- Implements
- Inherited Members
- Extension Methods
Constructors
MSER(int, int, int, double, double, int, double, double, int)
Create a MSER detector using the specific parameters
public MSER(int delta = 5, int minArea = 60, int maxArea = 14400, double maxVariation = 0.25, double minDiversity = 0.2, int maxEvolution = 200, double areaThreshold = 1.01, double minMargin = 0.003, int edgeBlurSize = 5)
Parameters
delta
intIn the code, it compares (size_{i}-size_{i-delta})/size_{i-delta}
minArea
intPrune the area which smaller than min_area
maxArea
intPrune the area which bigger than max_area
maxVariation
doublePrune the area have similar size to its children
minDiversity
doubleTrace back to cut off mser with diversity < min_diversity
maxEvolution
intFor color image, the evolution steps
areaThreshold
doubleThe area threshold to cause re-initialize
minMargin
doubleIgnore too small margin
edgeBlurSize
intThe aperture size for edge blur
Properties
Delta
Delta
public int Delta { get; set; }
Property Value
MaxArea
Max Area
public int MaxArea { get; set; }
Property Value
MinArea
Min Area
public int MinArea { get; set; }
Property Value
Pass2Only
Pass2 only
public bool Pass2Only { get; set; }
Property Value
Methods
DetectRegions(IInputArray, VectorOfVectorOfPoint, VectorOfRect)
Detect MSER regions
public void DetectRegions(IInputArray image, VectorOfVectorOfPoint msers, VectorOfRect bboxes)
Parameters
image
IInputArrayinput image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)
msers
VectorOfVectorOfPointresulting list of point sets
bboxes
VectorOfRectresulting bounding boxes
DisposeObject()
Release the unmanaged memory associated with this detector.
protected override void DisposeObject()