comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Using openCV in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Using openCV in IDL [message #87387] Thu, 30 January 2014 07:48 Go to next message
grace.couchm is currently offline  grace.couchm
Messages: 1
Registered: January 2014
Junior Member
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
Re: Using openCV in IDL [message #87396 is a reply to message #87387] Thu, 30 January 2014 14:27 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  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
Re: Using openCV in IDL [message #87413 is a reply to message #87387] Fri, 31 January 2014 17:53 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Thursday, January 30, 2014 10:48:13 AM UTC-5, 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've written minimal wrappers around the highgui routines for video acquisition under linux and macos. They let me grab images from any OpenCV-supported camera directly into IDL. Even if this isn't exactly what you're planning to do, the code might be a starting point for your project. If so, let me know and I'll send a tar-ball.

AUTO_GLUE didn't work for me because OpenCV programs pass around nontrivial data structures.

All the best,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 2D Pearson correlation coefficient
Next Topic: How to convert RGB image into a binary image ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:56:29 PDT 2025

Total time taken to generate the page: 0.00703 seconds