In the running of other people's thesis code, often encounter MATLAB and C + + mixed programming shadow.
Here's an introduction to mixed-programming posts.
Original post address: http://blog.csdn.net/zouxy09/article/details/20553007
===============================================
matlab and C + + mixed programming (dependent OPENCV)
Zouxy09@qq.com
Http://blog.csdn.net/zouxy09
Before running the code of someone else's paper, often have encountered Matlab and C + + mixed programming shadow. In fact, through the MATLAB Mex tool to compile C + + code into the MATLAB support invoke the executable file and function interface. This can be used in MATLAB to use the function has been written, although this function is written in C + +. Realize the Exchange without Borders, no Jiangshan unified who, only Shihai heroism. On the other hand, take the director of C + + to supplement their own short. MATLAB is good at matrix operation, but the efficiency of circular operation is less efficient than C + +, such as the creation of Hilbert matrix. So for the operation with a large cycle, you can use C + + power to complete.
See its charm, has always wanted to learn, but unfortunately the opportunity is not right. But the fate of yesterday is here. I need to use a paper to give the code, but its code is C + +, and also relies on the OpenCV library, based on the Linux platform. This and the laboratory for me to set out the platform is very different, we are to be unified based on Windows + MATLAB to achieve, so that the work of all the students in the group to unify. So there is no way, we have to compile the original author's code into a MATLAB-supported executable file.