Average value of a pixel window

Given a raster and a sampling factor s, the function returns a new
raster of pixel size equal to InputCellSize x s. The new raster contains
the average values of the pixel window s x s of the input raster.