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