A weighted discriminative approach for image denoising with overcomplete representations