METHOD FOR PROCESSING AT LEAST ONE DISPARITY MAP, CORRESPONDING ELECTRONIC DEVICE AND COMPUTER PROGRAM PRODUCT

Information

  • Patent Application
  • 20150117757
  • Publication Number
    20150117757
  • Date Filed
    October 08, 2014
    9 years ago
  • Date Published
    April 30, 2015
    9 years ago
Abstract
In one embodiment, it is proposed a method for processing at least one disparity map associated to at least one left view and one right view of stereovision images. Such method is remarkable in that it comprises determining at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of the at least one disparity map associated to pixels that belong to a neighborhood of the given pixel or group of pixels, said disparity values being weighted in function of a value obtained from the at least one disparity map and at least one other disparity map.
Description
TECHNICAL FIELD

The disclosure relates to the field of disparity maps determination techniques. More precisely, the disclosure is a technique of post-processing technique applied on a disparity map.


BACKGROUND

This section is intended to introduce the reader to various aspects of art, which may be related to various aspects of the present invention that are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present invention. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.


Disparity map of a pair of stereo images or views (obtained for example from two cameras positioned in a horizontal arrangement) can be defined as being a map comprising the set of the difference of position of a same pixel or a same group of pixels between such pair of stereo image. Therefore, a disparity map provides information to a position of an object in a three dimension scene due to the fact that a disparity value is inversely proportional to depth value. Indeed, objects with greater disparity appear to be closer to a viewer, and objects with smaller disparity appear to be farther to the viewer. Hence, determining an accurate disparity map is quite important in order to obtain a good 3D display. Moreover, it should be noticed that when a 3D movie must be displayed, several disparity maps must be determined from several temporally consecutive frames (each frame comprising at least a left view and one right view).


In the state of the art, several techniques are known to improve the accuracy of the determination of disparity maps (e.g. to obtain refinement of disparity maps). We can roughly classify these techniques in two groups: the one that focus on the improvement of the determination of a disparity map itself (either in the matching process, or more generally in depth generation algorithms), or on post processing of the determination of a disparity map (e.g. a processing (generally iterative) on a given disparity map). An example of a post-processing technique is described in the document WO 2013/079602 which discloses a technique that relies on the use of a selector filter applied to a given disparity map that selects either a first filter or a second filter to be applied to an area of a disparity map. Another example of a post-processing technique is described in the document US 2012/0321172. Such technique relies on the determination and the use of a confidence map (that comprise confidence values) in order to refine a disparity map. However, the determination of a confidence value necessitates to obtain a match quality information between a pixel or a group of pixels in the right image view and the corresponding pixel or group of pixels in the left image view. Hence, a drawback of such technique is that it is complex from a computation point of view. Another example of a post-processing technique is described in the document WO 2012/177166. Such technique is an iterative estimation technique of a disparity map. Another example of post-processing technique is described in the document US 2013/0176300 which uses a bilateral filter by taking into account some uniform data enabling to achieve a kind of spatial consistency. Another way of improving the accuracy of disparity maps is to take into account the evolution of areas in disparity maps in time. Indeed, due to the fact that disparity maps related to the display of a 3D movie evolve in the time, some techniques such as the one described in the document US 2012/0099767 focus on ensuring the consistency between disparity maps obtained from temporally consecutive frames (that comprise at least a left and a right view). These techniques enable to remove unwanted temporal artifacts. That kind of technique can also be combined with the previous mentioned ones as in the article “Spatio-Temporal consistency in video disparity estimation” by R. Khoshabeh published in the proceedings of IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP '11).


However, all the mentioned techniques have a common drawback. Indeed, these techniques do not prevent the occurrence of wrong matching of pixels that induces non accurate disparity maps. Moreover, in order to implement these techniques, complex operations have to be done, that use a lot of resources (especially they induce a heavy load for processors). The present technique overcomes these issues.


SUMMARY

References in the specification to “one embodiment”, “an embodiment”, “an example embodiment”, indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.


The present disclosure is directed to a method for processing at least one disparity map associated to at least one left view and one right view of stereovision images. Such method is remarkable in that it comprises a step of determining at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of said at least one disparity map associated to pixels that belong to a neighborhood of said given pixel or group of pixels, said disparity values being weighted in function of a value obtained from said at least one disparity map and at least one other disparity map.


