Re: Using openCV in IDL [message #87396 is a reply to message #87387] |
Thu, 30 January 2014 14:27   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Thursday, January 30, 2014 8:48:13 AM UTC-7, grace....@gmail.com wrote:
> Hi Everyone,
>
>
>
> I am a graduate student and my supervisor has asked me to find a way to use some of the openCV libraries in IDL. I am (relatively) new to IDL and I don't know where to begin. I was wondering if there was someone who had already solved this problem or can help me to solve it.
>
>
>
> Thank you in advance!
>
>
>
> Grace
Hi Grace,
I don't know if anyone has tried to use OpenCV within IDL. But, since it has a C interface, it should be "relatively" straightforward to write some C-code wrappers for IDL, and bundle them up into a DLM (dynamically loadable module). I would suggest looking at the CALL_EXTERNAL and MAKE_DLL routines in IDL. If you're really lucky, you might be able to use the AUTO_GLUE keyword to CALL_EXTERNAL, and then you wouldn't even need to write the wrappers. It depends upon how complex the API is for OpenCV.
Reference guide for call_external and make_dll:
http://www.exelisvis.com/docs/CALL_EXTERNAL.html
http://www.exelisvis.com/docs/MAKE_DLL.html
IDL External Development Guide (hopefully you won't need this!):
http://www.exelisvis.com/docs/EDG.html
Hope this helps.
Cheers,
Chris
ExelisVIS
|
|
|