Hacker News new | ask | show | jobs
by SammoJ 5548 days 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.

2 comments

The 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).
Is 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.
I am thinking of porting his code to 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.
Could you release a GPLv2 CCV library for the time being?
I'm also looking into porting it (probably to c++)