看板 C_and_CPP 關於我們 聯絡資訊
※ 引述《amidofun ()》之銘言: : 我想問這個cv::MSER : 其中的operator,如下: : void operator()( const Mat& image, vector<vector<Point> >& msers, const Mat& : mask ) const; : 如何使用??? : 我又試著使用cv::MserFeatureDetector : Wrapping class for feature detection using cv::MSER class : 其中的 : void FeatureDetector::detect( const Mat& image, vector<KeyPoint>& keypoints, : const Mat& mask=Mat() ) const; : 但是第二參數是不同型態的!? 我找了定義, 如下: /*! Maximal Stable Extremal Regions class. The class implements MSER algorithm introduced by J. Matas. Unlike SIFT, SURF and many other detectors in OpenCV, this is salient region detector, not the salient point detector. It returns the regions, each of those is encoded as a contour.*/ class CV_EXPORTS_W MSER : public CvMSERParams { public: //! the default constructor CV_WRAP MSER(); //! the full constructor CV_WRAP MSER( 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 ); //! the operator that extracts the MSERs from the image or the specific part of it CV_WRAP_AS(detect) void operator()( const Mat& image, CV_OUT vector<vector<Point> >& msers, const Mat& mask ) const; }; 但看了還是不知道如何使用阿= = ? 請大大指點一下寫法 有沒有可能MSER C++部分還沒弄好 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.13.168