On the performance of a contour coding algorithm in the context of image coding part I: Contour segment coding