1. A method of transforming an image represented by an array of pixels having intensity values into a plurality of line signatures, the method comprising: deriving line segments from the intensity values of the pixels; designating a reference point for each of the plurality of line signatures; identifying a group of line segments from the derived line segments that are closest to the reference point; and generating the plurality of line signatures based on the identified group of line segments.