Learning and recognition of textured objects