Adaptive square and local otsu (naive) threshold operations
Minor changes: code simplification/removal