1. An endoscope system for taking images of an inside of an object, comprising: a camera operable to take images of the inside of the object in a living body, which is capable of motion; and an image generation unit operable to generate a panoramic image of the inside of the object by performing a video mosaicking process, a motion correction process, and an image modification process through energy minimization on the plurality of images obtained by said camera, said processes being intended for pasting the images, estimating camera motion, correcting previously definable motion in the living body and correcting previously indefinable internal deformation in the living body.