A structured approach to interactive segmentation