
Binary thresholding over Image using fixed, Otsu, adaptive-mean, adaptive-Gaussian, or triangle methods. Converts input to greyscale and emits either a single-channel Image foreground mask or, when consumed by a mask-typed downstream, a boolean Mask.
Document scan cleanup for OCR.
Background mask with morphology cleanup.
method values fall back silently to otsu.value only applies when method is fixed; otsu and triangle compute the cutoff themselves.block_size is clamped to a minimum of 3 and silently rounded up to the next odd value; ignored by non-adaptive methods.C is subtracted from the local mean in adaptive methods; positive values raise the threshold (shrink foreground), negative do the opposite; ignored by non-adaptive methods.Image is returned unchanged.Automated release