[Insight-users] Itk-matlab link : Bessel functions from CERN
Luis Ibanez
luis.ibanez at kitware.com
Wed Mar 2 20:34:08 EST 2005
Hi Olivier,
Yes, you can call Matlab functions from C/C++ programs.
This is not really an ITK issue, but rather a Matlab issue,
since as far as ITK is concerned, Matlab function are just
another library that you are linking against.
Please look at the Mathworks web site for instructions on how
to call Matlab from C:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/ch03crea.html#calling_from_matlab
Note that if the only thing that you need from Matlab is to
use the Bessel functions,... this link may be an overkill.
You may find simpler solutions by using C++ implementations
of the Bessel functions, for example: ROOT from CERN
http://root.cern.ch/
They use a BSD-Like license:
http://root.cern.ch/root/License.html
For the Bessel function, look at:
http://root.cern.ch/root/htmldoc/src/TMath.cxx.html
I don't see them running nightly Dashboards,...
but I guess we can consider CERN to be a trustworthy site :-)
The also have a decent platform coverage
http://root.cern.ch/root/Porting.html
Note that their implementation of Bessel functions is quite
straightforward. You can pretty much copy/paste code from their
file. Note also that their license require you to add their
Copyright notice to your file when you copy code from their files.
Regards,
Luis
-----------------------
olivier Bernard wrote:
> Hi everybody,
> Is there any way to use some predefined matlab functions inside an ITK
> code ? (in my case bessel function)
> Thanks
> olivier
>
More information about the Insight-users
mailing list