compute method for Feature2D

This commit is contained in:
Alexander Mordvintsev 2013-07-25 16:22:31 +04:00
parent be8b3687f4
commit 57bd485119
2 changed files with 8 additions and 0 deletions

View File

@ -263,6 +263,8 @@ public:
OutputArray descriptors,
bool useProvidedKeypoints=false ) const = 0;
CV_WRAP void compute( const Mat& image, CV_OUT CV_IN_OUT std::vector<KeyPoint>& keypoints, CV_OUT Mat& descriptors ) const;
// Create feature detector and descriptor extractor by name.
CV_WRAP static Ptr<Feature2D> create( const string& name );
};

View File

@ -106,6 +106,12 @@ Ptr<DescriptorExtractor> DescriptorExtractor::create(const string& descriptorExt
return Algorithm::create<DescriptorExtractor>("Feature2D." + descriptorExtractorType);
}
CV_WRAP void Feature2D::compute( const Mat& image, CV_OUT CV_IN_OUT std::vector<KeyPoint>& keypoints, CV_OUT Mat& descriptors ) const
{
DescriptorExtractor::compute(image, keypoints, descriptors);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/****************************************************************************************\