automatic segmentation and control