A pixel processing system receives a target pixel value and neighbor pixel
values. The neighbor pixel values may correspond to eight neighbor pixels
that surround a target pixel corresponding to the target pixel value. The
pixel processing system determines a minimum value and a maximum value
among the neighbor pixel values. If the target pixel value is less than
the minimum value, then the pixel processing system increases the target
pixel value. If the target pixel value is greater than the maximum value,
then the pixel processing system reduces the target pixel value. In
response to increasing the target pixel value, the pixel processing system
may reduce the neighbor pixel values to maintain an average value. In
response to reducing the target pixel value, the pixel processing system
may increase the neighbor pixel values to maintain an average value.