You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
#ifndef __OPENCV_PRECOMP_H__
|
|
#define __OPENCV_PRECOMP_H__
|
|
|
|
#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:
|
|
//! the full constructor
|
|
CV_WRAP static Ptr<MSER2> create(int _delta = 5, int _min_area = 60, int _max_area = 14400, bool useBetter = true,
|
|
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 detectRegions(InputArray _src, vector<vector<Point>>& msers, vector<Rect>& bboxes, int type) = 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;
|
|
};
|
|
} |