The modified disparity map obtained via such method has a good spatial consistency. Therefore, it is easier and more efficient to compress such modified disparity map.


In a preferred embodiment, such method for processing is remarkable in that said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images.


In a preferred embodiment, such method for processing is remarkable in that said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images.


In a preferred embodiment, such method for processing is remarkable in that said modified disparity value for a given pixel Pi,j having coordinates (xi,yj) is determined by the following equation dnA(xi,yj)=Σt,vWPijPtvdn-1A(Ptv)/Σt,vWPijPtv where pixels Ptv belong to a neighborhood of said given pixel Pi,j, A is an index indicating if said disparity value is a left disparity value or a right disparity value, n is an index indicating that said disparity value is a modified disparity value, and n−1 is an index indicating that said disparity value is a disparity value from said at least one disparity map, and WPijPtv is a weight associated to a disparity value dn-1A(Ptv).


In a preferred embodiment, such method for processing is remarkable in that said weight WPijPtv is defined by the following equation: WPijPtv=e−|dn-1L(xt−dn-1R(xt,yv),yv)+dn-1R(xt,yv)|, the pixel Ptv having for coordinates (xt,yv).


In a preferred embodiment, such method for processing is remarkable in that said weight WPijPtv is defined by an equation








W


P
ij



P
tv



=



-

(



δ
0

-
1




Δ


P
ij



P
tv



(
0
)



+


δ
1

-
1




Δ


P
ij



P
tv



(
1
)



+


δ
2

-
1




Δ


P
ij



P
tv



(
2
)



+


δ
3

-
1




Δ


P
ij



P
tv



(
3
)




)




,




said pixel Ptv having for coordinates (xt,yv), where a function Δ(0)PijPtv is a function that takes into account the color similarity between pixels Pij and Ptv, that is defined by equation







Δ


P
ij



P
tv



(
0
)


=




c


{

r
,
g
,
b

}









I
c



(

P
ij

)


-


I
c



(

P
tv

)










where a function Ic(u) is the luminance of the c color channel component which is either a red (r), green (g) or blue (b)) channel for a pixel u, a function






Δ


P
ij



P
tv



(
1
)





is defined by an equation








Δ


P
ij



P
tv



(
1
)


=





d

n
-
1

R



(

P
ij

)


-


d

n
-
1

R



(

P
tv

)






,




a function






Δ


P
ij



P
tv



(
2
)





is defined by an equation







Δ


P
ij



P
tv



(
2
)


=







P
ij

-

P
tv






2





where ∥·∥ is the Euclidian norm, and a function






Δ


P
ij



P
tv



(
3
)





is defined by an equation







Δ


P
ij



P
tv



(
3
)


=


d

n
-
1

L

