Patent ID: 8462218

Claim:
A computer-implemented method for stabilizing image frames in an input video data stream comprising: a. using a computer, dividing the image frames of the input video stream into at least two regions, each region situated at a given vertical and horizontal position in each image frame in the input video data stream, wherein the given vertical and horizontal position for any region does not change for any image frame of the input video stream; b. using the computer, calculating a centroid of each region of a given image frame of the input video data stream, the centroid consisting of a weighted average of a value associated with each pixel of the region as a function of the pixel's position in the region; and c. using the computer, transforming the given image frame so that the centroids of the regions of the given image frame and the centroids of the corresponding regions of a reference image frame approximately coincide, wherein the value associated with each pixel is one of a hue, an intensity or another quality of the image and the weighted average of a value associated with each pixel is defined as: X ⁢ ⁢ centroid = Sum ⁢ ⁢ ( ColumnNumberOfPixel * ValueOfPixel ) Sum ⁢ ⁢ ( ValueOfPixel ) Y ⁢ ⁢ centroid = Sum ⁢ ⁢ ( RowNumberOfPixel * ValueOfPixel ) Sum ⁢ ⁢ ( ValueOfPixel ) .