Class MSER
Maximal Stable Extremal Regions class
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class MSER : Feature2D, ICvPtrHolder
Constructors
| Improve this Doc View SourceMSER(IntPtr)
Creates instance by raw pointer cv::MSER*
Declaration
protected MSER(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Properties
| Improve this Doc View SourceDelta
Declaration
public int Delta { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxArea
Declaration
public int MaxArea { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MinArea
Declaration
public int MinArea { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Pass2Only
Declaration
public bool Pass2Only { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceCreate(Int32, Int32, Int32, Double, Double, Int32, Double, Double, Int32)
Creates MSER parameters
Declaration
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
Type | Name | Description |
---|---|---|
System.Int32 | delta | delta, in the code, it compares (size_{i}-size_{i-delta})/size_{i-delta} |
System.Int32 | minArea | prune the area which smaller than min_area |
System.Int32 | maxArea | prune the area which bigger than max_area |
System.Double | maxVariation | prune the area have simliar size to its children |
System.Double | minDiversity | trace back to cut off mser with diversity < min_diversity |
System.Int32 | maxEvolution | for color image, the evolution steps |
System.Double | areaThreshold | the area threshold to cause re-initialize |
System.Double | minMargin | ignore too small margin |
System.Int32 | edgeBlurSize | the aperture size for edge blur |
Returns
Type | Description |
---|---|
MSER |
DetectRegions(InputArray, out Point[][], out Rect[])
Detect MSER regions
Declaration
public virtual void DetectRegions(InputArray image, out Point[][] msers, out Rect[] bboxes)
Parameters
Type | Name | Description |
---|---|---|
InputArray | image | input image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3) |
OpenCvSharp.Point[][] | msers | resulting list of point sets |
OpenCvSharp.Rect[] | bboxes | resulting bounding boxes |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()