Automatic Texture Type Detection