Image shrinking
For simplicity, derive everything in 1D; shrinking
of a two dimensional image is done in two steps: first in x direction, then in y direction.
Problem: after shrinking have too few pixels to
represent all pixels of the original.
Solution: do local averaging; similar to the continuous case, but instead of integration do summation.