I have a class that trains and tests a NormalBayesClassifier based on the Bag of Words from OpenCV. Now I want to compare it with a SVM multi-class classifier based on the same BOW. My idea is not to rewrite the same class and change only the classifier to SVM instead of NormalBayes. The OpenCV classifiers do not have an interface that will help me in this purpose, so I have thought of creating one, myself. But how to do this?I have a class that trains and tests a NormalBa