added empty() method to common features2d classes; fixed #831

This commit is contained in:
Maria Dimashova
2011-01-31 14:18:50 +00:00
parent fa446e7e35
commit 9b4c682623
7 changed files with 112 additions and 19 deletions

View File

@@ -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
{