Text this: Incorporating local statistics in image error measurement for adaptive image restoration.