LOADFROMFILE load svm classifier from binary file Inputs: cl: dummy svm classifier object (SVMClassifier) fileName : name of the binary Outputs: tcl: trained SVM classifier
0001 function [ tcl ] = loadFromFile( cl, fileName ) 0002 %LOADFROMFILE load svm classifier from binary file 0003 % 0004 % Inputs: 0005 % cl: dummy svm classifier object (SVMClassifier) 0006 % fileName : name of the binary 0007 % 0008 % Outputs: 0009 % tcl: trained SVM classifier 0010 0011 fid = fopen(fileName,'r'); 0012 tcl = loadFromFid( SVMClassifier, fid ); 0013 fclose(fid); 0014 0015 end 0016