Figure 4
From: Automatic prediction of age, gender, and nationality in offline handwriting

Computing tortuosity. Longest traversing segment for four different pixels (a). Length of maximum traversing segment: red corresponds to the maximum length, blue to the minimum one (b).