Disparity estimation method for weakly supervised trusted cost propagation

Information

  • Patent Grant
  • 11315273
  • Patent Number
    11,315,273
  • Date Filed
    Thursday, March 5, 2020
    4 years ago
  • Date Issued
    Tuesday, April 26, 2022
    2 years ago
Abstract
The present invention discloses a disparity estimation method for weakly supervised trusted cost propagation, which utilizes a deep learning method to optimize the initial cost obtained by the traditional method. By combining and making full use of respective advantages, the problems of false matching and difficult matching of untextured regions in the traditional method are solved, and the method for weakly supervised trusted cost propagation avoids the problem of data label dependency of the deep learning method.
Description
TECHNICAL FIELD

The present invention belongs to the field of image processing and computer vision, relates to binocular disparity estimation and utilizes a deep learning method to optimize the initial cost obtained by the traditional method. The present invention particularly relates to a disparity estimation method for weakly supervised trusted cost propagation.


BACKGROUND

Depth is a distance from a target to an observer as important spatial information, which can be used to extract some important attributes (such as speed and three-dimensional position) and relationships (such as blocking and transgression) of the target and has important significance for target tracking and behavior perception. Binocular depth perception uses stereo matching to calculate the disparity between the corresponding points of two images. According to the triangulation measurement principle, the depth values of the corresponding points in a scenario are calculated by internal and external parameters of a binocular camera. The existing binocular disparity estimation methods mainly comprise three categories: the first category is a traditional binocular disparity estimation method which is mainly based on geometric constraints and generally divided into matching cost calculation, cost aggregation, disparity estimation and disparity optimization. The most classic method is the SGM (semi-global matching) algorithm, with the characteristic that the cost of each pixel is optimized by the cost of the pixels in corresponding eight direction paths of the corresponding positions, to solve the matching problem of untextured regions to a certain extent. The traditional method is accurate in estimating a sparse disparity, but the limitations are great in estimating a dense disparity, such as many parameters, time and force consumption in adjusting parameters to adapt to different scenarios, difficult feature design and insufficient energy propagation, and the traditional method especially has severe defects in regions of specular reflection, low light, transparency and no texture. The second category is the disparity estimation method based on deep learning, such as searching and matching by features obtained by a network, disparity optimization realized by left and right consistency constraints, and learning supervision. In recent two years, researchers have proposed the method for realizing the energy propagation process by 3D convolution, which further improves the interpretability of the network. In order to solve the problem of data dependency, the researchers propose an unsupervised method using left and right reconstruction consistency, a transfer learning method based on domain adaptation concept and the like. The above data-driven based learning method can obtain a feature model with stronger expression ability. On one hand, semantic information can be fully considered, and on the other hand, more abundant relationship features among pixels can be learned. Therefore, a final disparity diagram is more accurate and smooth than the traditional method, but has the problems of strong data dependency and poor generalization ability of the scenario. The third category is an estimation method that combines deep learning with the traditional method. For example, for the SGM algorithm, the estimation effect of SGM dense disparity can be significantly improved by using the network to automatically allocate penalty coefficients for different scenarios and different pixels. For energy propagation, the literature uses the network to estimate the confidence of each pixel and conduct an energy propagation process according to the confidence. Although these methods that combine deep learning with the traditional method have strong interpretability, they still do not make full use of the respective advantages of the two methods. Therefore, these methods do not show the advantages in accuracy compared with an end-to-end learning method, and do not show the advantages in generalization ability and data dependence degree compared with a sparse matching method.


On the basis of the above problems, the present invention proposes a binocular disparity estimation method which combines deep learning with the traditional method, makes full use of the respective advantages of the traditional method and the deep learning method, optimizes the rough initial cost obtained by the traditional method by using weakly supervised deep learning to obtain an accurate cost diagram and solves a series of problems in the process of obtaining the dense disparity diagram such as difficulty in obtaining true disparity data labels, poor generalization ability across datasets and false matching of untextured and repeated textured regions.


SUMMARY

The present invention aims to overcome the defects of the prior art and provides a disparity estimation method for weakly supervised trusted cost propagation, which combines deep learning with the traditional method, optimizes the initial cost diagram obtained by the traditional method by using a weakly supervised deep learning method and effectively utilizes the respective advantages of the traditional method and the deep learning method to obtain a more accurate disparity diagram.


The specific solution comprises the following steps:


A binocular disparity estimation method based on weakly supervised trusted cost propagation comprises:


step 1, obtaining a sparse and accurate initial cost diagram by the traditional feature matching method, i.e., a non-deep learning method;


step 2, conducting energy propagation; and optimizing the initial cost diagram by a three-dimensional convolutional network;


step 3, conducting disparity regression; converting the optimized initial cost diagram into a probability diagram which is a probability that each pixel belongs to each disparity; then, obtaining a subpixel disparity through Soft Argmax; and finally obtaining a dense disparity diagram.


The present invention has the following beneficial effects:


The present invention proposes a binocular disparity estimation method which combines the traditional disparity estimation with deep learning. By combining and making full use of respective advantages, the problems of false matching and difficult matching of untextured regions in the traditional method are solved, and the method for weakly supervised trusted cost propagation avoids the problem of data label dependency of the deep learning method.





