Homogeneity: The pixels under a stroke candidate sc within M should have a large homogeneity h(sc) or a small color variance, respectively, to be represented effectively by a single color. This automatically selects strokes perpendicular to the image gradient since in this direction there is a higher probability of having small color variances. Stroke directions of many painting styles are set according to this rule.