1. A method to reduce visual artifacts, the method comprising: providing, by a computer, a first image with a first dynamic range; predicting, by a computer, using a predictor and the first image, a second image with a second dynamic range, wherein the second dynamic range is higher than the first dynamic range; calculating, by a computer, parameters for a debanding filter based on the predictor; and applying, by a computer, the debanding filter to the second image to generate an output image with the second dynamic range.