What does BOWTrainer::clear() exactly do?
I have seen a problem in my application of trying to find the best classifier on a db: I create the BOWTrainer
before the loop where I train the classifier, so I was always adding the new set of descriptors. I am not sure what BOWTrainer::clear()
does: it just clears the descriptors set, or it deletes the whole object, so I need to declare another one?
In fact how is better to do: to declare the BOWTrainer
object in the loop (so every iteration), or just call its clear()
function inside the loop?