1. A method for evaluating a feature, comprising: receiving an image of the feature; determining respective coordinates of a plurality of points on an edge of the feature in the image; fitting a figure having a non-circular non-linear shape to the plurality of points; determining respective distances between the plurality of points and the figure; and computing a roughness parameter for the feature in response to the respective distances.