Apparatus and methods are described including, using a computer processor (28), automatically identifying whether a given pixel (111) within an image corresponds to a portion of an object. A set of concentric circles (132a-c) that are disposed around the pixel are sampled, and a first function is applied to each of the circles such that the circles are defined by a first set of rotationally invariant descriptors. A second function is applied to the set of circles to generate a second set of descriptors, each of which represents a difference between respective pairs of the circles. A third function is applied such that the second set of descriptors becomes rotationally invariant. The processor identifies whether the given pixel corresponds to the portion of the object, based upon the first and second sets of rotationally invariant descriptors. Other applications are also described.