A control algorithm for knowledge-based texture image segmentation