A non-transitory computer-readable recording medium containing executable program instructions that, when executed by a computer, cause the computer to execute:
- retina image creation processing through which a retina image is created based upon:
- target scene three-dimensional information related to a position, a shape and optical characteristics of a structural object in a virtual target scene,
- eyeglass lens three-dimensional information related to a position, a shape and optical characteristics of an eyeglass lens, and eyeball three-dimensional information related to a position, a shape and optical characteristics of an eye of a wearer viewing the virtual target scene through the eyeglass lens;
- corresponding points calculating processing through which corresponding points in retina images of two eyes are calculated based upon correlation coefficients (Dcorr) with respect to luminance values (fl(xi, yj)) at pixels in a first pixel region where a plurality of pixels are present, set in the retina image for one eye, and luminance values (fr(xi, yj)) at pixels in a second pixel region where a plurality of pixels are present, set in the retina image for another eye, the corresponding points corresponding to a position within the virtual target scene;
- binocular disparity calculating processing through which a binocular disparity with respect to the position is calculated based upon the corresponding points;
- and
- composite image creating processing through which a composite image is created by using the retina images for the two eyes based upon the binocular disparity and a disparity correction parameter that includes a fusion ratio,
- wherein the retina image is an image of the virtual target scene viewed by the wearer through the eyeglass lens, projected onto a retina of the eye of the wearer, and
- wherein the correlation coefficients are determined as follows:
- D
- corr
- =
- ∑
- i
- =
- 0
- n
-
- ∑
- j
- =
- 0
- n
-
- (
- f
- l
-
- (
- x
- i
- ,
- y
- j
- )
- -
- f
- l
- _
- )
-
- (
- f
- r
-
- (
- x
- i
- +
- dx
- ,
- y
- j
- +
- dy
- )
- -
- f
- r
- _
- )
- ∑
- i
- =
- 0
- n
-
- ∑
- j
- =
- 0
- n
-
- (
- f
- l
-
- (
- x
- i
- ,
- y
- j
- )
- -
- f
- l
- _
- )
- 2
-
- ∑
- i
- =
- 0
- n
-
- ∑
- j
- =
- 0
- n
-
- (
- f
- r
-
- (
- x
- i
- +
- dx
- ,
- y
- j
- +
- dy
- )
- -
- f
- r
- _
- )
- 2
- wherein dx and dv are offset values, and fl and fr with macrons each represent an average of the luminance values in the first pixel region and the second pixel region, respectively.