1. A method for stabilizing an image in a video data stream comprising: a. calculating a centroid of the image, the centroid consisting of a weighted average of a value associated with each pixel as a function of the pixel's position in the image for at least a portion of the image; and b. translating the image such that the centroid of the image and the centroid of the same portion of a reference image approximately coincide.