Hi all,
I am making the mask for background subtraction for depth data. i performed following thing to get the mask. 1) Apply the range on depth data. 2) Convert the image into the binary 3) Apply erosion and dilation operation on the mask. 4) Search the maximum contour.
Still, I am getting some noise of the floor(refer output image). It will be great , if you suggest the way. I have attached input and output images.
1) Input
2) Output image.