A New Binary Representation Method for Shape Convexity and Application to Image Segmentation