Orientation invariance in shape representation