1. A method for determining a first location of a first medical device in imaging, the method comprising: obtaining a plurality of first candidate locations of a first medical device for each of a plurality of frames of medical data representing a patient; obtaining a plurality of second candidate locations of a second medical device for each of the plurality of the frames of the medical data; identifying, with a processor, the first location of the first medical device in each of the frames, the first location identified from the first candidate locations for the respective frame, the identifying being iterative as a function of a probability function, the probability function being a function of the first and second candidate locations and distances between the first and second candidate locations; and outputting an indication of the first location for at least one of the frames.