@Namespace(value="cv") public static class opencv_features2d.MSER extends opencv_features2d.Feature2D
The class encapsulates all the parameters of the %MSER extraction algorithm (see [wiki article](http://en.wikipedia.org/wiki/Maximally_stable_extremal_regions)).
- there are two different implementation of %MSER: one for grey image, one for color image
- the grey image algorithm is taken from: \cite nister2008linear ; the paper claims to be faster than union-find method; it actually get 1.5~2m/s on my centrino L7200 1.2GHz laptop.
- the color image algorithm is taken from: \cite forssen2007maximally ; it should be much slower than grey image method ( 3~4 times ); the chi_table.h file is taken directly from paper's source code which is distributed under GPL.
- (Python) A complete example showing the use of the %MSER detector can be found at samples/python/mser.py
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_features2d.MSER(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_features2d.MSER |
create() |
static opencv_features2d.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)
\brief Full consturctor for %MSER detector
|
void |
detectRegions(opencv_core.Mat image,
opencv_core.PointVectorVector msers,
opencv_core.RectVector bboxes)
\brief Detect %MSER regions
|
int |
getDelta() |
int |
getMaxArea() |
int |
getMinArea() |
boolean |
getPass2Only() |
void |
setDelta(int delta) |
void |
setMaxArea(int maxArea) |
void |
setMinArea(int minArea) |
void |
setPass2Only(boolean f) |
compute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detectAndCompute, detectAndCompute, empty, positionclear, getDefaultName, read, save, save, writeaddress, asBuffer, asByteBuffer, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_features2d.MSER(Pointer p)
Pointer.Pointer(Pointer).@opencv_core.Ptr public static opencv_features2d.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)
_delta - it compares \f$(size_{i}-size_{i-delta})/size_{i-delta}\f$_min_area - prune the area which smaller than minArea_max_area - prune the area which bigger than maxArea_max_variation - prune the area have simliar size to its children_min_diversity - for color image, trace back to cut off mser with diversity less than min_diversity_max_evolution - for color image, the evolution steps_area_threshold - for color image, the area threshold to cause re-initialize_min_margin - for color image, ignore too small margin_edge_blur_size - for color image, the aperture size for edge blur@opencv_core.Ptr public static opencv_features2d.MSER create()
public void detectRegions(@ByVal opencv_core.Mat image, @ByRef opencv_core.PointVectorVector msers, @ByRef opencv_core.RectVector bboxes)
image - input image (8UC1, 8UC3 or 8UC4)msers - resulting list of point setsbboxes - resulting bounding boxespublic void setDelta(int delta)
public int getDelta()
public void setMinArea(int minArea)
public int getMinArea()
public void setMaxArea(int maxArea)
public int getMaxArea()
Copyright © 2016. All rights reserved.