Merge pull request #696 from znah:detect_method
This commit is contained in:
commit
6faf00b8e5
@ -206,6 +206,8 @@ public:
|
|||||||
OutputArray descriptors,
|
OutputArray descriptors,
|
||||||
bool useProvidedKeypoints=false ) const = 0;
|
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.
|
// Create feature detector and descriptor extractor by name.
|
||||||
CV_WRAP static Ptr<Feature2D> create( const String& name );
|
CV_WRAP static Ptr<Feature2D> create( const String& name );
|
||||||
};
|
};
|
||||||
|
@ -105,6 +105,12 @@ Ptr<DescriptorExtractor> DescriptorExtractor::create(const String& descriptorExt
|
|||||||
return Algorithm::create<DescriptorExtractor>("Feature2D." + descriptorExtractorType);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/****************************************************************************************\
|
/****************************************************************************************\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user