A Theory of Textural Segmentation