Speed
Given:  image of k2 pixels
Output:  image of n2 pixels
how many window comparisons does this algorithm require?