Changed VectorDescriptorMatch interface to add factory capabilities and changed factory functions interface (return smart pointer)

This commit is contained in:
Alexander Shishkov
2010-07-12 11:56:11 +00:00
parent c3eb7881f1
commit fd16d49d85
4 changed files with 14 additions and 15 deletions

View File

@@ -316,7 +316,7 @@ void SurfFeatureDetector::detectImpl( const Mat& image, const Mat& mask,
surf(image, mask, keypoints);
}
FeatureDetector* createDetector( const string& detectorType )
Ptr<FeatureDetector> createDetector( const string& detectorType )
{
FeatureDetector* fd = 0;
if( !detectorType.compare( "FAST" ) )