1. A method for finding an object in a query image, comprising: finding features in the query image; grouping three of the features into a feature triplet; computing an affine transformation using neighboring feature positions to warp the feature triplet into a geometric shape in canonical space; and matching each of the features in the feature triplet with training images to identify the object.