Class MSER
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Maximal Stable Extremal Regions class
public class MSER : Feature2D, IDisposable, ICvPtrHolder
- Inheritance
-
MSER
- Implements
- Inherited Members
Constructors
MSER(nint)
Creates instance by raw pointer cv::MSER*
protected MSER(nint p)
Parameters
pnint
Properties
Delta
public int Delta { get; set; }
Property Value
MaxArea
public int MaxArea { get; set; }
Property Value
MinArea
public int MinArea { get; set; }
Property Value
Pass2Only
public bool Pass2Only { get; set; }
Property Value
Methods
Create(int, int, int, double, double, int, double, double, int)
Creates MSER parameters
public static MSER Create(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
deltaintdelta, in the code, it compares (size_{i}-size_{i-delta})/size_{i-delta}
minAreaintprune the area which smaller than min_area
maxAreaintprune the area which bigger than max_area
maxVariationdoubleprune the area have simliar size to its children
minDiversitydoubletrace back to cut off mser with diversity < min_diversity
maxEvolutionintfor color image, the evolution steps
areaThresholddoublethe area threshold to cause re-initialize
minMargindoubleignore too small margin
edgeBlurSizeintthe aperture size for edge blur
Returns
DetectRegions(InputArray, out Point[][], out Rect[])
Detect MSER regions
public virtual void DetectRegions(InputArray image, out Point[][] msers, out Rect[] bboxes)
Parameters
imageInputArrayinput image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)
msersPoint[][]resulting list of point sets
bboxesRect[]resulting bounding boxes
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()