Figure 2From: Automatic prediction of age, gender, and nationality in offline handwritingComputing local directions. The predefined order for traversing shapes (a). Example of an ordered shape (b). Estimating directions by computing linear regression of neighbors of the three pixels in bold (c). Binary image and its corresponding Zhang skeleton (d); the red color corresponds to a π/2 tangent, and the blue color corresponds to a zero tangent.Back to article page