Everything begins with "compile_CPPsMAC.m" ==========================1================================ If you are using MAC please note that you need to set proper path to opencv library (**.dylib). If you are using PC please note that you need to set proper path to opencv library (**.lib) and you also put corresponding opencv **.dll in the same directory. ==========================2================================ Open "MatlabToOpenCV.h" comment line3 if you use PC. ==========================3================================ Compile the C++ source by run "compile_CPPsMAC.m". ==========================4================================ You might want to change some non-compatible C function between MAC and PC according to the error message. ==========================5================================= IF compile succeed after 4, then you should be able to run the algorithm. you should be able to run DEMO1.m