1. A method for transforming a matrix representation of pixels of an image into a vector representation of the image comprising: partition of the image into contiguous homogeneous regions by applying a watershed type morphologic algorithm to the matrix representation of pixels; and identification of the contours of the contiguous homogeneous regions by applying a vector code contouring algorithm of the chain-code type to every region.