POINT GREY- OPEN_CV - 在VB中获取数据指针 [英] POINT GREY- OPEN_CV - GETTING POINTER to DATA in VB

查看:154
本文介绍了POINT GREY- OPEN_CV - 在VB中获取数据指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我迫切需要一些指导(现在):-)

简介:



我想要得到视频从Point Grey Camera输入到OPEN_CV进行显示和操作(只需简单的叠加)

问题:



我一直在努力好几天了,我正在努力工作

大多数情况下,如果不是所有的样本都在C中并且使用指针,因为图像的大多数转换都是在原始数据上完成的 - VB用指针=超级: - (



问题:

如何在VB中将指针变为托管数据结构/数组?

- Point Gary 托管DLL 保存图像,但不知何故没有给我一种方法直接通过托管代码拉指针(你会认为这是最简单的方法,但可能有一个原因我不明白为什么不这样做..)??



无论如何:我如何获得指向托管数据结构(数组)的指针代码? ?是通过托管代码获取指针的唯一方法,还是VB通过反射/ Marshal / GCHandle获取数据入口点?



再次......我完全失去了&我真的很惊讶我是唯一一个在VB中遇到这个问题的人(Lot的论坛/样本关于将图像转换为OPEN_CV(使用Emgu)在C中)没有什么在VB中工作....



有趣的是,在Emgu CV VB论坛上有很多未回答的问题,几乎没有任何回复????



也许我需要寻找其他东西然后打开简历?

http://www.emgu.com/forum/viewforum.php?f=9&start=75



任何建议都会很大拨款

Georg



我尝试过:



以下不起作用_Image(托管的Image PontGrey DLL)不支持

[LockBits]或[Scan0]

它对我自己的图像有效。 ..



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

推荐答案

似乎没有人知道如何做到这一点..无论如何



我目前正在做的是创建一个RAM磁盘,然后使用内置的Save - Read命令来获取图像的句柄

(如果我正确理解它,使用Read File命令时OpenCv实际上会返回图像的Mat句柄)...

这个似乎运行得很好



这让我现在继续前进..一旦我有时间或遇到麻烦我将重新审视flycaptured和Emgu OpenCv之间的图像



Georg
Nobody seems to know how to do this .. anyway

What I'm currently doing is creating a RAM disk and then use the built in Save - Read commands to get a handle to the Image
(If i understand it correctly OpenCv when using the Read File command will actually return a Mat handle to the image) ...
This seems to be running just fine for the moment

This let's me move forward for now .. once I have time or run into trouble with this I'll revisit this hand over of the image between flycaptured and Emgu OpenCv

Georg


这篇关于POINT GREY- OPEN_CV - 在VB中获取数据指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