#ifndef __CONTOURSELECTOR_H__ #define __CONTOURSELECTOR_H__ #include #include #include #include #include "ContourGfExtend.h" using namespace std; using namespace cv; class ContourSelector { public: typedef pair*,ContourGfExtend*> PairTExtend; typedef vector VectorPT; typedef vector > ContoursTExtend; typedef vector HierarchyTExtend; public: ContourSelector(); virtual ~ContourSelector(); public: void CalContoursGf(Mat & src, ContoursTExtend & contours, VectorPT &vectorPT); void SelectObj(const VectorPT& vectorPT1, VectorPT& vectorPT2, const vector&indices); void SelectContour(VectorPT& vectorPT1, VectorPT& vectorPT2, double minValue, double maxValue, GF_FLAG gf); }; #endif