mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
added clear method to GenericDescriptorMatch
This commit is contained in:
@@ -150,6 +150,13 @@ size_t KeyPointCollection::calcKeypointCount() const
|
||||
return *startIndices.rbegin() + points.rbegin()->size();
|
||||
}
|
||||
|
||||
void KeyPointCollection::clear()
|
||||
{
|
||||
images.clear();
|
||||
points.clear();
|
||||
startIndices.clear();
|
||||
}
|
||||
|
||||
/*
|
||||
* GenericDescriptorMatch
|
||||
*/
|
||||
@@ -169,6 +176,10 @@ void GenericDescriptorMatch::classify( const Mat& image, vector<cv::KeyPoint>& p
|
||||
points[i].class_id = collection.getKeyPoint(keypointIndices[i]).class_id;
|
||||
};
|
||||
|
||||
void GenericDescriptorMatch::clear()
|
||||
{
|
||||
collection.clear();
|
||||
}
|
||||
/****************************************************************************************\
|
||||
* OneWayDescriptorMatch *
|
||||
\****************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user