(



x
t

-



d

n
-
1

R



(


x
t

,

y
v


)





d

n
-
1

R



(


x
t

,

y
v


)




,






and elements δ0, δ1, δ2 and δ3 are weights applied respectively to







Δ


P
ij



P
tv



(
0
)


,

Δ


P
ij



P
tv



(
1
)


,


Δ


P
ij



P
tv



(
2
)







and







Δ


P
ij



P
tv



(
3
)


.






In a preferred embodiment, such method for processing is remarkable in that said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images comprised in a frame associated to a given time t, and said at least one other disparity map is a left disparity map obtained from at least one left view and one right view of stereovision images comprised in a frame associated to an previous time t−1, close to said given time.


In another embodiment, such method for processing is remarkable in that said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images comprised in a frame associated to a given time t, and said at least one other disparity map is a right disparity map obtained from at least one left view and one right view of stereovision images comprised in a frame associated to an previous time t−1, close to said given time.


According to an exemplary implementation, the different steps of the method are implemented by a computer software program or programs, this software program comprising software instructions designed to be executed by a data processor of an electronic device (or module) according to the disclosure and being designed to control the execution of the different steps of this method.


Consequently, an aspect of the disclosure also concerns a program liable to be executed by a computer or by a data processor, this program comprising instructions to command the execution of the steps of a method as mentioned here above.


This program can use any programming language whatsoever and be in the form of a source code, object code or code that is intermediate between source code and object code, such as in a partially compiled form or in any other desirable form.


The disclosure also concerns an information medium readable by a data processor and comprising instructions of a program as mentioned here above.


The information medium can be any entity or device capable of storing the program. For example, the medium can comprise a storage means such as a ROM (which stands for “Read Only Memory”), for example a CD-ROM (which stands for “Compact Disc-Read Only Memory”) or a microelectronic circuit ROM or again a magnetic recording means, for example a floppy disk or a hard disk drive.


Furthermore, the information medium may be a transmissible carrier such as an electrical or optical signal that can be conveyed through an electrical or optical cable, by radio or by other means. The program can be especially downloaded into an Internet-type network.


Alternately, the information medium can be an integrated circuit into which the program is incorporated, the circuit being adapted to executing or being used in the execution of the method in question.


According to one embodiment, an embodiment of the disclosure is implemented by means of software and/or hardware components. From this viewpoint, the term “module” can correspond in this document both to a software component and to a hardware component or to a set of hardware and software components.


A software component corresponds to one or more computer programs, one or more sub-programs of a program, or more generally to any element of a program or a software program capable of implementing a function or a set of functions according to what is described here below for the module concerned. One such software component is executed by a data processor of a physical entity (terminal, server, etc.) and is capable of accessing the hardware resources of this physical entity (memories, recording media, communications buses, input/output electronic boards, user interfaces, etc.).


Similarly, a hardware component corresponds to any element of a hardware unit capable of implementing a function or a set of functions according to what is described here below for the module concerned. It may be a programmable hardware component or a component with an integrated circuit for the execution of software, for example an integrated circuit, a smart card, a memory card, an electronic board for executing firmware (comprised in a TV set module), etc.


In another embodiment, it is proposed an electronic device for processing at least one disparity map associated to at least one left view and one right view of stereovision images. Such electronic device is remarkable in that it comprises means for determining at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of said at least one disparity map associated to pixels that belong to a neighborhood of said given pixel or group of pixels, said disparity values being weighted in function of a value obtained from said at least one disparity map and at least one other disparity map.


In another embodiment, such electronic device is remarkable in that said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images.


In another embodiment, such electronic device is remarkable in that said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images.


In another embodiment, such electronic device is remarkable in that said modified disparity value for a given pixel Pi,j having coordinates (xi,yj) determined by means that can compute the following equation dnA(xi,yj)=Σt,vWPijPtvdn-1A(Ptv)/Σt,vWPijPtv where pixels Ptv belong to a neighborhood of said given pixel Pi,j, A is an index indicating if said disparity value is a left disparity value or a right disparity value, n is an index indicating that said disparity value is a modified disparity value, and n−1 is an index indicating that said disparity value is a disparity value from said at least one disparity map, and WPijPtv is a weight associated to a disparity value dn-1A(Ptv).


In another embodiment, such electronic device is remarkable in that said weight WPijPtv is defined by the following equation: WPijPtv=e−|dn-1L(xt−dn-1R(xt,yv),yv)+dn-1R(xt,yv)|, the pixel Ptv having for coordinates (xt,yv).


In another embodiment, such electronic device is remarkable in that said weight WPijPtv is defined by an equation








W


P
ij



P
tv



=



-

(



δ
0

-
1




Δ


P
ij



P
tv



(
0
)



+


δ
1

-
1




Δ


P
ij



P
tv



(
1
)



+


δ
2

-
1




Δ


P
ij



P
tv



(
2
)



+


δ
3

-
1




Δ


P
ij



P
tv



(
3
)




)




,




said pixel Ptv having for coordinates (xt,yv), where a function






Δ


P
ij



P
tv



(
0
)





takes into account the color similarity between pixels Pij and Ptv, that is defined by equation







Δ


P
ij



P
tv



(
0
)


=




c


{

r
,
g
,
b

}









I
C



(

P
ij

)


-


I
C



(

P
tv

)










where a function Ic(u) is the luminance of the c color channel component which is either a red (r), green (g) or blue (b)) channel for a pixel u, a function






Δ


P
ij



P
tv



(
1
)





is defined by an equation








Δ


P
ij



P
tv



(
1
)


=





d

n
-
1

R



(

P
ij

)


-


d

n
-
1

R



