vigraImporthdf5RF.cpp   vigraImporthdf5RF.cpp 
skipping to change at line 46 skipping to change at line 46
#include <iostream> #include <iostream>
#include <set> #include <set>
#include <vigra/matlab.hxx> #include <vigra/matlab.hxx>
#define HasHDF5 #define HasHDF5
#include "random_forest_impex.hxx" #include "random_forest_impex.hxx"
#include <vigra/random_forest_hdf5_impex.hxx> #include <vigra/random_forest_hdf5_impex.hxx>
using namespace vigra; using namespace vigra;
using namespace matlab; using namespace matlab;
using namespace rf;
using namespace visitors;
void vigraMain(matlab::OutputArray outputs, matlab::InputArray inputs){ void vigraMain(matlab::OutputArray outputs, matlab::InputArray inputs){
/* INPUT */ /* INPUT */
if (inputs.size() != 1) if (inputs.size() != 1)
mexErrMsgTxt("One inputs required."); mexErrMsgTxt("One inputs required.");
// get RF object // get RF object
RandomForest<> rf; RandomForest<> rf;
std::string filename = inputs.getString(0, v_required()); std::string filename = inputs.getString(0, v_required());
std::string groupname = inputs.getString(1, v_default(std::string(""))); std::string groupname = inputs.getString(1, v_default(std::string("")));
skipping to change at line 81 skipping to change at line 83
/** MATLAB /** MATLAB
function rf = vigraImporthdf5RF( filename, groupname); function rf = vigraImporthdf5RF( filename, groupname);
Import a previously trained Random Forest from a hdf5 file Import a previously trained Random Forest from a hdf5 file
rf - MATLAB cell array representing the random forest classifier rf - MATLAB cell array representing the random forest classifier
filename - name of hdf5 file filename - name of hdf5 file
groupname - optional: name of group which shoud be used as the base groupname - optional: name of group which shoud be used as the base
path path
to compile on Linux: to compile on Linux:
-------------------- --------------------
mex vigraImporthdf5RF.cpp -I../../include -lhdf5 -lhdf5_hl mex vigraImporthdf5RF.cpp -I../../include -lhdf5 -lhdf5_hl
to compile on Windows: to compile on Windows:
---------------------- ----------------------
mex vigraImporthdf5RF.cpp -I../../include -I[HDF5PATH]/include -L[HDF5PAT H]/lib -lhdf5dll -lhdf5_hldll -D_HDF5USEDLL_ -DHDF5CPP_USEDLL mex vigraImporthdf5RF.cpp -I../../include -I[HDF5PATH]/include -L[HDF5PAT H]/lib -lhdf5dll -lhdf5_hldll -D_HDF5USEDLL_ -DHDF5CPP_USEDLL
hdf5 1.6.x or hdf5 1.8.x must be installed. hdf5 1.6.x or hdf5 1.8.x must be installed.
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/