Texture analysis for textile fault detection