(

P
tv

)






,




a function






Δ


P
ij



P
tv



(
2
)





is defined by an equation







Δ


P
ij



P
tv



(
2
)


=







P
ij

-

P
tv






2





where ∥·∥ is the Euclidian norm, and a function








Δ


P
ij



P
tv



(
3
)


=



d

n
-
1

L



(



x
t

-


d

n
-
1

R



(


x
t

,

y
v


)



,

y
v


)


+


d

n
-
1

R



(


x
t

,

y
v


)




,




is defined by an equation








Δ


P
ij



P
tv



(
3
)


=



d

n
-
1

L



(



x
t

-


d

n
-
1

R



(


x
t

,

y
v


)



,

y
v


)


+


d

n
-
1

R



(


x
t

,

y
v


)




,




and elements δ0, δ1, δ2 and δ3 are weights applied respectively to







Δ


P
ij



P
tv



(
0
)


,

Δ


P
ij



P
tv



(
1
)


,


Δ


P
ij



P
tv



(
2
)







and







Δ


P
ij



P
tv



(
3
)


.









BRIEF DESCRIPTION OF DRAWINGS

The above and other aspects of the disclosure will become more apparent by the following detailed description of exemplary embodiments thereof with reference to the attached drawings in which:



FIG. 1 presents a left view and a right view of stereovision images;



FIG. 2 presents a filtering device that takes as input two disparity map and outputs a refined disparity map, according to one embodiment of the invention;



FIG. 3 presents the use of a filtering device according to one embodiment of the invention that is temporally consistent;



FIG. 4 presents a device that can be used to perform one or several steps of methods or processing disclosed in the present document.





DESCRIPTION OF EMBODIMENTS


FIG. 1 presents a left view and a right view of stereovision images. Let's remark that these images are aligned in the sense that epipolar lines between the two images are aligned. Hence, a pixel in one image is on the same line in the other image (i.e. they have the same “y” coordinate). The present disclosure takes into account some relationship between pixels of these images.


Indeed, the following equations hold for a same pixel P in the left view image (i.e. the pixel P has the following coordinates in the left view image: (xL,y)), referenced 101, and in the right view image (i.e. the same pixel P has the following coordinates in the right view image (xR,y)), referenced 102:






x
R
=x
L
−d
L(xL,y) and xL=xR−dR(xR,y)


with dL(.,.) is the disparity value for the left view, and dR(.,.) is the disparity value for the right view. More precisely, the value dL(.,.) corresponds to the horizontal distance between two matching pixels, in that case from a pixel in the left view image that the equivalent is searched in the right view image. The value dR(.,.) corresponds to the horizontal distance between two matching pixels, in that case from a pixel in the right view image that the equivalent is searched in the left view image.


Therefore, from these definition, it is interesting to remark that the following equation must also hold: dL(xL,y)=dR(xR,y), that can also be written as dL(xL,y)+dR(xR,y)=0, or also dL(xL,y)+dR(xL−dL(xL,y),y)=0. The equation can also be written as follows: dL(xR dR(xR,y),y)+dR(xR,y)=0 However, in disparity estimation, it appears that such equation is not always verified due to approximation issues. Indeed, in the case that left and right view images comprise large un-textured areas, for pixels comprised in these areas, it appears that dL(xL,y)+dR(xR,y)>>0. One purpose of one embodiment of the invention is to provide a consistency between left and right disparity maps. In order to achieve this goal, a definition of consistency (from a spatial point of view) must be given: the left and right disparity maps are considered as being consistent if the following condition holds: |dL(xL,y)+dR(xR,y)|≦ε, with a threshold ε that is chosen so that 0≦ε≦2.


One purpose of one embodiment of the invention is to use the consistency distance defined as |dL(xL,y)+dR(xR,y)|=dL(xR dR(xR,y),y)+dR(xR,y)=dL(xL,y)+dR(xL−dL(xL,y),y)


