For such a popular and old algorithm, I've had surprisingly little luck finding implementations. I've got it working in MATLAB, but am curious if any other languages have libraries containing it (python?). I've googled extensively to no avail.

  • $\begingroup$ can you translate the MATLAB code into C/C++? $\endgroup$ Jun 7, 2017 at 19:05
  • $\begingroup$ These things seem to be secrets lol you will not find any library, I wrote it in C, python and matlab some years ago $\endgroup$
    – ederwander
    Aug 7, 2017 at 23:18
  • $\begingroup$ Could you share your matlab implementation? $\endgroup$ Jun 18, 2018 at 12:34

1 Answer 1


When I'm looking for source code, I generally search the open repositories rather than Google.

Try this one in C++.

However, there don't seem to be many on github, and sourceforge has nothing of interest.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.