16 Ağustos 2017 Çarşamba

OpenCV FeatureDetector Sınıfı

create metodu
Açıklaması şöyle
"FAST"  FastFeatureDetector 
"STAR"  StarFeatureDetector 
"SIFT"  SIFT (nonfree module) 
"SURF"  SURF (nonfree module) 
"ORB"  ORB
"BRISK"  BRISK 
"MSER"  MSER 
"GFTT"  GoodFeaturesToTrackDetector
"HARRIS"  GoodFeaturesToTrackDetector with Harris detector enabled
"Dense"  DenseFeatureDetector 
"SimpleBlob"  SimpleBlobDetector

Also a combined format is supported: 
  feature detector adapter name ( "Grid"  GridAdaptedFeatureDetector,
  "Pyramid"  PyramidAdaptedFeatureDetector )
   + feature detector name (see above), for example: "GridFAST", "PyramidSTAR"
Alternatif Örnek
Şöyle de yapabiliriz.
template<class T> cv::Ptr<T> FeatureDetectorCreator()
{
  return T::create();
};
Şöyle kullanırız
cv::Ptr<SURF> detector = FeatureDetectorCreator<SURF>();

Hiç yorum yok:

Yorum Gönder