在其他元素后面订购2d/3d对象 [英] Ordering 2d/3d object behind other element
问题描述
您可以在链接中看到,我有两个要素:首先是 image 元素,该元素是从相机(使用EmguCV)获取的,另一个是 viewport3d ,用于渲染3d对象.我还包括2d对象(请参见矩形).
As you can see in the link, I have two elements: first is image element which is taken from camera (using EmguCV) and the other one is viewport3d which renders 3d object. I also include 2d object (see the rectangle).
运行程序时,我看到此.
是的,对象(手)将在图像前面排序.
Yes indeed, the object (hand) will be ordered in front of the image.
问题是如何在手形对象后面订购2d/3d对象?是否可以使用单摄像头做到这一点?就像这一个.
The question is how to order 2d/3d object behind the hand object? Is it possible to do it using single camera? Just like this one.
预先感谢您的回答.
推荐答案
有两种方法.
- 使用kinect深度图找到手距相机的距离.
- 进行图像处理以检测手及其距离.
我认为将WPF UI与相机图像直接融合将非常困难. 试试RenderTargetBitmap http://msdn.microsoft.com/en -us/library/system.windows.media.imaging.rendertargetbitmap.aspx
I think it will be difficult to directly blend WPF UI with camera image. Try RenderTargetBitmap http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.rendertargetbitmap.aspx
这篇关于在其他元素后面订购2d/3d对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!