Texture segmentation with neural networks