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 frame of a plurality of frames of medical data representing a patient, wherein at least one first candidate location of the plurality of first candidate locations does not represent the first medical device; obtaining a plurality of second candidate locations of a second medical device for each frame of the plurality of the frames of the medical data; selecting, with a processor, the first location of the first medical device in each frame of the plurality of frames from the plurality of first candidate locations for the respective frame, the selecting being iterative as a function of a probability function, the probability function being a function of the plurality of first candidate locations and the plurality of second candidate locations and distances between the plurality of first candidate location and the plurality of second candidate locations; and outputting an indication of the first location for at least one frame of the plurality of frames.