Nonlocal video denoising, simplification and inpainting using discrete regularization on graphs