I'm In desperate need of some guidance (Now) :-)
Intro:
I'm trying to get Video feeds from a Point Grey Camera into OPEN_CV for displaying and manipulation (just simple overlays)
Problem:
I have been working on this for days now and I'm struggling big time
Most if not all samples are in C and use Pointers because most conversion of the image are done on the original data -- VB with Pointers = super :-(
Question:
How can I get a Pointer In VB to a managed Data structure/Array ?
- The Point Gary
Managed DLL holds the Image but somehow doesn't give me a way of pulling the Pointer directly trough the managed code (You would think that's the easiest way but there is probably a reason I don't understand why this is not done ..) ??
Anyway: How can I get the pointer to a data structure (array) that is held in managed code ?? Is the only way to get the pointer going trough the managed code or is there a way for VB to grab the data entry point trough reflection/Marshal/GCHandle ??
Again ... I'm totally lost & I'm really surprised that I'm the only one with this problem in VB (Lot's of forums/samples about converting images to OPEN_CV(using Emgu) in C) nothing that's working in VB ....
It's also interesting to note that on the Emgu CV VB forum there are lots of unanswered questions and hardly any replies ????
Maybe I need to look for something else then Open CV ?
http://www.emgu.com/forum/viewforum.php?f=9&start=75
Any advise would be greatly appropriated
Georg
What I have tried:
Below is not working as _Image (managed Image PontGrey DLL) does not support
[LockBits] or [Scan0]
it does work on my own Images ...
_image = Bitmap.LockBits(rect, _
Drawing.Imaging.ImageLockMode.ReadWrite, Bitmap.PixelFormat)
Dim bmp_IntPtr As IntPtr = _image.Scan0