Text this: On the definition and recognition of planar shapes in digital images