Table of Contents

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

p nint

Properties

Delta

public int Delta { get; set; }

Property Value

int

MaxArea

public int MaxArea { get; set; }

Property Value

int

MinArea

public int MinArea { get; set; }

Property Value

int

Pass2Only

public bool Pass2Only { get; set; }

Property Value

bool

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

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

Returns

MSER

DetectRegions(InputArray, out Point[][], out Rect[])

Detect MSER regions

public virtual void DetectRegions(InputArray image, out Point[][] msers, out Rect[] bboxes)

Parameters

image InputArray

input image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)

msers Point[][]

resulting list of point sets

bboxes Rect[]

resulting bounding boxes

DisposeManaged()

Releases managed resources

protected override void DisposeManaged()