A non-transitory computer readable storage medium having recorded thereon a depth estimation data generating program which is realized by a computer, the program comprising:
- calculating a composition ratio between images of a plurality of basic depth models respectively indicating depth values of a plurality of basic scene structures, by using statistics of at least some pixel values in a predetermined region in a screen of a non-3D image, so as to estimate a scene structure of the non-3D image to which depth information is neither included explicitly nor included implicitly like a stereo image;
- generating a basic depth model-composed image by composing the images of the plurality of basic depth models according to the composition ratio;
- detecting a high frequency component indicating an absolute value of a difference between values of predetermined pixels in an object signal, the object signal indicating object information about concavity and convexity of a pseudo 3D image, and the object signal being supplied from the non-3D image;
- generating a gain having a smaller value as a value of the high frequency component detected via the detecting of the high frequency component is higher;
- generating a compensated object signal wherein a level of the object signal is compensated for, by multiplying the object signal and the gain generated via the generating of the gain;
- and
- adding the compensated object signal to the basic depth model-composed image composed via the generating of the basic depth model-composed image to generate depth estimation data for generating an image having a different viewpoint from the non-3D image, the image constituting a pseudo 3D image with the non-3D image.