that can be used in a filtering process (see FIG. 2). Indeed, such relationship enables to define the following new kernel function: e−|dL(xL,y)+dR(xL−dL(xL,y),y|/σ being a parameter that can be used as an amplifying factor. This kernel behaves well in the philosophy of the bilateral filtering. Indeed, for perfectly consistent pixel pairs, the consistency distance is equal to zero and the kernel value is equal to one. While, with growing consistency distances, the kernel tends toward zero, hence the pixel weight will be very low and the corresponding disparity will not be propagated in the filtering. By introducing this kernel in the bilateral filter, only pixels for which the disparity is consistent are propagated.



FIG. 2 presents a filtering device that takes as input a disparity map and outputs a refined disparity map, according to one embodiment of the invention.


In the state of the art, it is well known to apply to an estimated disparity map a filter (unilateral or bilateral) in order to refine a disparity map. For reminders, a filter can be viewed as a way to smoothen a given disparity map by substituting the disparity value of a pixel (or group of pixels) by a weighted mean of disparity values taken in the neighborhood of such pixel (or group of pixels). The FIG. 2 presents such filtering process that takes into account the relationship mentioned in the FIG. 1 (and more precisely the consistency from a disparity point of view). More precisely, a filtering device, referenced 202, receives as input a left disparity map, referenced 200, and a right disparity map, referenced 201.


The filter device 202 determines and outputs either a modified left disparity map or a modified right disparity map, such modified disparity map being referenced 203. In another embodiment, the filter device 202 outputs both modified disparity maps. The disparity value for a pixel positioned at the coordinates (xi,yj) in the left disparity map 200 and in the right disparity map 201 are noted respectively dn-1L(xi,yj) and dn-1R(xi,yj), where n is an integer corresponding to an index value. The disparity value for a pixel positioned at the coordinates (xi,yj) in the modified right disparity map 203 or in the modified left disparity map 203 is noted respectively dnR(xi,yj) and dnL(xi,yj).


From the description of the FIG. 1, we must have dkL(xi,yj),yj),yj)+dkR(xi,yj)=0, or dkL(xi,yj)+dkR(xi−dkL(xi,yj),yj)=0, for all kεcustom-character, and (i,j)εcustom-character2.


Now, let's describe the case where only the modified right disparity map 203 is outputted by the filter device 202.


In such embodiment, the filter device 202 comprises means for performing the following computation for each pixel Pij of the right disparity map 201: dnR(Pij)=dnR(xi,yj)=Σt,vWPijPtvdn-1R(Ptv)/Σt,vWPijPtv, that corresponds to the “new” or modified estimation of the disparity value for the pixel Pij, noted dnR(Pij)=dnR(xi,yj), and for which several pixels Ptv (which has the coordinates (xt,yv)) that are in the neighborhood of the pixel of interest Pij are used. Let's remark that WPijPtv corresponds to the weight of the pixel Ptv in the determination of the disparity of the pixel Pij. In one embodiment, such neighborhood can be defined by a window that surrounds the pixel of interest Pij as the box referenced 204. In one embodiment, such box has a length of 51 pixels and a width of 21 pixels. In another embodiment, square box can be used, where the length of a side is equal to 21 pixels, or 51 pixels. The larger the size of the neighborhood is, the more surrounding pixels Ptv are used in order to determine a disparity value. Such computation is a filtering computation. In some implementations, the size of the neighboring (that can be a square, a rectangle, a circle, etc.)) is a variable parameter (i.e. a non-fixed parameter). For example, in one embodiment, the neighborhood is a sliding window. According to one embodiment of the invention, the weight WPijPtv is determined in function of the following distance value: |dn-1L(xt dn-1R(xt,yv),yv)+dn-1R(xt,yv)| or |dn-1L(xt,yv)+dn-1R(xt−dn-1L(xt,yv),yv)|,yv)|. Hence, by using such distance value, the present disclosure aims to give more importance to consistent pixels around a given pixels in order to determine a disparity value. For example, the weight WPijPtv can be defined as follows:






W
P

ij

P

tv

=e
−|d

n-1


L

(x

t

−d

n-1


R

(x

t

,y

v

),y

v

)+d

n-1


R

(x

t

,y

v

)|/σ


In another embodiment, the weight Wxy, is defined as follows:






W
P

ij

P

tv

=e
−F(d

n-1


L

(x

t

−d

n-1


R

(x

t

,y

v

),y

v

),d

n-1


R

(x

t

,y

v

))/σ


