Geometric and texture inpainting based on discrete regularization on graphs