Depthimage mask stabilisation, denoising?


I started a thread a few days ago about masking an image with the depthimage from the kinect. Now I got the time to get back to this little project.

When I am using a small area for the masking, e.g. 90cm ± 2 cm, I get flicker on the border of the mask.

How can I stabilize these values, just change a value when it is greater than a certain value in the last frame.

best way of de-noising image is blur so far, you might also look on depth repair stuff…

ok, I found the KinectDepthFill. but it only blurs the depth image.

I am looking for something to change the z value when the new z value is greater then a definied value.