RGB值和深度值的问题 [英] Problems with RGB values and Depth values

查看:123
本文介绍了RGB值和深度值的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在读取RGB值和深度值时遇到问题。我开发了一个代码,使我能够指向颜色框中的特定位置并获取RGB和深度值。我正在使用三块巨大的乐高(颜色:红色,蓝色和绿色)砖块,距离为
。我发现,如果我用鼠标指向红砖,则R G B值会大幅波动,有时会返回错误的RGB值。

I am having problems reading RGB values and Depth values. I have developed a code that enables me to point to a particular location in the color frame and get RGB and depth values. I am using three huge lego (of colors: Red, Blue and Green) bricks set at a distance. I discover that if I am pointing to the Red brick with my mouse, the R G B values fluctuate greatly and sometimes return wrong RGB values.

深度值也是如此。在红砖上的一个点上,它将返回我期望的值(使用来自仪表规则的读数),但是在同一个对象和稍微不同的位置时,它会突然返回一个非常大的错误值。
我使用C#和代码:  https://github.com/Vangos/kinect-2-coordinate-mapping作为起点。 

The same goes for the depth value. At a point on the red brick, it will return the value I am expecting (using readings from a meter rule) but while on the same object and at a slightly different location, it suddenly returns a very large erroneous value. I am using C# and the code at: https://github.com/Vangos/kinect-2-coordinate-mapping as a starting point. 

请帮忙。谢谢。 

Please help. Thanks. 

推荐答案

与任何相机信号一样,会有一些轻微的变化,但平均而言它看起来一样。通常,在较低级别的GB中混合的红色成分上的红色像素为100-255。对于深度,你会看到一些抖动只是因为噪音。你可以通过添加一些过滤或查看周围像素的平均值来补偿它。

As with any camera signal there is going to be some slight variations but on average it looks the same. Generally red pixels will be 100-255 on the red component mixed in lower levels of GB. For depth, you will see some jitter just because of noise. You can compensate for that by adding some filtering or look at an average of the pixels around it.

这篇关于RGB值和深度值的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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