This invention relates to a parallax adjustment apparatus and to a method of controlling the operation of this apparatus.
The prior art includes an apparatus for displaying, as a 3D image, a pair of left and right images having horizontal parallax acquired by so-called stereoscopic camera photography. Electrical appliances for home use such as televisions, smart phones and digital cameras that now come equipped with displays having a 3D display function have recently appeared.
Since individual differences affect 3D depth and pop-up perception, 3D display devices are often provided with a user-operated parallax (stereoscopic effect) adjustment mechanism. In general, one adjusts parallax by moving left and right images horizontally while observing a 3D image.
Also available are a stereoscopic image processing apparatus in which it is possible to adjust the mutual parallax of viewpoint images (Patent Document 1), a stereoscopic image display apparatus that is capable of adjusting the amount of parallax of stereoscopic vision (Patent Document 2), and an apparatus for adjusting a convergence point (Patent Document 3).
[Patent Document 1]: Japanese Patent Application Laid-Open No. 2005-130310
[Patent Document 2]: Japanese Patent Application Laid-Open No. 2004-289527
[Patent Document 3]: Japanese Patent Application Laid-Open No. 9-201472
Nevertheless, since a 3D image based upon left and right images having a large horizontal parallax applies an excessive amount of 3D pop-up and depth perception, it is difficult to adjust parallax while observing the image.
An object of the present invention is to arrange it so that an appropriate parallax adjustment can be achieved.
A parallax adjustment apparatus according to the present invention is characterized by comprising: a parallax calculation device (parallax calculation means) for calculating, pixel by pixel, amount of parallax between a first image, which serves as a reference, and a second image, the first and second images having different viewpoints; a reduction ratio decision device (reduction ratio decision means) for deciding a reduction ratio of the first and second images based upon the amount of parallax calculated by the parallax calculation device and a prescribed allowable amount of parallax (where the allowable amount of parallax is that which affords a parallax-amount criterion that makes appropriate stereoscopic vision possible, and which depends upon the size and stereoscopic display scheme of the display device); a reduction device (reduction means) for reducing the first and second images at the reduction ratio decided by the reduction ratio decision device; a stereoscopic image display control device (stereoscopic image display control means) for controlling a display unit in such a manner that a stereoscopic image, which comprises the first and second images reduced by the reduction device, is displayed on a display screen; a first parallax adjustment device (first parallax adjustment means) for accepting a parallax-amount adjustment command and adjusting the amount of parallax between the first and second images, which have been reduced by the reduction device, in accordance with an amount of parallax commanded; and a second parallax adjustment device for making the amount of parallax, which existed prior to reduction by the reduction device, between the first and second images of different viewpoints, an amount of parallax that will exist when the first and second images, which have had their amount of parallax adjusted by the parallax adjustment device and have been reduced, are enlarged so as to take on the size that existed prior to the reduction by the reduction device.
The present invention also provides an operation control method suited to the above-described parallax adjustment apparatus. The method comprises: a parallax calculation device calculating, pixel by pixel, amount of parallax between a first image, which serves as a reference, and a second image, the first and second images having different viewpoints; a reduction ratio decision device deciding a reduction ratio of the first and second images based upon the amount of parallax calculated by the parallax calculation device and a prescribed allowable amount of parallax; a reduction device reducing the first and second images at the reduction ratio decided by the reduction ratio decision device; a stereoscopic image display control device controlling a display unit in such a manner that a stereoscopic image, which comprises the first and second images reduced by the reduction device, is displayed on a display screen; a first parallax adjustment device accepting a parallax adjustment command and adjusting the amount of parallax between the first and second images, which have been reduced by the reduction device, in accordance with an amount of parallax commanded; and a second parallax adjustment device making the amount of parallax, which existed prior to reduction by the reduction device, between the first and second images of different viewpoints, an amount of parallax that will exist when the first and second images, which have had their amount of parallax adjusted by the parallax adjustment device and have been reduced, are enlarged so as to take on the size that existed prior to the reduction by the reduction device.
In accordance with the present invention, a first image of first and second images having different viewpoints is adopted as a reference, the amount of parallax between the first and second images is calculated pixel by pixel, and a reduction ratio of the first and second images is decided based upon the calculated amount of parallax (in such a manner that the amount of parallax becomes an allowable amount of parallax). The first and second images are reduced in size at the reduction ratio decided. The reduced first and second images are displayed on a display screen and the amount of parallax is adjusted while observing the first and second images being displayed on the display screen.
Large images have a large amount of parallax. As a consequence, stereoscopic vision is difficult to achieve and adjusting the amount of parallax also is difficult. In accordance with the present invention, the first and second images are reduced in size and the amount of parallax between the first and second images in the reduced state is adjusted. This makes it easier to adjust the amount of parallax.
Preferably, the apparatus further comprises a second parallax adjustment device (second parallax adjustment means) for making the amount of parallax, which existed prior to reduction by the reduction device, of each pixel of pixels between the first and second images of different viewpoints, an amount of parallax that will exist when the first and second images, which have had their amount of parallax adjusted by the parallax-amount adjustment device and have been reduced, are enlarged so as to take on the size that existed prior to the reduction by the reduction device.
The second parallax adjustment device adjusts the amount of parallax in such a manner that the amount of parallax between the first and second images will fall below the allowable amount of parallax.
The reduction ratio decision device decides the reduction ratio in such a manner that the amount of parallax of pixels equal to or greater than a prescribed number of pixels among pixels of the first image will be the allowable amount of parallax, by way of example.
In a case where the first image has been partitioned into blocks of a prescribed size, the parallax calculation device, by way of example, calculates, block by block, the amount of parallax between the first image, which serves as a reference, and the second image, and the reduction ratio decision device performs, by way of example, reduction in such a manner that a maximum amount of parallax among absolute values of amounts of parallax of blocks, which have an amount of parallax equal to or greater than the allowable amount of parallax and the number of which is equal to or greater than a threshold value, will be the allowable amount of parallax.
The apparatus may further comprise: a first contrast adjustment device (first contrast adjustment means) for lowering contrast of the first and second images that have been reduced by the reduction device; and a second contrast adjustment device (second contrast adjustment means) for restoring the contrast of the first and second images, the amount of parallax of which has been adjusted by the second parallax adjustment device, to the contrast that existed prior to the adjustment of contrast by the first contrast adjustment device.
The parallax calculation device calculates amount of parallax of a subject image which, of the first and second images, is the image situated most forward, by way of example.
The parallax calculation device may calculate, from the first and second images, an amount of parallax of a predetermined prescribed subject. In this case, the reduction ratio decision device would calculate the amount of parallax of the prescribed subject calculated by the parallax calculation device, by way of example.
It may be arranged so that enlargement processing by the enlarging device is executed in such a manner that the amount of parallax of the first and second images after enlargement by the enlarging device will be the same as the amount of parallax adjusted by the parallax adjustment device.
The image viewer 1 according to this embodiment can display a stereoscopic image and makes it possible to carry out a parallax adjustment so as to facilitate stereoscopic vision. Since it is difficult to achieve stereoscopic vision when parallax is too great, in this embodiment a parallax adjustment can be performed upon reducing the size of the stereoscopic image.
The overall operation of the image viewer 1 is controlled by a CPU 2.
The image viewer 1 includes a user interface 3 that has an adjusting dial for supplying the image viewer 1 with an amount of adjustment for the purpose of adjusting parallax, and an operating unit for applying commands; a parallax adjustment unit 4; an image reduction determination unit 5 for determining whether image reduction processing is necessary or not; and a stereo matching unit 6 for discriminating a pixel-by-pixel match between a left-viewpoint image and a right-viewpoint image in order to calculate the amount of parallax of a stereoscopic image.
The image viewer 1 further includes a stereoscopic image display unit 7 for displaying a stereoscopic image; an image enlargement/reduction unit 8 for performing enlargement and reduction of a stereoscopic image; a memory 9 for storing prescribed data; a compression/expansion unit 10 for performing compression and expansion of image data; and an external media interface 11 for accessing a memory card 12. Stereoscopic image data (image data representing a left-viewpoint image and image data representing a right-viewpoint image) representing a stereoscopic image has been stored on the memory card 12.
First, desired image data representing a left-viewpoint image and image data representing a right-viewpoint image is read from the memory card 12 (step 21 in
With reference to the left side of
The right-viewpoint image 40R contains a person image 41R and a background image 43R which correspond to the person image 41L and background image 43L of the mountain, respectively, contained in the left-viewpoint image 40L.
The left-viewpoint image 40L shown on the left side of
Stereo matching is performed between the left-viewpoint image 40L and right-viewpoint image 40R (step 22 in
Next, a parallax histogram between the left-viewpoint image 40L and the right-viewpoint image 40R is generated and an image reduction determination is made based upon the parallax histogram generated (step 23 in
The stereoscopic image 52 is obtained by displaying the left-viewpoint image 40L and the right-viewpoint image 40R, which have parallax between them, on a display screen 50. Since the size of the stereoscopic image 52 is smaller than the size of the display screen 50, a frame 51 (indicated by the hatching) appears surrounding the stereoscopic image 52. A person represented by the person images 41L and 41R is present in front of the mountain background represented by the background images 43L and 43R. In this embodiment, parallax is adjusted so as to make it easy to view the person. The parallax between the person images 41L and 41R is represented by d1. If the parallax between the person images 41L and 41R is too large, for example, stereoscopic vision will be difficult to achieve and, hence, so will the parallax adjustment. If the stereoscopic image formed from the left-viewpoint image 40L and right-viewpoint image 40R is considered to be difficult to view based upon the parallax histogram, image reduction processing is executed. Since the parallax between the left-viewpoint image 40L and right-viewpoint image 40R is reduced by executing image reduction processing, the stereoscopic image becomes easier to view and the parallax adjustment is facilitated as well. Image reduction processing is not executed if the stereoscopic image is easy to view. The details of image reduction processing will be described later.
In
A distribution D1 on the left side indicates the distribution of amount of parallax between the person images 41L and 41R, and a distribution D2 on the right side indicates the distribution of amount of parallax between the background images 43L and 43R.
In this embodiment, a parallax range ±dth that will contain many pixels from among all pixels Nall of the left-viewpoint image 40L or right-viewpoint image 40R is defined. Further, an allowable parallax range ±dp is defined. Since parallax d1 between the person images 41L and 41R (namely the peak parallax in the distribution of amount of parallax between the person images 41L and 41R) does not fall within the allowable parallax range ±dp, stereoscopic vision is difficult to achieve.
If stereoscopic vision is thus difficult to achieve, it is determined that reduction of the stereoscopic image is necessary. If reduction of the stereoscopic image is deemed to be necessary in the image reduction determination (“YES” at step 24 in
The reduced stereoscopic image 54 contains person images 42L and 42R, which correspond to the above-mentioned person images 41L and 41R that existed prior to the size reduction. Also contained are background images 45L and 45R, which correspond to the background images 43L and 43R prior to the size reduction. Since the stereoscopic image 54 has been reduced, the size of a frame 53 (indicated by the hatching) displayed surrounding the stereoscopic image 54 on the display screen 50 is larger than before. Furthermore, since the stereoscopic image 54 has been reduced in comparison with the stereoscopic image 52 shown in
In
Owing to execution of image reduction processing, the parallax distribution D1 between the person images 42L and 42R and the parallax distribution D2 between the background images 45L and 45R are closer together. The amount of parallax of almost all pixels falls within the allowable parallax range ±dp. Accordingly, the parallax adjustment is easier to perform using the reduced stereoscopic image 54, as mentioned above. The parallax d2 between the person images 42L and 42R also falls within the allowable parallax range ±dp. This is a state in which stereoscopic vision is easy to achieve.
Thus, since the parallax between the person images 42L and 42R (parallax is not necessarily limited to the parallax between the person images 42L and 42R) of the stereoscopic image 54 obtained by reducing the size of the stereoscopic image 52 becomes smaller, the parallax adjustment is facilitated.
A parallax adjustment (first parallax adjustment) is performed with regard to the person images 42L and 42R contained in the reduced stereoscopic image (left-viewpoint image and right-viewpoint image) 54 (step 27 in
Owing to implementation of the parallax adjustment, the parallax between the person images 42L and 42R has changed from d2 to d3 (d3<d2).
Owing to implementation of the parallax adjustment with regard to the person images 42L and 42R, the parallax between them has become d3, as mentioned above. The parallax has been adjusted so as to facilitate stereoscopic viewing by the user.
If the parallax d3 that has been applied with regard to the reduced stereoscopic image 54A is enlarged in accordance with an enlargement ratio in a case where the stereoscopic image 54 is enlarged to the size of the stereoscopic image 52 that existed prior to reduction and is then applied to the left-viewpoint image 40L that existed prior to reduction (
The stereoscopic image 52A includes the above-mentioned person images 41L and 41R. The parallax d between the person images 41L and 41R has been calculated based upon the parallax d3 in the reduced image 54A. It goes without saying that if the calculated parallax d exceeds the allowable amount of parallax, the parallax taken on by the stereoscopic image will be the allowable amount of parallax, as described above.
The parallax d1 between the person images 41L and 41R in the stereoscopic image 52 is d1, as illustrated in
Since the amount of parallax adjustment of the stereoscopic image 52A shown in
As illustrated in
First, the parallax range ±dth is reset to zero (step 61 in
Next, the number Nr of pixels having a parallax that falls within the parallax range ±dth is calculated (step 62 in
If the parallax range ±dth thus decided is equal to or less than the allowable parallax ±dp (“NO” at step 65 in
If the parallax range ±dth is greater than the allowable parallax ±dp (“YES” at step 65 in
It may be arranged so that calculation of the parallax range ±dth described above as a characteristic of stereoscopic vision is performed utilizing only the parallax of pixels having a strong edge obtained by edge detection (pixels of vertical lines, for example), or it may be arranged so as to exclude the parallax of a subject having low contrast.
In this embodiment, the setting of the image reduction ratio R is carried out in accordance with the amount of parallax of a forward-situated subject, taking into consideration the fact that excessive stereographic pop-up parallax in a stereoscopic image hinders comfortable stereoscopic vision. A parallax histogram is generated in a manner similar to that described above.
In a manner similar to that of the above-described histograms, the horizontal axis indicates amount of parallax and the vertical axis indicates number of pixels. Since the parallax histogram indicates about how many pixels possess an amount of parallax, the histogram represents the number of pixels versus the amount of parallax.
As mentioned above, the parallax histogram G represents the number of pixels versus the amount of parallax. For example, the number of pixels having an amount P1 of parallax is one, and the number of pixels of an amount P2 of parallax is two. Thus, the number of pixels corresponding to the amount of parallax can be ascertained from the parallax histogram G.
First, a number n of pixels having an ith amount of parallax in the parallax histogram is read (at the beginning the amount of parallax will have been reset to the amount of parallax of the pixel having the largest amount of stereographic pop-up, namely the most forward-situated pixel) (step 71 in
When the number of pixels having an amount Pn of parallax becomes equal to or greater than the threshold value fth (“YES” at step 72 in
If a portion having a number of pixels that exceeds the threshold value fth does not exist even if amounts of parallax of all pixels have been checked (“NO” at step 72, “YES” at step 73 in
In the foregoing embodiment, control is carried out in accordance with the amount of parallax of a subject that is forward situated. However, in a case where emphasis is placed on a subject farther in the depth direction, it will suffice to execute processing similar to the above-described processing in order from the amount of parallax of a subject farther in the depth direction.
This embodiment detects a specific subject such as a face image (although the subject is not necessarily limited to a face image) and reduces the size of a stereoscopic image if the parallax of the detected specific subject is greater than the allowable parallax. Further, when processing for reducing a stereoscopic image is executed, processing is also executed for lowering the contrast of at least one image of a left-viewpoint image and right-viewpoint image that form the stereoscopic image. The contrast is restored to the original in accordance with a parallax adjustment. Naturally, processing for lowering contrast need not necessarily be executed.
Processing for lowering contrast may be executed without executing processing for reducing the size of the stereoscopic image.
The left-viewpoint image 40L and right-viewpoint image 40R are read from the memory card 12 (step 81 in
Next, contrast is reduced with regard to at least one image of the left-viewpoint image and right-viewpoint image forming the stereoscopic image (step 91 in
When a parallax adjustment is subsequently carried out using the reduced stereoscopic image, the contrast is restored to the original in accordance with this parallax adjustment (step 27A in
The contrast adjustment may be performed by adjusting the overall image using a uniform value, or only an area that exceeds the allowable parallax may have its contrast lowered.
With reference to
When a parallax adjustment is carried out, the contrast changes and, as illustrated in
As set forth above, it may be arranged to detect the amount of parallax that corresponds to a forward-situated subject and to lower contrast in the manner described above in a case where the absolute value of this amount of parallax exceeds an allowable parallax.
Number | Date | Country | Kind |
---|---|---|---|
2011-214058 | Sep 2011 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2012/071055 | Aug 2012 | US |
Child | 14229092 | US |