1. A template for use in automated optical inspection of an object, the template comprising: information defining at least one inspection feature in a manner that is invariant to at least one type of transformation occurring in a captured image of said object.