C# Class OpenCvSharp.MSER

Maximal Stable Extremal Regions class
Inheritance: Feature2D
Show file Open project: shimat/opencvsharp

Private Properties

Property Type Description

Public Methods

Method Description
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 ) : MSER

Creates MSER parameters

DetectRegions ( InputArray image, System.Point &msers, Rect &bboxes ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the resources

MSER ( IntPtr p ) : System

Creates instance by raw pointer cv::MSER*

Method Details

Create() public static method

Creates MSER parameters
public static 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 ) : MSER
delta int delta, in the code, it compares (size_{i}-size_{i-delta})/size_{i-delta}
minArea int prune the area which smaller than min_area
maxArea int prune the area which bigger than max_area
maxVariation double prune the area have simliar size to its children
minDiversity double trace back to cut off mser with diversity < min_diversity
maxEvolution int for color image, the evolution steps
areaThreshold double the area threshold to cause re-initialize
minMargin double ignore too small margin
edgeBlurSize int the aperture size for edge blur
return MSER

DetectRegions() public method

public DetectRegions ( InputArray image, System.Point &msers, Rect &bboxes ) : void
image InputArray
msers System.Point
bboxes Rect
return void

Dispose() protected method

Releases the resources
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

MSER() protected method

Creates instance by raw pointer cv::MSER*
protected MSER ( IntPtr p ) : System
p System.IntPtr
return System