Adaptive Thresholding using the Integral Image | Synapse