The invention discloses an image stabilizing method capable of accurate detection of complex jittering in a
video sequence. According to the method, first of all,
pyramid decomposition is carried out on an image, through performing sampling on an original 0-th layer in an interlacing inter-row and inter-column mode after
smoothing, a high layer with quite
low resolution is obtained, then from the top layer,
affine motion parameters between corresponding
layers of two frames of images are calculated, afterwards, the calculated
affine motion parameters are transmitted to a layer with quite
high resolution, parameter iteration is performed, and accurate
affine motion parameters can be solved through iteration calculation to the bottom of a
pyramid. According to the invention, a
good image stabilizing effect can be obtained through performing compensation on a jittering video according to the solved accurate affine motion parameters. Experiments show that an
optical flow algorithm combining a
pyramid multi-resolution layered technology solves the problem of quite large errors caused by
motion estimation by use of a conventional gradient
optical flow method under the condition of discontinuous motion between video sequences, and the method can obtain the
good image stabilizing effect for the motion sequences comprising such complex motion as rotation, zooming, translation and the like.