5 ms·
Translating MATLAB -> C isn't too bad and could be done without any domain knowledge. Just remember the pesky 1 start for MATLAB arrays... Having a quick glance
by SammoJ 15y ago
Translating MATLAB -> C isn't too bad and could be done without any domain knowledge. Just remember the pesky 1 start for MATLAB arrays... Having a quick glance through the code I haven't seen any major reliance on MATLAB built-ins. Also "most of the tracking code is in MATLAB" is false. The tracking builds upon the Lucas-Kanade tracker in lk.cpp which uses OpenCVs implementation. I'd estimate a couple of full days of work tops to re-write in C.
Qualifications: I have had to speed up (i.e. rewrite in C) a lot of complex MATLAB code.
- newhouseb 15y agoThe fun part is converting all the Matlab functions that call LAPACK/BLAS into direct bindings to said libraries. That stuff is so dense (although I guess if you're used to it, it's not so bad).
- icandoitbetter 15y agoIs anyone seriously considering porting this to C? I'm thinking of doing this myself, as I'm really interested in applying the algorithm, but I don't have a lot of experience in this kind of thing.
- liuliu 15y agoI am thinking of porting his code to ccv (http://github.com/liuliu/ccv http://github.com/liuliu/ccv). Unfortunately, his code is released under GPLv2, and ccv is BSD licensed. I have sent email to him in order to obtain further permission.
- windsurfer 15y agoCould you release a GPLv2 CCV library for the time being?
- maak 15y agoI'm also looking into porting it (probably to c++)