DESCRIPTION OF DRAWINGS


FIG. 1 is an overall flow chart of a solution; and



FIG. 2 is an effect diagram of disparity estimation. (a) left diagram, (b) right diagram, and (c) disparity diagram.





DETAILED DESCRIPTION

To overcome the problems of difficulty in obtaining true disparity data labels, poor generalization ability across datasets and easy false matching of untextured and repeated textured regions in disparity estimation, the present invention proposes a binocular disparity estimation solution based on weakly supervised trusted cost propagation (FIG. 1), comprising the main steps:


Step 1, obtaining a sparse and accurate cost diagram by the traditional feature matching method. By taking a matching method based on Census features as an example, the present invention comprises the following specific steps:


1.1 An input image is denoised and filtered by a Gaussian filtering algorithm. The weight of a Gaussian filtering window is determined by a Gaussian function (formula 1).










h


(

x
,
y

)


=

e

-



x
2

+

y
2



2


σ
2









(
1
)







wherein (x,y) is a point coordinate and σ is a standard deviation. The Gaussian function is discretized to obtain a weight matrix, i.e., a Gaussian filter.


Through Gaussian filtering, noise can be effectively suppressed and the image is smoothed. Subsequent matching errors caused by the noise are prevented.


1.2 The input image is matched to obtain the initial cost diagram with sparse and accurate disparity.


Initial cost calculation is conducted. Sliding window matching based on Census features is taken as an example herein to describe the flow of matching cost calculation.


A Census feature descriptor of each pixel is obtained. A sliding window is used for search on a scanning line to calculate the cost corresponding to the possible disparity of each pixel (formula 2):











Cost

d
,

d


D
max






(

x
,
y

)


=

HD


(



Census

L



(

x
,
y

)


,


Census

R



(


x
-
d

,
y

)



)






(
2
)







In the formula, HD(⋅) represents a Hamming distance, and CensusL and CensusR are respectively Census feature descriptors of a left diagram pixel and a right diagram pixel. The output of cost calculation is a tensor of size height (H)×width (W)×maximum disparity (D), i.e., the cost diagram.


Step 2, conducting energy propagation. The traditional energy propagation model is based on manual prior features, has limited description capability, cannot conduct effective energy propagation in the same plane in which the texture is too rich or the scenario includes many untextured and weakly textured regions, and is easy to cause false matching. The present invention optimizes the cost diagram through the three-dimensional convolutional network by utilizing strong advantages of feature representation and context learning of deep learning. The input is the intermediate output of 1.2, i.e., a four-dimensional tensor composed of similarity feature vectors of each pixel relative to each possible matching point. A loss function corresponding to an energy propagation network is:






loss
=




x

Ω







I
x
l

-


I
~

x
l









wherein Ω is a point beyond a sparse point set, Ixl is a point x on the left diagram, and Ĩxl is a point x on the left diagram reconstructed according to the right diagram and the disparity.


Step 3, conducting disparity regression. A similarity tensor is converted into a probability tensor by a network (i.e., a probability that each pixel belongs to each disparity); and a subpixel disparity is obtained through Soft Argmax. In practical application, the method only needs to input the left diagram and the right diagram, and can output a sparse disparity diagram or a dense disparity diagram as required.

Claims
  • 1. A binocular disparity estimation method based on weakly supervised trusted cost propagation, comprising the following steps: step 1, obtaining a sparse and accurate initial cost diagram by the traditional feature matching method, i.e., a non-deep learning method;step 2, conducting energy propagation; and optimizing the initial cost diagram by a three-dimensional convolutional network;step 3, conducting disparity regression; converting the optimized initial cost diagram into a probability diagram which is a probability that each pixel belongs to each disparity; then, obtaining a subpixel disparity through Soft Argmax; and finally obtaining a dense disparity diagram,wherein step 1 of using the traditional feature matching method which is a matching method based on Census features specifically comprises the following steps:1) denoising and filtering an input image by a Gaussian filtering algorithm, and determining the weight of a Gaussian filtering window by a Gaussian function, formula (1);
Priority Claims (1)
Number Date Country Kind
202010028299.7 Jan 2020 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2020/077960 3/5/2020 WO 00
Publishing Document Publishing Date Country Kind
WO2021/138991 7/15/2021 WO A
US Referenced Citations (4)
Number Name Date Kind
20210027081 Zhang Jan 2021 A1
20210042954 Guo Feb 2021 A1
20210150745 Yang May 2021 A1
20210150747 Liu May 2021 A1
Foreign Referenced Citations (5)
Number Date Country
103440653 Dec 2013 CN
109241966 Jan 2019 CN
109816710 May 2019 CN
110533712 Dec 2019 CN
WO 2018211127 Nov 2018 WO
Non-Patent Literature Citations (1)
Entry
Somi Jeong, et al. Convolutional cost aggregation for robust stereo matching. 2017 IEEE International Conference on Image Processing. ICIP 2017. Sep. 30, 2017, pp. 2523-2527.
Related Publications (1)
Number Date Country
20220092809 A1 Mar 2022 US