Storage medium having stored therein stereoscopic image display program, stereoscopic image display device, stereoscopic image display system, and stereoscopic image display method
First Claim
1. A non-transitory computer-readable storage medium having stored therein an image display program for stereoscopically displaying a captured image on a stereoscopically-viewable stereoscopic display by displaying, in substantially a same display area, a right-eye image and a left-eye image by using a right captured image outputted from a right-eye real camera and a left captured image outputted from a left-eye real camera, wherein the image display program, when executed, causes a computer to at least:
- set a reference distance for a distance from the real cameras in an image-capturing direction, the setting of the reference distance comprising calculating a distance to a predetermined image-capture object, and setting the reference distance based on the calculated distance;
display the right and left captured images in the display area so that a reference point common to the right and left captured images is displayed at a center of the display area, wherein the reference point is a point that is away from the real cameras by the reference distance in the image-capturing direction of the two real cameras on a straight line passing through a median point between the two real cameras and extending in the real camera image-capturing direction;
set a right-eye virtual camera and a left-eye virtual camera in a virtual space; and
stereoscopically display a virtual image by displaying in the display area a right virtual image obtained by capturing an image of the virtual space with the right-eye virtual camera and a left virtual image obtained by capturing an image of the virtual space with the left-eye virtual camera, wherein the left and right virtual images have a common virtual reference point and a projection matrix of the right virtual camera is set so that the virtual reference point in the right virtual image is displayed at the center of the display area and a projection matrix of the left virtual camera is set so that the virtual reference point in the left virtual image is displayed at the center of the display area,wherein the virtual reference point is a point that is away from the virtual cameras by a distance corresponding to the reference distance in an image-capturing direction of the two virtual cameras on a straight line passing through a median point between the two virtual cameras and extending in the virtual camera image-capturing direction, andwherein the image display program further causes the computer to recognize, using at least one of the right captured image and the left captured image, a position and an orientation of the predetermined image-capture object in the captured image so as to calculate position/orientation information representing a relative position and orientation relationship between the predetermined image-capture object and the real cameras, and to calculate a distance between the predetermined image-capture object and the real cameras based on the position/orientation information.
1 Assignment
0 Petitions
Accused Products
Abstract
An example game device sets a reference distance for a distance from a real camera in an image-capturing direction, and displays a right captured image and a left captured image in a display area so that a reference point, which is a point that is away from the real camera by the reference distance, is displayed at a center in the display area. Thus, when an image produced by using an augmented reality technique is stereoscopically displayed, it is possible to display a virtual image in a manner easy to view.
13 Citations
10 Claims
-
1. A non-transitory computer-readable storage medium having stored therein an image display program for stereoscopically displaying a captured image on a stereoscopically-viewable stereoscopic display by displaying, in substantially a same display area, a right-eye image and a left-eye image by using a right captured image outputted from a right-eye real camera and a left captured image outputted from a left-eye real camera, wherein the image display program, when executed, causes a computer to at least:
-
set a reference distance for a distance from the real cameras in an image-capturing direction, the setting of the reference distance comprising calculating a distance to a predetermined image-capture object, and setting the reference distance based on the calculated distance; display the right and left captured images in the display area so that a reference point common to the right and left captured images is displayed at a center of the display area, wherein the reference point is a point that is away from the real cameras by the reference distance in the image-capturing direction of the two real cameras on a straight line passing through a median point between the two real cameras and extending in the real camera image-capturing direction; set a right-eye virtual camera and a left-eye virtual camera in a virtual space; and stereoscopically display a virtual image by displaying in the display area a right virtual image obtained by capturing an image of the virtual space with the right-eye virtual camera and a left virtual image obtained by capturing an image of the virtual space with the left-eye virtual camera, wherein the left and right virtual images have a common virtual reference point and a projection matrix of the right virtual camera is set so that the virtual reference point in the right virtual image is displayed at the center of the display area and a projection matrix of the left virtual camera is set so that the virtual reference point in the left virtual image is displayed at the center of the display area, wherein the virtual reference point is a point that is away from the virtual cameras by a distance corresponding to the reference distance in an image-capturing direction of the two virtual cameras on a straight line passing through a median point between the two virtual cameras and extending in the virtual camera image-capturing direction, and wherein the image display program further causes the computer to recognize, using at least one of the right captured image and the left captured image, a position and an orientation of the predetermined image-capture object in the captured image so as to calculate position/orientation information representing a relative position and orientation relationship between the predetermined image-capture object and the real cameras, and to calculate a distance between the predetermined image-capture object and the real cameras based on the position/orientation information. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An image display device for stereoscopically displaying a captured image on a stereoscopically-viewable stereoscopic display by displaying, in substantially a same display area, a right-eye image and a left-eye image by using a right captured image outputted from a right-eye real camera and a left captured image outputted from a left-eye real camera, the image display device comprising:
-
processing circuitry including a processor, the processing circuitry being configured to control the image display device to at least; set a reference distance for a distance from the real cameras in an image-capturing direction, the setting of the reference distance comprising calculating a distance to a predetermined image-capture object, and setting the reference distance based on the calculated distance; display the right and left captured images in the display area so that a reference point common to the right and left captured images is displayed at a center of the display area, wherein the reference point is a point that is away from the real cameras by the reference distance in the image-capturing direction of the two real cameras on a straight line passing through a median point between the two real cameras and extending in the real camera image-capturing direction; set a right-eye virtual camera and a left-eye virtual camera in a virtual space; and stereoscopically display a virtual image by displaying in the display area a right virtual image obtained by capturing an image of the virtual space with the right-eye virtual camera and a left virtual image obtained by capturing an image of the virtual space with the left-eye virtual camera, wherein the left and right virtual images have a common virtual reference point and the virtual camera setting section sets a projection matrix of the right virtual camera so that the virtual reference point in the right virtual image is displayed at the center of the display area and sets a projection matrix of the left virtual camera so that the virtual reference point in the left virtual image is displayed at the center of the display area, wherein the virtual reference point is a point that is away from the virtual cameras by a distance corresponding to the reference distance in an image-capturing direction of the two virtual cameras on a straight line passing through a median point between the two virtual cameras and extending in the virtual camera image-capturing direction, and wherein the processing circuitry is configured to control the image display device to recognize, using at least one of the right captured image and the left captured image, a position and an orientation of the predetermined image-capture object in the captured image so as to calculate position/orientation information representing a relative position and orientation relationship between the predetermined image-capture object and the real cameras, and to calculate a distance between the predetermined image-capture object and the real cameras based on the position/orientation information.
-
-
9. An image display system for stereoscopically
displaying a captured image on a stereoscopically-viewable stereoscopic display by displaying, in substantially a same display area, a right-eye image and a left-eye image by using a right captured image outputted from a right-eye real camera and a left captured image outputted from a left-eye real camera, the system comprising: -
a reference distance setting section for setting a reference distance for a distance from the real cameras in an image-capturing direction, the reference distance setting section being configured to calculate a distance to a predetermined image-capture object, and to set the reference distance based on the calculated distance; a stereoscopic display controller for displaying the right and left captured images in the display area so that a reference point common to the right and left captured images is displayed at a center of the display area, wherein the reference point is a point that is away from the real cameras by the reference distance in the image-capturing direction of the two real cameras on a straight line passing through a median point between the two real cameras and extending in the real camera image-capturing direction; a virtual camera setting section for setting a right-eye virtual camera and a left-eye virtual camera in a virtual space; and a virtual image stereoscopic display controller for stereoscopically displaying a virtual image by displaying in the display area a right virtual image obtained by capturing an image of the virtual space with the right-eye virtual camera and a left virtual image obtained by capturing an image of the virtual space with the left-eye virtual camera, wherein the left and right virtual images have a common virtual reference point and a virtual camera setting section sets a projection matrix of the right virtual camera so that the virtual reference point in the right virtual image is displayed at the center of the display area and sets a projection matrix of the left virtual camera so that the virtual reference point in the left virtual image is displayed at the center of the display area, wherein the virtual reference point is a point that is away from the virtual cameras by a distance corresponding to the reference distance in an image-capturing direction of the two virtual cameras on a straight line passing through a median point between the two virtual cameras and extending in the virtual camera image-capturing direction, and wherein the system is configured to recognize, using at least one of the right captured image and the left captured image, a position and an orientation of the predetermined imagecapture object in the captured image so as to calculate position/orientation information representing a relative position and orientation relationship between the predetermined imagecapture object and the real cameras, and to calculate a distance between the predetermined image-capture object and the real cameras based on the position/orientation information.
-
-
10. An image display method to be executed by a computer for stereoscopically displaying a captured image on a stereoscopically-viewable stereoscopic display by displaying, in substantially a same display area, a right-eye image and a left-eye image by using a right captured image outputted from a right-eye real camera and a left captured image outputted from a left-eye real camera, the method comprising:
-
setting a reference distance for a distance from the real cameras in an image-capturing direction, the setting of the reference distance comprising calculating a distance to a predetermined image-capture object, and setting the reference distance based on the calculated distance; displaying the right and left captured images in the display area so that a reference point common to the right and left captured images is displayed at a center of the display area, wherein the reference point is a point that is away from the real cameras by the reference distance in the image-capturing direction of the two real cameras on a straight line passing through a median point between the two real cameras and extending in the real camera image-capturing direction; setting a right-eye virtual camera and a left-eye virtual camera in a virtual space; and
stereoscopically displaying a virtual image by displaying in the display area a right virtual image obtained by capturing an image of the virtual space with the right-eye virtual camera and a left virtual image obtained by capturing an image of the virtual space with the left eye virtual camera,wherein the left and right images have a common virtual reference point and a projection matrix of the right virtual camera is set so that the virtual reference point in the right virtual image is displayed at the center of the display area and a projection matrix of the left virtual camera is set so that the virtual reference point in the left virtual image is displayed at the center of the display area, wherein the virtual reference point is a point that is away from the virtual cameras by a distance corresponding to the reference distance in an image-capturing direction of the two virtual cameras on a straight line passing through a median point between the two virtual cameras and extending in the virtual camera image-capturing direction, and wherein the method further comprises recognizing, using at least one of the right captured image and the left captured image, a position and an orientation of the predetermined image-capture object in the captured image so as to calculate position/orientation information representing a relative position and orientation relationship between the predetermined image-capture object and the real cameras, and to calculate a distance between the predetermined image-capture object and the real cameras based on the position/orientation information.
-
Specification