OpenCV for Unity  2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.Features2dModule.MSER Class Reference

Maximally stable extremal region extractor. More...

Inheritance diagram for OpenCVForUnity.Features2dModule.MSER:
OpenCVForUnity.Features2dModule.Feature2D OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

void detectRegions (Mat image, List< MatOfPoint > msers, MatOfRect bboxes)
 Detect MSER regions. More...
 
void setDelta (int delta)
 
int getDelta ()
 
void setMinArea (int minArea)
 
int getMinArea ()
 
void setMaxArea (int maxArea)
 
int getMaxArea ()
 
void setMaxVariation (double maxVariation)
 
double getMaxVariation ()
 
void setMinDiversity (double minDiversity)
 
double getMinDiversity ()
 
void setMaxEvolution (int maxEvolution)
 
int getMaxEvolution ()
 
void setAreaThreshold (double areaThreshold)
 
double getAreaThreshold ()
 
void setMinMargin (double min_margin)
 
double getMinMargin ()
 
void setEdgeBlurSize (int edge_blur_size)
 
int getEdgeBlurSize ()
 
void setPass2Only (bool f)
 
bool getPass2Only ()
 
override string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.Features2dModule.Feature2D
void detect (Mat image, MatOfKeyPoint keypoints, Mat mask)
 Detects keypoints in an image (first variant) or image set (second variant). More...
 
void detect (Mat image, MatOfKeyPoint keypoints)
 Detects keypoints in an image (first variant) or image set (second variant). More...
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > masks)
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints)
 
void compute (Mat image, MatOfKeyPoint keypoints, Mat descriptors)
 Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant). More...
 
void compute (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > descriptors)
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, bool useProvidedKeypoints)
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)
 
int descriptorSize ()
 
int descriptorType ()
 
int defaultNorm ()
 
void write (string fileName)
 
void read (string fileName)
 
override bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new MSER __fromPtr__ (IntPtr addr)
 
static MSER create (int delta, int min_area, int max_area, double max_variation, double min_diversity, int max_evolution, double area_threshold, double min_margin, int edge_blur_size)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area, double max_variation, double min_diversity, int max_evolution, double area_threshold, double min_margin)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area, double max_variation, double min_diversity, int max_evolution, double area_threshold)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area, double max_variation, double min_diversity, int max_evolution)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area, double max_variation, double min_diversity)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area, double max_variation)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area, int max_area)
 Full constructor for MSER detector. More...
 
static MSER create (int delta, int min_area)
 Full constructor for MSER detector. More...
 
static MSER create (int delta)
 Full constructor for MSER detector. More...
 
static MSER create ()
 Full constructor for MSER detector. More...
 
- Static Public Member Functions inherited from OpenCVForUnity.Features2dModule.Feature2D
static new Feature2D __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Maximally stable extremal region extractor.

The class encapsulates all the parameters of the MSER extraction algorithm (see wiki article).

Member Function Documentation

◆ __fromPtr__()

static new MSER OpenCVForUnity.Features2dModule.MSER.__fromPtr__ ( IntPtr  addr)
static

◆ create() [1/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation,
double  min_diversity,
int  max_evolution,
double  area_threshold,
double  min_margin,
int  edge_blur_size 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [2/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation,
double  min_diversity,
int  max_evolution,
double  area_threshold,
double  min_margin 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [3/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation,
double  min_diversity,
int  max_evolution,
double  area_threshold 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [4/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation,
double  min_diversity,
int  max_evolution 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [5/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation,
double  min_diversity 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [6/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area,
double  max_variation 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [7/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area,
int  max_area 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [8/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta,
int  min_area 
)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [9/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( int  delta)
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ create() [10/10]

static MSER OpenCVForUnity.Features2dModule.MSER.create ( )
static

Full constructor for MSER detector.

Parameters
deltait compares \((size_{i}-size_{i-delta})/size_{i-delta}\)
min_areaprune the area which smaller than minArea
max_areaprune the area which bigger than maxArea
max_variationprune the area have similar size to its children
min_diversityfor color image, trace back to cut off mser with diversity less than min_diversity
max_evolutionfor color image, the evolution steps
area_thresholdfor color image, the area threshold to cause re-initialize
min_marginfor color image, ignore too small margin
edge_blur_sizefor color image, the aperture size for edge blur

◆ detectRegions()

void OpenCVForUnity.Features2dModule.MSER.detectRegions ( Mat  image,
List< MatOfPoint msers,
MatOfRect  bboxes 
)

Detect MSER regions.

Parameters
imageinput image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)
msersresulting list of point sets
bboxesresulting bounding boxes

◆ Dispose()

override void OpenCVForUnity.Features2dModule.MSER.Dispose ( bool  disposing)
protectedvirtual

◆ getAreaThreshold()

double OpenCVForUnity.Features2dModule.MSER.getAreaThreshold ( )

◆ getDefaultName()

override string OpenCVForUnity.Features2dModule.MSER.getDefaultName ( )
virtual

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Reimplemented from OpenCVForUnity.Features2dModule.Feature2D.

◆ getDelta()

int OpenCVForUnity.Features2dModule.MSER.getDelta ( )

◆ getEdgeBlurSize()

int OpenCVForUnity.Features2dModule.MSER.getEdgeBlurSize ( )

◆ getMaxArea()

int OpenCVForUnity.Features2dModule.MSER.getMaxArea ( )

◆ getMaxEvolution()

int OpenCVForUnity.Features2dModule.MSER.getMaxEvolution ( )

◆ getMaxVariation()

double OpenCVForUnity.Features2dModule.MSER.getMaxVariation ( )

◆ getMinArea()

int OpenCVForUnity.Features2dModule.MSER.getMinArea ( )

◆ getMinDiversity()

double OpenCVForUnity.Features2dModule.MSER.getMinDiversity ( )

◆ getMinMargin()

double OpenCVForUnity.Features2dModule.MSER.getMinMargin ( )

◆ getPass2Only()

bool OpenCVForUnity.Features2dModule.MSER.getPass2Only ( )

◆ setAreaThreshold()

void OpenCVForUnity.Features2dModule.MSER.setAreaThreshold ( double  areaThreshold)

◆ setDelta()

void OpenCVForUnity.Features2dModule.MSER.setDelta ( int  delta)

◆ setEdgeBlurSize()

void OpenCVForUnity.Features2dModule.MSER.setEdgeBlurSize ( int  edge_blur_size)

◆ setMaxArea()

void OpenCVForUnity.Features2dModule.MSER.setMaxArea ( int  maxArea)

◆ setMaxEvolution()

void OpenCVForUnity.Features2dModule.MSER.setMaxEvolution ( int  maxEvolution)

◆ setMaxVariation()

void OpenCVForUnity.Features2dModule.MSER.setMaxVariation ( double  maxVariation)

◆ setMinArea()

void OpenCVForUnity.Features2dModule.MSER.setMinArea ( int  minArea)

◆ setMinDiversity()

void OpenCVForUnity.Features2dModule.MSER.setMinDiversity ( double  minDiversity)

◆ setMinMargin()

void OpenCVForUnity.Features2dModule.MSER.setMinMargin ( double  min_margin)

◆ setPass2Only()

void OpenCVForUnity.Features2dModule.MSER.setPass2Only ( bool  f)

The documentation for this class was generated from the following file: