I have researched all over in order to find a kernel that performs adaptive thresholding on iOS. Unfortunately I do not understand the kernel language or the logic behind it. Be
You can use CIColorThresholdOtsu core image filter
CIColorThresholdOtsu