A method of identifying an elongate medical device in a two-dimensional
image of an operating region includes filtering pixels meeting a
predetermined intensity requirement for linear scaling, dividing the
filtered pixels into groups of contiguous pixels, and selecting from the
groups a group corresponding to the medical device.