bool AdaBoost::addWeakClassifier(const WeakClassifier &weakClassifer){ WeakClassifier *weakClassiferPtr = weakClassifer.createNewInstance(); weakClassifiers.push_back( weakClassiferPtr ); return true; }
bool AdaBoost::setWeakClassifier(const WeakClassifier &weakClassifer){ //Clear any previous weak classifers clearWeakClassifiers(); WeakClassifier *weakClassiferPtr = weakClassifer.createNewInstance(); weakClassifiers.push_back( weakClassiferPtr ); return true; }