The average on the 1 inch square could be based on a random sample of pixels in the square. No need to check every pixel or load up the average calculation with every pixel in the square. But I'm not a programmer. Just trying to apply some common sense to this insanity.