Salient object detection: from pixels to segments