create metodu
Açıklaması şöyle
Şöyle de yapabiliriz.
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ızcv::Ptr<SURF> detector = FeatureDetectorCreator<SURF>();
Hiç yorum yok:
Yorum Gönder