Beyond pixels: A comprehensive survey from bottom-up to semantic image segmentation and cosegmentation