Itseez/opencv — pull request #669 by vpisarev (2013-03-19 14:42:19+00:00)
Title: dramatic speedup of SVM::predict in the case of linear SVM

the added method reduces all the support vectors to one in the case of linear SVM. It's called after SVM is trained or loaded. Repeated call of the method should not do any harm.