1 ) A method for tracking motion in a medical imaging system; comprising: creating a collection of at least one landmark; and tracking motion using a cost function of two or more variables, the cost function defined over members of the collection, the cost function subject to at least two constraints.