A method for point-of-interest attraction towards an object pixel in a
digital image by first performing object segmentation resulting in a
contour-based or a region-based representation of object pixels and
background pixels of the image. Secondly a vector distance transform
image is computed comprising a vector displacement of each background
pixel towards the nearest of said object pixels and the nearest object
pixel for a given background pixel is determined by adding the vector
displacement to said background pixel. Finally the point-of-interest is
attracted towards the determined nearest object pixel.