Templatizing the findWeightedCentroids function by the data type in the image.
Using min/max of the centroid's points for the x,y axis of the image to scan only the section known to have data we're interested in.
Passing arguments by constant reference as opposed to just const (which copies them).
Making MatDict typedef safe

STL maps can be dangerous when the keys are pointers. Pointer to string is not what was intended here, so we're changing to std::string. Also modifying this to be an unordered_map as we don't actually care about the order.
Freeing SVM model properly

Freeing the SVM model to prevent leaking it.
Fixing some memory leaks
Fixing Memory Leaks

Fixing Memory leaks in Classifier
Merge pull request #1 from jmlvanre/master

MatrixOperations Weighted Centroid optimization