Replace each pixel with corresponding statistic from the neighborhood of the specified width and height.