Use integral images to compute mean and variance
Merge