Model-based learning of local image features for unsupervised texture segmentation