1. A method to index pixel data, comprising: receiving pixel data from an electronic image; identifying connected pixel data as a plurality of segments; acquiring keys for a number of the plurality of segments; and extracting one or more invariant features for the number of the plurality of segments.