This application claims the priority benefit of Korean Patent Application No. 10-2010-0102927, filed on Oct. 21, 2010, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference.
1. Field
Example embodiments of the following description relate to an apparatus and method of generating a video signal for minimizing crosstalk between a luminance signal and a chrominance signal.
2. Description of the Related Art
In general, to display a three-dimensional (3D) image, several viewpoints of two-dimensional (2D) images are used. For a multi-view display or a free-viewpoint television (TV), a super multi-viewpoint image may be used. However, an apparatus for acquiring a number of viewpoints of an image may be expensive, and thus, it may take a relatively long time for the apparatus to reach the general public.
An image of all viewpoints may not be acquired to generate a multi-viewpoint image. For example, after acquiring a predetermined number of images using a camera, images with respect to other viewpoints may be synthesized using an interpolation or an extrapolation process and through analyzing previously acquired images.
3D information, indicating a scene structure, may be used for synthesizing viewpoint images. In general, a 3D scene structure may be expressed using a depth based on a reference viewpoint. For example, a disparity corresponding to a difference due to viewpoints may occur on each viewpoint image. The 3D scene structure may be expressed using the disparity between the reference viewpoint and a corresponding viewpoint. In this instance, the disparity and the depth may be used interchangeably. In a computer vision process, the depth may be found using a stereo matching process when a plurality of images is provided.
Accordingly, a system and a method for more effectively providing a multi-view image are desired.
The foregoing and/or other aspects are achieved by providing a disparity estimation system, including a disparity estimation unit to estimate a disparity through a process of optimizing an energy with respect to a disparity assignment using an energy function including a temporal smoothness term. Here, the temporal smoothness term constrains a difference in the disparity with respect to pixels present at the same location at the same point in time between proximate frames with respect to inputted images.
The temporal smoothness term may be calculated with respect to the pixels based on a sum of values where each of the values is a minimum value between an absolute value of the difference and a predetermined constant value.
The energy function may include the temporal smoothness term with respect to a region where a motion of an object does not occur in the inputted image.
The region where the motion of the object does not occur in the inputted image may include a region where a color difference between the proximate frames is less than a predetermined threshold value.
Each term included in the energy function may be calculated with respect to the disparity assignment using a Markov random field.
The process of optimizing the energy may include a process of optimizing the energy with respect to the disparity assignment using a graph cut.
The graph cut may be performed using a graph where an edge is connected between pixels placed at the same position among pixels of a graph with respect to a previous frame and pixels of a graph with respect to a current frame.
The graph cut may be performed by introducing a constraint with respect to a temporal smoothness to an edge connected to a source or a sink on a graph.
The energy function may further include a spatial smoothness term constraining the difference in the disparity with respect to neighboring pixels, and a data term constraining a color difference between viewpoints.
With respect to a first frame, the disparity estimation unit may estimate a disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term and the spatial smoothness term. Further, with respect to a second frame and the subsequent frame, the disparity estimation unit may fix the disparity of the previous frame and may estimate a disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term, the spatial smoothness term, and the temporal smoothness term.
The foregoing and/or other aspects are achieved by providing a disparity estimation method, including estimating a disparity through a process of optimizing an energy with respect to a disparity assignment using an energy function including a temporal smoothness term. In this instance, the temporal smoothness term constrains a difference in the disparity with respect to pixels present at the same location at the same point in time between proximate frames with respect to inputted images.
By estimating a spatially and temporally consistent disparity, the flickering effect of a screen may be reduced.
Since, in response to an input of a new frame, a disparity map may be generated using only a previous frame during the rendering process, a disparity may be immediately calculated to render the new frame.
The foregoing and/or other aspects are achieved by providing a disparity estimation apparatus, including an image acquisition unit to acquire a plurality of image of a previous frame, disparity maps with respect to each of the plural images, and a plurality of images of a current frame; an energy function setting unit to set an energy function; and a disparity estimation unit to estimate a disparity through a process of optimizing energy with respect to a disparity assignment using the energy function set by the energy function setting unit.
Additional aspects of embodiments will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the disclosure.
These and/or other aspects will become apparent and more readily appreciated from the following description of embodiments, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. Embodiments are described below to explain the present disclosure by referring to the figures.
To acquire a consistent disparity using an image processing algorithm and the like, the consistent disparity may be quantitatively expressed. A spatial consistency and a temporal consistency are described below.
The spatial consistency may be obtained by causing neighboring pixels within a frame to have disparity values that are as similar as possible. A spatial smoothness may be enforced.
In this instance, while a top pixel, a left pixel, and a bottom pixel based on a center pixel may have continuity with respect to the center pixel, a right pixel may have discontinuity with respect to the center pixel. Thus, the discontinuity may be preserved in a case of enforcing the spatial smoothness.
When neighboring pixels in an image are more clearly defined, pixels having 1 as a Manhattan distance may be defined as pixels proximate to a corresponding pixel. In this case, each pixel may have four neighboring pixels. Here, when f is assumed to be an assigned disparity, a spatial smoothness corresponding to a condition for causing neighboring pixels to have disparity values that are as similar as possible may be expressed by the following Equation 1.
In this instance, N may correspond to a subset of a set {{p,q}|p,qεP}. P may indicate a set with respect to all pixels of the entire viewpoints in the same frame. V may indicate a more robustified L1 distance, and may be expressed by Equation 2 shown below. An L1 distance may indicate a case where m is 1 in a Minkowski distance Lm, and may correspond to the above Manhattan distance.
V(l1,l2)=min(|l1−l2|,K) Equation 2
Here, l1 may indicate a disparity of a first pixel, and l2 may indicate a disparity of a second pixel, respectively. K may indicate a constant number that may be predetermined to be similar to an experimental value, and the discontinuity may be preserved using K.
A L2 distance robustified by V may be used as necessary. For example, the robustified L2 distance may be obtained by calculating a maximum value between a distance value and a predetermined K as the above Equation 2. When calculating the robustified L2 distance, a weight of a calculated value may be constrained for a significantly large distance value, that is, for a distance value greater than or equal to a predetermined value.
According to an embodiment, considering proximate frames, a temporal smoothness may be enforced so that pixels places at the same position may have a disparity value that is as similar as possible. As described with reference to
Here, similar to the above
Here, N may correspond to a subset of a set {{p,q}|pεPp,qεPq}. Pp may indicate a set of all pixels with respect to the frame at time t−1 at n viewpoint, and Pq may indicate a set of all pixels with respect to the frame at time t at n viewpoint. V may be expressed by the above Equation 2.
The consistency of the disparity has been quantitatively described. However, to simultaneously minimize energy of all terms in all pixels, a formularization may be conducted in a Markov Random Field form as the following Equation 4.
Here, when each of x1, . . . , xn is assumed to be a disparity value, an interaction between two pixels may be expressed using Ei,j. When xi and xj interact as a result of a smoothness term, V, described with reference to the above Equation 3, may be used as a value of Ei,j.
To obtain a global minimum of the energy function, a belief propagation or graph cut process may be used. The energy function to be minimized may be defined as the following Equation 5.
E(f)=Edata(f)+Espatial(f)+Etemporal(f) Equation 5
Here, f may indicate an assigned disparity, that is, x1, . . . , xn shown in Equation 4. In Edata, a color consistency between viewpoints with respect to a predetermined disparity may be calculated, and the disparity may be determined in a state where a smoothness is not considered. A weight may be added to the temporal smoothness and a spatial smoothness depending on conditions. For example, by multiplying each of Espatital and Etemporal by a constant term, a ratio may be adjusted.
Even though only a simple type of the temporal smoothness has been considered, the temporal smoothness may be modified to be various types. For example, the temporal smoothness may be considered only with respect to a region excluding a motion of an object occurring on an image between proximate frames on the image. To consider the modified temporal smoothness, the above Equation 5 may be expressed by the following Equation 6.
if |{right arrow over (C)}t-1(f)−{right arrow over (C)}t(f)|<Th,
then, E(f)=Edata(f)+Espatial(f)+Etemporal(f)
Here, Th may indicate a predetermined threshold value, and C may indicate a value indicating a color. The above condition allows the temporal smoothness to be considered only for a case where a difference in values indicating colors at the same viewpoint of proximate frames is within a predetermined range. Etemporal corresponding to a temporal smoothness term may not be included in the energy function for a case where the difference in values indicating colors exceeds the predetermined range. The arrow above C indicates that C corresponds to a vector instead of a scalar value. Equation 5 and Equation 6 may be diversely applied, for example, to a linear model, to a Potts model, and the like.
In the embodiments, by calculating the disparity map through the global minimization, terms of the above Equations may be collaboratively optimized. Various minimizing processes may be used. In a case of using a graph cut, an existing graph cut may be modified.
Referring to
An existing graph cut may use a single graph such as the left graph 410 or the right graph 420. However, a graph temporally expanded for a temporal smoothness may connect an edge between pixels placed at corresponding positions on the left graph 410 and the right graph 420, and a global optimization may be collaboratively performed using the graph cut.
In a case of fixing a disparity map of a previous frame, a single graph may be configured instead of a graph connection connecting an edge between pixels, and a smoothness constraint may be added to an edge connected to the source or the sink. For example, energy may be expressed by a weight on an edge connected to the source or the sink. Here, a temporal interaction includes left-left interaction, center-center interaction, and right-right interaction. The temporal interaction may be expressed by the energy, and may be generated in a graph form.
A frame-by-frame operation has been described above. Hereinafter, a general process of using the operation for the entire video image will be described for a case of a three-viewpoint.
In response to an input of a first frame, an embodiment may perform a three-viewpoint disparity estimation considering only a spatial smoothness without considering a temporal smoothness. Thereafter, from a second frame, a disparity map without a flickering effect may be generated by fixing a disparity of a previous frame, and calculating only a disparity of a current frame, while considering the temporal smoothness. Since the disparity map may be generated using only the previous frame during a rendering, a disparity may be promptly calculated in response to an input of a new frame, enabling a prompt rendering.
The image acquisition unit 510 may acquire N images of a previous frame, disparity maps with respect to each of the N images, and N images of a current frame. A plurality of images with respect to a plurality of viewpoints may be inputted for each frame. The image acquisition unit 510 may further acquire a plurality of images with respect to the previous frame, a plurality of disparity maps generated in the previous frame, and a plurality of images with respect to the current frame. The additional acquisition is for considering a temporal consistency in addition to a spatial consistency, and a temporally consistent disparity map may be generated through a temporal smoothness.
The energy function setting unit 520 may set an energy function. The energy function may be classified into a region including a motion of an object and a region excluding the motion of the object. Further, the energy may be set differently depending on the region. Here, the region excluding the motion of the object may include a region where a color difference between proximate frames is less than a predetermined threshold value. For example, as shown in the above Equation 6, the energy function setting unit 520 may set the energy function to include the temporal smoothness term with respect to a region where the color difference between proximate frames is less than the predetermined threshold value. The energy function setting unit 520 may set the energy function to exclude the temporal smoothness term with respect to a region where the color difference is greater than or equal to the predetermined threshold value. For example, in a case of a boundary region of an active object, a boundary may crack due to the temporal smoothness, and thus, the energy function setting unit 520 may set the energy function to exclude the temporal smoothness term with respect to the region including the motion of the object.
The energy function may be set differently between a first frame and a frame after the first frame. For example, the energy function setting unit 520 may set the energy function to exclude the temporal smoothness term with respect to the first frame. Additionally, the energy function setting unit 520 may set the energy function to include the temporal smoothness term with respect to the second frame and the subsequent frame, since the temporal smoothness term may be defined using both a current frame and a previous frame, and the previous frame of the first frame may not exist.
As described above, the energy function setting unit 520 may set the energy function to satisfy the above conditions.
The disparity estimation unit 530 may estimate a disparity through a process of optimizing energy with respect to a disparity assignment using the energy function. Further, the energy function may be set by the energy function setting unit 520. For example, the disparity estimation unit 530 may use the energy function including the temporal smoothness term with respect to a second or subsequent frame, and with respect to the region excluding the motion of the object in the image of the frame.
Here, the temporal smoothness term may constrain a difference in the disparity with respect to pixels present at the same location at the same point in time between proximate frames of the inputted images. The temporal smoothness term may be calculated using Equation 4 based on a sum of values where each of the values is a minimum value between an absolute value of the difference and a predetermined constant value, with respect to pixels present at the same location at the same point in time between proximate frames.
For example, as shown in Equation 5, the energy term may include a spatial smoothness term constraining a difference in the disparity with respect to neighboring pixels, a data term constraining a color difference between viewpoints, and the temporal smoothness term. Each term included in the energy function may be calculated with respect to the disparity assignment using the Markov random field as shown in Equation 4.
The disparity estimation unit 530 may use a graph cut to optimize the energy with respect to the disparity assignment. In this instance, the graph cut may be performed using a graph where an edge is connected between pixels placed at the same position among pixels of a graph with respect to the previous frame and pixels of a graph with respect to a current frame. In a case of fixing the disparity map of the previous frame, a single graph may be configured without connecting graphs of proximate frames, and the graph cut is performed by adding a constraint with respect to the temporal smoothness to an edge connected to a source or a sink on the graph.
As described above, with respect to the first frame, the disparity estimation unit 530 may estimate the disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term and the spatial smoothness term. With respect to the second frame and the subsequent frame, the disparity estimation unit 530 may fix the disparity of the previous frame, and may estimate the disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term, the spatial smoothness term, and the temporal smoothness term.
In operation 610, the disparity estimation system 500 may acquire N images of a previous frame, disparity maps with respect to each of the N images, and N images of a current frame. A plurality of images with respect to a plurality of viewpoints may be inputted for each frame. The disparity estimation system 500 may further acquire a plurality of images with respect to the previous frame, a plurality of disparity maps generated in the previous frame, and a plurality of images with respect to the current frame. The additional acquisition is for considering a temporal consistency in addition to a spatial consistency, and a temporally consistent disparity map may be generated through a temporal smoothness.
In operation 620, the disparity estimation system 500 may set an energy function. The energy function may be classified into a region including a motion of an object and a region excluding the motion of the object. Further, the energy function may be set differently depending on the region. Here, the region excluding the motion of the object may include a region where a color difference between proximate frames is less than a predetermined threshold value. For example, as shown in the above Equation 6, the disparity estimation system 500 may set the energy function to include the temporal smoothness term with respect to a region where the color difference between proximate frames is less than the predetermined threshold value. The disparity estimation system 500 may set the energy function to exclude the temporal smoothness term with respect to a region where the color difference is greater than or equal to the predetermined threshold value. For example, in a case of a boundary region of an active object, a boundary may crack due to the temporal smoothness, and thus, the disparity estimation system 500 may set the energy function to exclude the temporal smoothness term with respect to the region including the motion of the object.
The energy function may be set differently for a first frame and a subsequent frame. For example, the disparity estimation system 500 may set the energy function to exclude the temporal smoothness term with respect to the first frame, and may set the energy function to include the temporal smoothness term with respect to the second frame and the subsequent frame, since the temporal smoothness term may be defined using both of a current frame and a previous frame, and the previous frame of the first frame may not exist.
As described above, the disparity estimation system 500 may set the energy function satisfying the above conditions.
In operation 630, the disparity estimation system 500 may estimate a disparity through a process of optimizing energy with respect to a disparity assignment using the energy function. In this instance, the disparity estimation system 500 may estimate the disparity through the process of optimizing energy with respect to the disparity assignment using the energy function set in operation 620. For example, the disparity estimation system 500 may use the energy function including the temporal smoothness term with respect to the frame after the first frame, and with respect to the region excluding the motion of the object in an image of a frame.
Here, the temporal smoothness term may constrain a difference in the disparity with respect to pixels present at the same location at the same point in time between proximate frames with respect to inputted images. The temporal smoothness term may be calculated as Equation 4 based on a sum of values where each of the values is a minimum value between an absolute value of the difference in the disparity and a predetermined constant value, with respect to pixels present at the same location at the same point in time between proximate frames.
For example, as shown in Equation 5, an energy term may include a spatial smoothness term constraining the difference in the disparity with respect to neighboring pixels, a data term constraining a color difference between viewpoints, and the temporal smoothness term. Each term included in the energy function may be calculated with respect to the disparity assignment using the Markov random field as shown in Equation 4.
The disparity estimation system 500 may use a graph cut to optimize the energy with respect to the disparity assignment. In this instance, the graph cut may be performed using a graph where an edge is connected between pixels placed at the same position among pixels of a graph with respect to the previous frame and pixels of a graph with respect to a current frame. In a case of fixing the disparity map of the previous frame, a single graph may be configured without connecting graphs of proximate frames, and the graph cut is performed by adding a constraint with respect to the temporal smoothness to an edge connected to a source or a sink on the single graph.
As described above, with respect to the first frame, the disparity estimation system 500 may estimate the disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term and the spatial smoothness term. With respect to the second frame and the subsequent frame, the disparity estimation system 500 may fix the disparity of the previous frame, and may estimate the disparity through a process of optimizing an energy with respect to the disparity assignment using an energy function including the data term, the spatial smoothness term, and the temporal smoothness term.
Thus, according to an embodiment, by estimating a spatially and temporally consistent disparity, a flickering effect of a screen may be reduced. Since a disparity map may be generated using only a previous frame during a rendering, a disparity may be promptly calculated in response to an input of a new frame, enabling a prompt rendering.
The disparity estimation method according to the above-described embodiments may be recorded in non-transitory computer-readable media including program instructions to implement various operations embodied by a computer. The media may also include, alone or in combination with the program instructions, data files, data structures, and the like. Examples of non-transitory computer-readable media include magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD ROM disks and DVDs; magneto-optical media such as optical disks; and hardware devices that are specially configured to store and perform program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, and the like. Examples of the magnetic recording apparatus include a hard disk device (HDD), a flexible disk (FD), and a magnetic tape (MT). Examples of the optical disk include a DVD (Digital Versatile Disc), a DVD-RAM, a CD-ROM (Compact Disc-Read Only Memory), and a CD-R (Recordable)/RW. Examples of program instructions include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The described hardware devices may be configured to act as one or more software modules in order to perform the operations of the above-described embodiments, or vice versa.
Further, according to an aspect of the embodiments, any combinations of the described features, functions and/or operations can be provided.
Although embodiments have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the disclosure, the scope of which is defined by the claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2010-0102927 | Oct 2010 | KR | national |