Affine invariant recognition of 2D occluded objects using geometric hashing and distance transformation