In one embodiment, the function F can be defined as follows: F (a, b)=|a+b|. In another embodiment, the function F can be defined as follows: (a, b)=(a+b)n, with the parameter n being a non negative integer. In another embodiment, n is a real value. Indeed, in one embodiment, the value of the parameter n is chosen as being equal to ½.


In another embodiment, the weight WPijPtv is defined as follows:







W


P
ij



P
tv



=



-

(



δ
0

-
1




Δ


P
ij



P
tv



(
0
)



+


δ
1

-
1




Δ


P
ij



P
tv



(
1
)



+


δ
2

-
1




Δ


P
ij



P
tv



(
2
)



+


δ
3

-
1




Δ


P
ij



P
tv



(
3
)




)











Δ


P
ij



P
tv



(
0
)





with is a function that takes into account the color similarity between pixels Pij and Ptv, that is defined as follows:







Δ


P
ij



P
tv



(
0
)


=




c


{

r
,
g
,
b

}









I
c



(

P
ij

)


-


I
c



(

P
tv

)










with the function Ic(u) is the luminance of the c color channel component (i.e. which is either the red (r), green (g) or blue (b)) for a pixel u. The function






Δ


P
ij



P
tv



(
1
)





is defined as follows:







Δ


P
ij



P
tv



(
1
)


=






d

n
-
1

R



(

P
ij

)


-


d

n
-
1

R



(

P
tv

)





.





Moreover, the function






Δ


P
ij



P
tv



(
2
)





is defined as follows:







Δ


P
ij



P
tv



(
2
)


=







P
ij

-

P
tv






2





where ∥·∥ is the Euclidian norm. At last,







Δ


P
ij



P
tv



(
3
)


=



d

n
-
1

L



(



x
t

-


d

n
-
1

R



(


x
t

,

y
v


)



,

y
v


)


+


d

n
-
1

R



(


x
t

,

y
v


)







that was already mentioned previously. Let's remark that the elements δ0, δ1, δ2 and δ3 are weights applied respectively to







Δ


P
ij



P
tv



(
0
)


,

Δ


P
ij



P
tv



(
1
)


,


Δ


P
ij



P
tv



(
2
)







and







Δ


P
ij



P
tv



(
3
)


.






