Patent attributes
The present invention has an object to reduce occurrence of a state where a frame image with no visible subject has been generated during generation of a moving image with reduced variation in imaging trajectory. A camera trajectory estimating unit estimates an imaging trajectory during taking of a first moving image, from the first moving image. A camera trajectory correcting unit corrects a trajectory variation in the estimated imaging trajectory. An output image generating unit generates a second moving image corresponding to the corrected imaging trajectory, from the first moving image. Here, the camera trajectory correcting unit sets at least one reference point from the first moving image, and corrects the imaging trajectory so as to cause the reference point in frame images constituting the second moving image to have a position residing within a predetermined range in the frame image.