Document thresholding is an important step in intelligent document analysis. For hand-written documents an interesting cue is the width of pen strokes that more or less remain constant. We utilized this shape characteristic to recursively subdivide an image and apply separate intensity threshold in each subdivision.
We apply variational optimization principle to compute a threshold surface for an image. The threshold surface passes through image edges.