AdaptiveIntegralThresholding Adaptive Thresholding Using the Integral Image Based on https://github.com/rmtheis/bradley-adaptive-thresholding Converted to opencv 3 It gives better result then opencv cv::adaptiveThreshold