On Wed, Nov 4, 2015 at 5:14 PM, Rivo Sarmento <[email protected]> wrote:
> I need to use a C library, a implementation of the Scale Invariant Feature
> Transform (SIFT)[1], in Julia. I don't think rewriting is an efficient
> effort, so I'm going to use their code.
>
> My question is: Is it better to use the executables (available after
> compiling their code) or is it better to write a C file with the library
> headers and use the functions in Julia through it?
>

If it's a C library, you should be able to simple call C functions in
it with `ccall` without any C glue code. If it's a C++ library, you
can either use some glue code or if like experimental code, use
Cxx.jl.
Calling external executables is usually the worst option.

>
> Reference:
> [1] http://www.ipol.im/pub/art/2014/82/

Reply via email to