1. A method comprising: receiving at least one pixel value; determining an interpolated pixel value based on the at least one pixel value; determining a range of allowed pixel values, the determining a range of allowed pixel values comprising: determining a range of allowed pixel values based on pixels adjacent to the interpolated pixel and wherein the pixels adjacent to the interpolated pixel include a first pixel group comprising at least two pixels that are adjacent to the interpolated pixel and a third pixel that is immediately adjacent to one of the two pixels and a second pixel group comprising at least two pixels that are adjacent to the interpolated pixel and a third pixel that is immediately adjacent to another of the two pixels; determining a first range that comprises a difference between maximum and minimum pixel values for pixels in the first pixel group; determining a second range that comprises a difference between maximum and minimum pixel values for pixels in the second pixel group, wherein the range of allowed pixel values is between (i) a maximum pixel value of the two pixels plus the lesser of the first and second ranges and (ii) a minimum pixel value of the two pixels less the lesser of the first and second ranges; and limiting any pixel value of the at least one pixel value and the interpolated pixel to within the range.