METHOD AND DEVICE FOR GENERATING 3D IMAGES
A method and a device for generating 3D images, according to which an image of a second sequence of images is generated in addition to an image of a first sequence of 2D images at an interval that can be determined via an approximation variable (α). A measure of similarity (dk) between successive images of the first sequence is determined and compared with threshold values (δ0<δ1<δ2) so as to modify the approximation variable (α) depending thereon in such a manner that the stereo base width does not turn unnaturally large. A phase analyzer (12) is used to determine a prevailing direction of movement in successive images of the first sequence of images and a phase converter (16) is used to allocate the image of the first and second sequence of images to a left-hand or right-hand viewing channel depending on a prevailing direction of movement in successive images of the first sequence.
The invention relates to a method and a device for the generation of 3-D images.
Three-dimensional imaging is often used to analyze objects, particularly in the fields of medicine and science. Various methods with which television pictures in particular can be produced in three dimensions have also been developed for general consumer applications.
Among said methods, there is a basic distinction between sequential image trans-mission, in which the images for the right eye and the left eye are transmitted alternately one after the other or saved to a storage medium, and parallel transmission, in which the images are transmitted on two separate channels.
One particular disadvantage of sequential image transmission in connection with conventional television systems is the fact that the refresh rate is reduced to 25 images per second for each eye. This creates an unpleasant flickering for the viewer. Of course, this limitation does not occur when the image sequences are each transmitted on their own channel (left or right). However, problems may still arise with synchronizing both channels and due to the requirements placed on the receiver, which must be able to receive and process two channels simultaneously. This is not possible for most systems generally available on the market.
Signal transmission and processing will likely be entirely digital in future television systems. In such systems, every image is broken down into individual pixels which are transmitted in digitized format. In order to reduce the bandwidth required for this process, the appropriate compression methods are used; however, these create problems for stereo transmission.
For example, using block coding methods with a reasonable rate of compression, it is generally not possible to reconstruct every individual line of an image precisely. In addition, interframe coding techniques, such as MPEG-2, do not allow one to transmit or save stereo images in a sequential image format, because image information from one image is still contained in another image, creating the so-called “crosstalk effect”, which makes clear separation of the right image from the left impossible.
Other methods for generating a three-dimensional image sequence from a two-dimensional image sequence are disclosed in DE 35 30 610 and EP 0 665697. An autostereoscopic system with an interpolation of images is disclosed in EP 0 520 179, whereas in “Huang: Image Sequence Analysis” (published in Springer Verlag) problems of the recognition of motion areas in image sequences are discussed.
Therefore, the problem behind the invention is to create a method and a device of the type specified in the introduction with which it is possible to generate 3-D images with a very natural three-dimensional image impression even if using the transmission and/or compression methods described in the introduction.
This problem has been solved with a method according to claim 1 and a device according to claim 10.
The dependent claims contain further advantageous embodiments of the invention.
Additional details, features, and advantages of the invention may be seen from the following description of a preferred embodiment with reference to the drawings. They show:
The basic components of a device according to the invention and their interconnections are schematically represented in
A second image sequence is generated by this device based on a (first) image sequence recorded in two-dimensions. Together with the first image sequence, the second sequence makes it possible to view the originally two-dimensional images in three dimensions when the first and second image sequences are transmitted to the left or right eye. The second image sequence is defined according to the following description based on image information resulting from the motion in the first image sequence. The following definitions apply:
xij is a digitized image at time t with horizontal resolution I and vertical resolution J. The scan rate is Δt, so that the following formula is derived for an image scanned at time k and saved in the image storage device 11:
xk:=xij(t−Δtk)
The most recent K images are located in the image storage device 11 with length K. 0≦α≦k is a real number representing the time interval of a given image xk, during which a (synthetic) image of the second image sequence is generated (“approximation variable”). In addition, BL represents the given displayed left image and BR the given displayed right image.
It is assumed that a fixed value is given to cc. The images xk in the image storage device 11 are viewed as sample values (scanned image sequence according to curve b in
BL:=x0
BR:=x+o(α−αu)+xαu(1−α+αu)
where the image sequence BL for a left viewing channel (left eye) is calculated by the given actual images of the first image sequence x0, x1, etc., and the (second) image sequence BR is calculated by approximation for a right viewing channel (right eye).
This calculation is performed separately by the image generator 15 for all of the pixels xij in a selected color space (RGB or YUV); that is:
BR:=bij(Y,U,V):=
(xijαo(Y)(α−αu)+xijαu(Y)(1−α+αu),
xijαo(U)(α−αu)+xijαu(U)(1α+αu),
xijαo(V)(α−αu)+xijαu(V)(1−α+αu)).
In addition, automatic phase control is performed by the phase analyzer 12 to determine movements in sequential images of the first image sequence. It is assumed that jm:=J/2 is the horizontal midpoint of an image, so xijm0 with 0≦i≦I is the middle column of the image x0 at time t. Furthermore, M<jm is a selected whole number. Then:
xij0s:=xij0 with 0<i<I and jm−M<j<jm+M
will be defined as a scanned image, shown in vertical stripes in
xij1s with 0≦i≦I and jm−N≦j≦jm+N
are defined as the search region (see
d1 is the similarity of the scanned image to a partial image of equal size from the search region with a displacement position 1, where −N≦1≦+N.
If cross-correlation is chosen as a measure of similarity, d1 is the result for the displacement position 1:
Formula (1):
Here, the value of I ranges from −N to +N, where 1 represents the given displacement position of a partial image in the search region.
As an alternative to cross-correlation, a Euclidean distance or an absolute amount may also be chosen as a measure of similarity.
Thus, with this method, as indicated in
In addition, a whole number is defined, which maybe called the moment of inertia and with which blurring is defined according to
This analysis is performed substantially as follows. First, all measures of similarity d1 for −N≦I≦+N are calculated by the phase analyzer 12. Next, the measure of similarity dmin is chosen with the smallest value (dmin:=min d1) and the index Imin of this measure of similarity is determined. The values Imin and ε are compared by the phase selector 16, and the phase selector 16 switches as a function of the results of the comparison as follows:
If Imin<ε, this means that the region of greatest similarity in the search region is displaced to the left, and thus the predominant direction of movement in sequential images x1, x0 of the first image sequence is indicated from left to right. This may result from the movement of an object in the images from left to right or from the panning of the camera from right to left. In this case, for the left image BL:=x0 (i.e., the given image of the image sequence) and a calculated synthetic image (second image sequence) is selected for the right image BR. In addition, a “shift” indicator is set to “left” in the phase selector 16. If Imin>ε, this means that the region of greatest similarity in the search region is displaced to the right, and thus the predominant direction of movement in sequential images x1, x0 of the first image sequence is indicated from right to left. This may result from the movement of an object in the images from right to left or from the panning of the camera from left to right. In this case, a calculated synthetic image (second image sequence) is selected for the left image BL and for the right image BR:=x0 (i.e., the given image of the image sequence). In addition, the “shift” indicator is set to “right”.
If |Imin|<ε and the indicator is set to “right”, then a calculated synthetic image is selected for the left image BL (second image sequence) and for the right image BR:=x0 (i.e., the given image of the image sequence).
Finally, if |Imin|<ε and the indicator is set to “left”, then for the left image BL:=x0 and a calculated synthetic image is selected for the right image (second image sequence).
The next image is then accessed and the same process is repeated for this image, beginning with the calculation of the minimum value of the measure of similarity dmin.
This automatic phase control or selection may also be switched off and, for example, replaced by manual switching using a keyboard via the device's third input.
Furthermore, the embodiment shown in
The measure of similarity dk at time tk is defined as follows:
Formula (2):
Therefore, this measure of similarity is a function of the extent to which the entire contents of the next image in an image sequence differ from the contents of the previous image, and thus represents a measure of the speed of motion in the images.
Threshold values δ0<δ1<δ2 are defined for the analysis of said measure of similarity, where in the ideal case the measure of similarity dk=0 for an unchanged (constant) image at time tk in comparison to the previous image at time tk+1. However, because there is always a certain amount of background noise during digitization, it should be assumed that dk<δ0 for an unchanged image.
A Euclidian distance or an absolute amount may of course be chosen for the calculation instead of the cross-correlation described. The individual color values of the selected color space RGB or YUV must always be processed separately.
To analyze the value of the measure of similarity dk(k=0, 1, . . . K), it is first stored in the motion analyzer 14 and then compared to the threshold values.
If dk<δ0, this means that the movements in the sequential images are very slow or nil. In this case, the transfer of the values of xk to the long-term storage device 13 is stopped so that images will be available which have a sufficient motion differential. In addition, images stored in the long-term memory device are used to generate the second image sequence in order to maintain the minimum stereo base width.
If dk>δ0, the value of the approximation variables a will change as a function of the size of the measure of similarity dk relative to the threshold values δ0, δ1, δ2, as follows.
If δ0<dk<δ2 and dk−dk−1≦−δ1 and as long as α<k−1, then the approximation variable is set at α:=α+s.
If δ0<dk<δ2 and dk−dk1>δ1 and as long as α≧2 ist, then the approximation variable is set at α:=α−s.
The character s denotes a step width which is preferably 0.1, however, it can have other values as well.
If δ0<dk<δ2 and −δ1<dk−dk−1<δ1, then the approximation variable will remain at α:=α because the motion velocity is substantially constant. In this case, no adjustment is necessary.
Finally, if δ2<dk, this means that the movement is very fast and the stereo base width would be too large. In this case, the approximation variable is set at α:=1/dk.
This dynamic motion control can also be switched off like the automatic phase control and replaced by manual entry; for example, using a keyboard via the device's second input.
The method described will preferably be implemented using a data processing program on a computer, in particular a digital image processing system for the generation of a three-dimensional depiction of television pictures transmitted or stored in a two-dimensional format.
In the following, a preferred example with specific values shall be given for the above embodiment. In case of application of the known PAL standard the horizontal resolution is I=576 and the vertical resolution is J=768, whereas for the NTSC standard, =480 and J=640 are prescribed.
Generally it is sufficient to store the last five images in the image storage device 11 which means K:≦5. As an initial value α0, the approximation variable is set to α0:=2.1. For an adequate analysis of motion in sequential images the value of M is set to 1 or 2. The value of N should be chosen such that even in case of fast motions the scanning image is still within the search region. For this, a value of N of 20≦N≦30 (especially N:=25) is adequate. However, the value of N can as well comprise the complete original image so that N:=J/2.
For defining the blurring, a value of ε:=1 is proposed whereas for evaluating the measure of similarity the following values for the threshold values are preferably chosen: δ0:=0.05, δ1:=0.6 and δ2:=0.8.
With an embodiment realized with these values a very natural three-dimensional reproduction could be obtained for image sequences with very differently moving contents.
Finally,
The device comprises a first input 21, to which the 2-D images transmitted across a transmission path and demodulated or decompressed according to known techniques are connected. In addition, there is a second input 22, which is connected to a DVD player, a video recorder, or another source of images, for example.
Both of these inputs are connected to the invented device 23 according to
Finally, different driver levels can be selected via a third input 26 by activating a selector switch 27, by means of which a corresponding image generator is controlled.
For example, a driver 28 for simulator goggles 29, a driver 30 for an autostereoscopic monitor 31, and a driver 32 for a stereo projector 33 are shown here.
This device is preferably designed as a component of a digital image processing system for the generation of a three-dimensional depiction of television pictures transmitted or stored in two dimensions.
Claims
1-14. (canceled)
15. A method for generating 3-D images from a first sequence of 2-D images, comprising the following steps:
- (a) comparing a pair of sequential images in the first image sequence to determine a measure of similarity (dk) between the pair of sequential images;
- (b) comparing the measure of similarity (dk) to predetermined threshold values (δ0<δ1<δ2);
- (c) if δ1<δk<δ2, (i) setting an approximation variable (a) within a predetermined range to maintain a minimum stereo base width and to prevent the stereo base from becoming too large, and (ii) generating a synthetic image for a second image sequence from the pair of images of the first image sequence by interpolating between the pair of images of the first image sequence based on the approximation variable;
- (d) if dk<δ0 setting a temporally previous image of the first image sequence as an image of the second image sequence; and
- (e) assigning images of the first and second image sequence to a left and right viewing channel, respectively.
16. A method as set forth in claim 15, wherein if δ1<δk<δ2 and dk−dk−1≦−δ1 and as long as α≦k−1, the approximation variable is set to α:=α+s, and if δ1<dk<δ2 and dk−dk-1≧δ1 and as long as α>2, the approximation variable is set to α:=α−s.
17. A method as set forth in claim 15, wherein the measure of similarity (dk) is calculated by determining a Euclidean distance or an absolute value.
18. A method as set forth in claim 15, wherein the images of the second image sequence are calculated by linear spline approximation or a higher-level or polynomial approximation.
19. A method as set forth in claim 15, wherein in determining the predominant direction of motion, a vertical mid-region of a current image (x0) of the first image sequence is compared to different vertical regions of a previous image (x1) of this sequence and it is determined whether the vertical region of the previous image with the greatest similarity to the mid-region of the current image is situated left or right of center.
20. A method as set forth in claim 15, wherein in determining the predominant direction of motion, a second measure of similarity (dI) between the image regions is calculated by determination of a Euclidean distance or an absolute value.
21. A method as set forth in claim 15, wherein a blurring region (ε) with which small movements can be suppressed is established around the mid-region of the current image (x0).
22. A system for generating 3-D images from a first sequence of 2-D images, comprising
- a first input for receiving the first image sequence;
- a motion analyzer connected to the first input for comparing a pair of sequential images in the first image sequence to determine a measure of similarity (dk) between the pair of sequential images and for setting an approximation variable (a) that determines a stereo base based on the measure of similarity;
- an image generator connected to the motion analyzer for generating a synthesized image of a second sequence of images by interpolating between the pair of images of the first image sequence using the approximation variable;
- first and second outputs for transmitting the first and second image sequences to left and right viewing channels; and
- a phase selector connected to the image generator for assigning images received from the phase analyzer to one of the left and the right viewing channels.
23. A system as set forth in claim 16, comprising a phase analyzer interconnected between the image generator and the phase selector for determining a predominant direction of motion in sequential images of the first image sequence, wherein the phase selector assigns images to one of the left and right viewing channels based on the predominant direction of motion determined by the phase analyzer.
24. A system as set forth in claim 16, comprising an analog-to-digital converter for converting analog image data received at the first input to digital image data.
25. A system as set forth in claim 18, comprising one or more of (a) a second input connected to the image generator for receiving manual motion control data; and (b) a third input connected to the phase selector for receiving manual phase control data.
Type: Application
Filed: Aug 7, 2007
Publication Date: Nov 22, 2007
Applicant: NEWSIGHT CORP. (New York, NY)
Inventor: Rolf-Dieter Naske (Kakenstorf)
Application Number: 11/835,104
International Classification: G06K 9/36 (20060101);