1. A method for tracking an object from a training image to a target image, wherein the training image and the target image are elements of a sequence of images, wherein the object in the training image is represented by an object state, comprising a processor for performing steps of the method, comprising the steps of: acquiring a set of particles, wherein each particle is associated with a weight, such that the particle represents the object state with a probability equal to the weight, wherein the weight is an element in a set of weights, such that each particle in the set of particle is associated with a corresponding weight; applying, using the processor, a regression function to each particle in the set of particles based on a target image to determine a set of moved particles; updating the set of weights according to the set of moved particles, and updating the object state according to the set of moved particles, such that the object state represents the object in the target image.