A method for generating a stereographic image comprising: a calculating step of calculating Z-values of pixels on the basis of image data of pixels, the pixels forming an image, each Z-value being assigned to a pixel, and each Z-value representing a depth of an object corresponding to the pixel; an adjusting step (S105 ∼ S109) of adjusting a Z-value of a target pixel obtained in said calculating step using a Z-value of a pixel other than the target pixel; and a generating step of determining an amount of displacement of a target pixel on the basis of an adjusted Z-value of the target pixel, and displacing the target pixel horizontally by the determined amount, to generate images for the right and the left eyes; characterized in that: in said calculating step, a Z-value of a target pixel is obtained by adding predetermined weights to color components of image data of the target pixel; and said adjusting step (S105 ∼ S110) improves the quality of said stereographic image by: smoothing, in which an average of Z-values of pixels within a predetermined region of the image which includes a target pixel is obtained and a Z-value of the target pixel is replaced by the obtained average; discretizing, in which the Z-values obtained in said smoothing are rounded by a step size of quantization determined based on a value of a parameter specified by a user; and range adjusting, in which the Z-values obtained in said discretizing are caused to fall within a range having an upper limit and/or a lower limit determined based on a value of a parameter specified by a user. a calculating step of calculating Z-values of pixels on the basis of image data of pixels, the pixels forming an image, each Z-value being assigned to a pixel, and each Z-value representing a depth of an object corresponding to the pixel; an adjusting step (S105 ∼ S109) of adjusting a Z-value of a target pixel obtained in said calculating step using a Z-value of a pixel other than the target pixel; and a generating step of determining an amount of displacement of a target pixel on the basis of an adjusted Z-value of the target pixel, and displacing the target pixel horizontally by the determined amount, to generate images for the right and the left eyes; characterized in that: in said calculating step, a Z-value of a target pixel is obtained by adding predetermined weights to color components of image data of the target pixel; and said adjusting step (S105 ∼ S110) improves the quality of said stereographic image by: smoothing, in which an average of Z-values of pixels within a predetermined region of the image which includes a target pixel is obtained and a Z-value of the target pixel is replaced by the obtained average; discretizing, in which the Z-values obtained in said smoothing are rounded by a step size of quantization determined based on a value of a parameter specified by a user; and range adjusting, in which the Z-values obtained in said discretizing are caused to fall within a range having an upper limit and/or a lower limit determined based on a value of a parameter specified by a user. in said calculating step, a Z-value of a target pixel is obtained by adding predetermined weights to color components of image data of the target pixel; and said adjusting step (S105 ∼ S110) improves the quality of said stereographic image by: smoothing, in which an average of Z-values of pixels within a predetermined region of the image which includes a target pixel is obtained and a Z-value of the target pixel is replaced by the obtained average; discretizing, in which the Z-values obtained in said smoothing are rounded by a step size of quantization determined based on a value of a parameter specified by a user; and range adjusting, in which the Z-values obtained in said discretizing are caused to fall within a range having an upper limit and/or a lower limit determined based on a value of a parameter specified by a user. smoothing, in which an average of Z-values of pixels within a predetermined region of the image which includes a target pixel is obtained and a Z-value of the target pixel is replaced by the obtained average; discretizing, in which the Z-values obtained in said smoothing are rounded by a step size of quantization determined based on a value of a parameter specified by a user; and range adjusting, in which the Z-values obtained in said discretizing are caused to fall within a range having an upper limit and/or a lower limit determined based on a value of a parameter specified by a user.