摘要 |
There is provided methods, apparatuses and computer program products for image segmentation in which pixel data of an image and information of a first set of pixels of the image indicative of pixels belonging to a foreground of the image are obtained. A colour model of the image is estimated. To obtain a geodesic distance map at least one geodesic distance from a pixel of the first set of pixel to another pixel of the image which is not in the first set of pixels is determined. An energy function is optimized on the basis of the geodesic distance map to obtain a segmentation of the image. |