简体   繁体   English

c#使用Kinect V2删除背景时平滑边缘

[英]c# Smoothing edges while removing background with Kinect V2

I am working on removing the background and leaving only the bodies with Kinect V2 and c#/WPF in real time. 我正在努力去除背景,只留下带有Kinect V2和c#/ WPF的实体。 Removing the background works fine, but the edges of the bodies are very rough with Jaggies on the edges. 删除背景工作正常,但身体的边缘是非常粗糙的边缘Jaggies

I need to smooth the edges in real-time (30 frames per second). 我需要实时平滑边缘(每秒30帧)。 I would appreciate any advice on that. 我很感激任何建议。

I am able to select the edges (similar to Photoshop's magic wand). 我能够选择边缘(类似于Photoshop的魔杖)。 I tried to use something like Gaussian blur, but it seems to be too slow for a real-time application. 我尝试使用像高斯模糊这样的东西,但对于实时应用来说似乎太慢了。 Probably I am missing something because it seems to be a standard problem for many applications like games etc. Thank you! 可能我错过了一些东西,因为它似乎是游戏等许多应用程序的标准问题。谢谢!

You probably need to look into implementations of depth image enhancements or smoothing that fill holes around the edges of the silhouettes. 您可能需要研究深度图像增强的实现或平滑填充轮廓边缘周围的孔。 For starters; 对于初学者; maybe you can look into Kinect Depth Smoothing .This should work in real time since its just based on calculating modes. 也许你可以看看Kinect深度平滑 。这应该是实时工作,因为它只是基于计算模式。 For more accurate implementation, there are research papers that address the same issue such as the ones below: 为了更准确地实施,有一些研究论文解决了同样的问题,如下所示:

[a] Chen, L., Lin, H.., Li, S., “Depth image enhancement for Kinect using region growing and bilateral filter,” Pattern Recognition (ICPR), 2012 21st International Conference on, 3070–3073 (2012). [a] Chen,L.,Lin,H ..,Li,S。,“使用区域生长和双边滤波器的Kinect的深度图像增强”,模式识别(ICPR),2012年第21届国际会议,3070-3073(2012 )。

[b] Le, AV, Jung, S.-W.., Won, CS, “Directional joint bilateral filter for depth images,” Sensors 14(7), 11362–11378, Multidisciplinary Digital Publishing Institute (2014). [b] Le,AV,Jung,S.-W ..,Won,CS,“用于深度图像的定向联合双边滤波器”,Sensors 14(7),11362-11378,Multidisciplinary Digital Publishing Institute(2014)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM