parent
297c54f337
commit
045ed78542
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 56 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
#ifndef __OPENCV_PRECOMP_H__
|
||||
#define __OPENCV_PRECOMP_H__
|
||||
|
||||
#include "opencv2/features2d.hpp"
|
||||
#include "opencv2/imgproc.hpp"
|
||||
|
||||
#include "opencv2/core/utility.hpp"
|
||||
#include "opencv2/core/ocl.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||
#include "opencv2/features2d/features2d_tegra.hpp"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#include "opencv2/imgproc/imgproc_c.h"
|
||||
#include <limits>
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
||||
using std::vector;
|
||||
|
||||
class CV_EXPORTS_W MSER2 : public Feature2D
|
||||
{
|
||||
public:
|
||||
//! the full constructor
|
||||
CV_WRAP static Ptr<MSER2> create(int _delta = 5, int _min_area = 60, int _max_area = 14400,
|
||||
double _max_variation = 0.25, double _min_diversity = .2,
|
||||
int _max_evolution = 200, double _area_threshold = 1.01,
|
||||
double _min_margin = 0.003, int _edge_blur_size = 5);
|
||||
|
||||
CV_WRAP virtual void detectRegions(InputArray _src, vector<vector<Point>>& msers_blue, vector<Rect>& bboxes_blue,
|
||||
vector<vector<Point>>& msers_yellow, vector<Rect>& bboxes_yellow) = 0;
|
||||
|
||||
CV_WRAP virtual void setDelta(int delta) = 0;
|
||||
CV_WRAP virtual int getDelta() const = 0;
|
||||
|
||||
CV_WRAP virtual void setMinArea(int minArea) = 0;
|
||||
CV_WRAP virtual int getMinArea() const = 0;
|
||||
|
||||
CV_WRAP virtual void setMaxArea(int maxArea) = 0;
|
||||
CV_WRAP virtual int getMaxArea() const = 0;
|
||||
|
||||
CV_WRAP virtual void setPass2Only(bool f) = 0;
|
||||
CV_WRAP virtual bool getPass2Only() const = 0;
|
||||
};
|
||||
}
|
Loading…
Reference in new issue