Implementations of background subtraction techniques and Poisson , Bayesian and Spectral matting for image segmentation