1. A method for representing a shape of an object represented by a set of points, wherein the set of points include points inside, outside and a boundary of the shape, the method comprising the steps of learning a decision function from the set of points; selecting feature points in the set of points using the decision function; and determining a local descriptor for each feature point, wherein the steps are performed in a processor.