1. A method for detecting a border in a medical image, the method comprising: (a) determining a gradient direction for each of a plurality of locations in the medical image; (b) identifying potential border pixels; (c) determining a set of potential borders as a function of connecting locations of the potential border pixels; and (d) detecting the border, the detecting being a function of the gradient direction and the set of potential borders.