First naive but correct implementation of the local Otsu
Java implementation of Otsu for performance comparisons