Object recognition using a generalized robust invariant feature and Gestalt's law of proximity and similarity