Such new weight defines a filtering computation that can be viewed as a trilateral filter (compared to the bilateral filter known in the state of the art). With such trilateral filter, the left and right disparities are filtered at each level of a hierarchical search (such hierarchical search is depicted for example in the article: “Dense Disparity Estimation Using a HierarchicalMatching Technique from Uncalibrated StereoVision” by L. Nalpantidis et al., and published in the proceedings of the conference IST 2009 (International Workshop on Imaging Systems and Techniques). One very important advantage of such filtering technique according to one embodiment of the invention, beside the consistency, is that the disparity maps are also better (in term of quality of relevant disparity values). Usually, borders of foreground objects have always lacked some sharpness due to the propagation of bad disparities by the bilateral filter. Here, the bad disparity values have been often removed by the consistency distance kernel and good disparity propagated instead in that region, hence foreground object borders have improved and are much sharper than before.


In another embodiment of the invention, the filtering device 202 takes only as input a left view and a right view of stereovision images, and a disparity map (the left one or the right one). The filtering device 202 determines the “missing” disparity map (either the left one or the right one, depending on the disparity map inputted to the filtering device 202) that enables it to perform the same process as described previously.


In another embodiment of the invention, the filtering device takes only in input a left view and a right view of stereovision images. In that case, the filtering generates one or two disparity maps.



FIG. 3 presents the use of a filtering device according to one embodiment of the invention that is temporally consistent.


In such embodiment, it is possible to refine the disparity map through the determination of temporal consistency in disparity maps.


More precisely, a frame at time t that comprises a left view (referenced 300), and a right view (referenced 301) of stereovision images are provided to a device, referenced 302, that determines a left disparity map, referenced 303, and a right disparity map, referenced 304. Then the disparity maps 303 and 304 are used as input to a filtering device, referenced 305. Such filtering device 305 comprises means that enable it to perform the same process as the one depicted in relation with the FIG. 2. In one embodiment, at least one intermediate disparity map (either an intermediate right disparity map and/or an intermediate left right disparity) is obtained and the filtering device 305 takes also in input at least one disparity map obtained through the processing of the frame at time frame t−1 (corresponding to either a right and/or left disparity obtained from the processing of the frame t−1), named a previous disparity map, referenced 306. Then a filtering process that uses the consistency distance criteria between such at least one intermediate disparity map and such at least one previous disparity map is performed. More precisely, such filtering process is based on the fact that dL(x,y) at time t, noted dL,(t)(x,y) should be the same as dL(x,y) at time t+1, noted dL,(t+1)(x,y) (or on the fact that dR(x,y) at time t, noted dR,(t)(x,y) should be the same as dR(x,y) at time t+1, noted dR,(t+1)(x,y)). Hence, the difference of these values should be equal to 0 (in case of a perfect matching). In that case, an additional kernel value e−|dL,(t+1)(x,y)−dL,(t)(x,y)|/σ can be used. In another embodiment, an additional kernel value e−|dR,(t+1)(x,y)−dR,(t)(x,y)|/σ can be used. Let's remark that the parameter σ is a parameter that can be used as an amplifying factor. In another embodiment of the invention, such filtering that can be qualified as a temporal filtering can use several previous disparity map from time t−1 to t−k (just until a cut was detected for example). The filtering device 305 outputs at least one disparity map, referenced 307 that is spatially and temporally consistent. The received frame at time t+1 that comprises a left view (referenced 308), and a right view (referenced 309) of stereovision images are provided to the device 302, that determines a left disparity map, referenced 310, and a right disparity map, referenced 311. Then the disparity maps 310 and 311 are used as input to a filtering device 305, as well as the disparity map, referenced 307 (that can be viewed at time t+1 as a previous disparity map). Then the filtering device 305 outputs at least one disparity map, referenced 312 that is spatially and temporally consistent, and such process is executed for all the received frames.


It should be pointed out that such filtering technique takes automatically into account the moving objects from frame t to t+1. Indeed, an object that has moved induces an important consistency distance, and the filter weight will be nearly zero, and the pixel in the moving area won't be propagated by the filtering. There is no need here to distinguish moving from stationary pixels when applying the filtering, or no need to apply two different filtering in moving or stationary zones like in known prior art technique.


In another embodiment, the device 302 only outputs one disparity map (either the left one or the right one). It should also be noted that such filtering technique improves also the disparity maps of a single estimation where there was not a right disparity map to compare to remove and process inconsistent pixels.


The filtering method according to one embodiment of the invention can be implemented in such way that it can be executed by a GPU (for “Graphics Processing Unit”). Moreover, such filtering method is compliant with the context of real-time estimation.


In another embodiment, the use of such filtering method is combined with a cut detection algorithm, a panning and/or a zooming detection algorithm (or more generally an algorithm that is able to detect an important change in the scene) that de-activate the spatio-temporal consistency kernel. Hence, the filtering method according to one embodiment of the invention is linked to an output of such change detection algorithms.



FIG. 4 presents a device that can be used to perform one or several steps of methods or process disclosed in the present document.


Such device referenced 400 comprises a computing unit (for example a CPU, for “Central Processing Unit”), referenced 401, and one or several memory units (for example a RAM (for “Random Access Memory”) block in which intermediate results can be stored temporarily during the execution of instructions of a computer program, or a ROM block in which, among other things, computer programs are stored, or an EEPROM (“Electrically-Erasable Programmable Read-Only Memory”) block, or a flash block) referenced 402. Computer programs are made of instructions that can be executed by the computing unit. Such device 400 can also comprise a dedicated unit, referenced 403, constituting an input-output interface to allow the device 400 to communicate with other devices. In particular, this dedicated unit 403 can be connected with an antenna (in order to perform communication without contacts), or with serial ports (to carry communications “contact”). Let's remark that the arrows in FIG. 4 means that the linked unit can exchange data through buses for example together.


In an alternative embodiment, some or all of the steps of the method previously described, can be implemented in hardware in a programmable FPGA (“Field Programmable Gate Array”) component or ASIC (“Application-Specific Integrated Circuit”) component.


In an alternative embodiment, some or all of the steps of the method previously described, can be executed on an electronic device comprising memory units and processing units as the one disclosed in the FIG. 4.

Claims
  • 1. Method for processing at least one disparity map associated to at least one left view and one right view of stereovision images, wherein it comprises determining at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of said at least one disparity map associated to pixels that belong to a neighborhood of said given pixel or group of pixels, said disparity values being weighted in function of a value obtained from said at least one disparity map and at least one other disparity map.
  • 2. Method for processing according to claim 1, wherein said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images.
  • 3. Method for processing according to claim 1, wherein said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images.
  • 4. Method for processing according claim 1, wherein said modified disparity value for a given pixel having coordinates (xi,yj) is determined by the following equation dnA(xi,yj)=Σt,vWPijPtvdn-1A(Ptv)/Σt,vWPijPtv where pixels Ptv belong to a neighborhood of said given pixel Pi,j, A is an index indicating if said disparity value is a left disparity value or a right disparity value, n is an index indicating that said disparity value is a modified disparity value, and n−1 is an index indicating that said disparity value is a disparity value from said at least one disparity map, and WPijPtv is a weight associated to a disparity value dn-1A(Ptv).
  • 5. Method for processing according to claim 4, wherein said weight WPijPtv is defined by the following equation: WPijPtv=e−|dn-1L(xt−dn-1R(xt,yv),yv)+dn-1R(xt,yv)|, the pixel Ptv having for coordinates (xt,yv).
  • 6. Method for processing according to claim 4, wherein said weight WPijPtv is defined by an equation
  • 7. Method for processing according to claim 1, wherein said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images comprised in a frame associated to a given time t, and said at least one other disparity map is a left disparity map obtained from at least one left view and one right view of stereovision images comprised in a frame associated to an previous time t−1, close to said given time.
  • 8. Method for processing according to claim 1, wherein said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images comprised in a frame associated to a given time t, and said at least one other disparity map is a right disparity map obtained from at least one left view and one right view of stereovision images comprised in a frame associated to an previous time t−1, close to said given time.
  • 9. A computer-readable and non-transient storage medium storing a computer program comprising a set of computer-executable instructions to implement a method for processing at least one disparity map when the instructions are executed by a computer, wherein the instructions comprise instructions, which when executed, configure the computer to perform a method for processing at least one disparity map associated to at least one left view and one right view of stereovision images, wherein it comprises determining at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of said at least one disparity map associated to pixels that belong to a neighborhood of said given pixel or group of pixels, said disparity values being weighted in function of a value obtained from said at least one disparity map and at least one other disparity map.
  • 10. Electronic device for processing at least one disparity map associated to at least one left view and one right view of stereovision images, wherein it comprises a module configured to determine at least one modified disparity map that comprises, for a given pixel or group of pixels, a modified disparity value determined in function of disparity values of said at least one disparity map associated to pixels that belong to a neighborhood of said given pixel or group of pixels, said disparity values being weighted in function of a value obtained from said at least one disparity map and at least one other disparity map.
  • 11. Electronic device according to claim 10, wherein said at least one disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images.
  • 12. Electronic device according to claim 10, wherein said at least one disparity map is a right disparity map obtained from said at least one left view and one right view of stereovision images, and said least one other disparity map is a left disparity map obtained from said at least one left view and one right view of stereovision images.
  • 13. Electronic device according to claim 10, wherein said modified disparity value for a given pixel Pi,j having coordinates (xi,yj) is determined by a module configured to compute the following equation dnA(xi,yj)=Σt,vWPijPtvdn-1A(Ptv)/Σt,vWPijPtv where pixels Ptv belong to a neighborhood of said given pixel Pi,j, A is an index indicating if said disparity value is a left disparity value or a right disparity value, n is an index indicating that said disparity value is a modified disparity value, and n−1 is an index indicating that said disparity value is a disparity value from said at least one disparity map, and WPijPtv is a weight associated to a disparity value dn-1A(Ptv).
  • 14. Electronic device according to claim 13, wherein said weight WPijPtv is defined by the following equation: WPijPtv=e−|dn-1L(xt−dn-1R(xt,yv),yv)+dn-1R(xt,yv)|, the pixel Ptv having for coordinates (xt,yv).
  • 15. Electronic device according to claim 13, wherein said weight WPijPtv is defined by an equation
Priority Claims (1)
Number Date Country Kind
13306395.8 Oct 2013 EP regional