added empty() method to common features2d classes; fixed #831
This commit is contained in:
@@ -771,6 +771,10 @@ void FernClassifier::clear()
|
||||
vector<float>().swap(posteriors);
|
||||
}
|
||||
|
||||
bool FernClassifier::empty() const
|
||||
{
|
||||
return features.empty();
|
||||
}
|
||||
|
||||
int FernClassifier::getLeaf(int fern, const Mat& _patch) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user