Segmentation as a Preprocessing Tool for Automatic Grapevine Classification