CN104820991A - Multi-soft-constraint stereo matching method based on cost matrix - Google Patents
Multi-soft-constraint stereo matching method based on cost matrix Download PDFInfo
- Publication number
- CN104820991A CN104820991A CN201510251429.2A CN201510251429A CN104820991A CN 104820991 A CN104820991 A CN 104820991A CN 201510251429 A CN201510251429 A CN 201510251429A CN 104820991 A CN104820991 A CN 104820991A
- Authority
- CN
- China
- Prior art keywords
- cost
- pixel
- parallax
- value
- cost matrix
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/529—Depth or shape recovery from texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/19—Recognition using electronic means
- G06V30/192—Recognition using electronic means using simultaneous comparisons or correlations of the image signals with a plurality of references
- G06V30/195—Recognition using electronic means using simultaneous comparisons or correlations of the image signals with a plurality of references using a resistor matrix
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/759—Region-based matching
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a multi-soft-constraint stereo matching method based on a cost matrix. The method comprises the following steps: calculating a three-dimensional matching cost matrix at first, then carrying out multiple-dimension downsampling, and forming a cost matrix pyramid; carrying out the corresponding multiple-dimension downsampling of an image, forming an image pyramid, and carrying out segmentation of all image layers; carrying out cost accumulation of self-adaption weight layer by layer and cost accumulation under the voting-type segmentation constraint secondly, and achieving the cost accumulation under the multiple-dimension constraint through transmitting the cost accumulation results of the upper layer to the lower cost matrix; and achieving stereo matching through combining a reliable point cost diffusion method in a bottom layer cost matrix. The method improves the stability and reliability of matching results, solves the matching problems of weak texture and repeated texture regions and parallax error discontinuous places, and can be used for improving modeling, related to the engineering application of stereo matching, based on images.
Description
Technical field
The invention belongs to computation vision and photogrammetric technology field, relate to a kind of solid matching method based on cost matrix, especially relate to a kind of solid matching method carrying out multiple soft-constraint based on cost matrix.
Background technology
Stereo matching is a basis and the key issue in computation vision and photogrammetric field.The concept of Stereo matching proposes as far back as photogrammetric field, for solving the problem of digital aerial surveying robotization mapping.Stereo matching is also the key issue of computer vision field, has influence on the vision system modeling to people, robot navigation and operation, mixes outdoor scene action etc. in the image that 3D model is set up and generated in a computer.
Stereo matching is an ill-conditioning problem, is especially difficult to comprehensive solution for shortage texture with repetition texture region and parallax discontinuous error hiding problem always.For obtaining better matching result, need rationally to include the constraint of more priori conditions in.Matching algorithm generally adopts local based on the coupling of window, utilizes image local information to improve Window match in matching process, utilizes Pyramid technology matching strategy etc. to improve stability and accuracy simultaneously.But these methods often need larger match window, cause the details being difficult to retain image.Also there are some algorithms to include Image Segmentation constraint in, but have very strong dependence for image segmentation result.In a word, traditional solid matching method is often direct reduces disparity search scope by various constraint condition, therefore very strong for priori conditions dependence, easily produces error hiding.
Occur that some pass through to improve the algorithm that cost agglomeration approach realizes coupling in recent years, self-adaptation cost agglomeration approach is such as adopted to improve local window matching algorithm, adopt multiple dimensioned cost agglomeration approach to solve the matching problem repeating texture, adopt half overall cost agglomeration approach to solve the discontinuous matching problem of parallax.The common ground of these algorithms is all realize respective constraint in cost matrix, but due to the constraint included in abundant not, be therefore difficult to solve error hiding problem more all sidedly.
Summary of the invention
The present invention mainly solves the existing problem excessively strong for priori conditions constraint dependence of prior art; Provide a kind of multiple soft-constraint cost agglomeration approach based on cost matrix simultaneously including multiple prior-constrained condition in and complete Stereo matching, effectively can solve the error hiding problem lacking texture and repeat texture region and edge.
The technical solution adopted in the present invention is: a kind of multiple soft-constraint solid matching method based on cost matrix, is characterized in that, comprise the following steps:
Step 1: concentrate at raw video and select a wherein width core line image as reference images, and to utilize AD-Census-Sobel as similarity measure to wherein each pixel, calculate the Matching power flow of each candidate disparity values, generate a three-dimensional Matching power flow matrix;
Step 2: carry out multiple dimensioned down-sampled to the cost matrix obtained in step 1, forms cost matrix pyramid;
Step 3: also carry out corresponding multiple dimensioned down-sampled to reference images, forms image pyramid;
Step 4; Respectively Iamge Segmentation is carried out to each layer image of the image pyramid obtained in step 3;
Step 5: to the cost matrix pyramid obtained in step 2, gathers the cost that each layer cost matrix carries out adaptive weighting from top layer cost matrix;
Step 6: according to the image segmentation result described in step 4, gathers the cost that the cost matrix after process in step 5 carries out under " ballot formula " segmentation constraint further;
Step 7: this layer of cost is gathered result and passes to lower floor's cost matrix;
Step 8: repeat the operation of step 5 to step 7 to pyramid cost matrix from top to bottom, until original cost matrix, finally carries out step 5 to original cost matrix and step 6 operates;
Step 9: to the cost matrix obtained after process in step 8, Least-cost is got to each pixel and mates degree of confidence and be greater than the parallax of predetermined threshold as final parallax, then in cost matrix, cost diffusion being carried out to non-match point as controlling with the point obtaining parallax, finally adopting " winner overwhelm the market " method to generate disparity map;
Step 10: concentrate at raw video and select another image as reference images, repeat above-mentioned steps 1 to step 9, generate another width disparity map, detect Mismatching point by the disparity consistency contrasting two width disparity map respective pixel, obtain removing Mismatching point disparity map; Parallax interpolation is carried out to removal Mismatching point disparity map, fills up the black hole that error hiding causes, generate complete disparity map; Utilize complete disparity map and image elements of exterior orientation, according to forward intersection principle compute depth figure and digital surface model.
As preferably, in step 1,
Described AD-Census-Sobel similarity measure is defined as follows:
Cost (p, d)=exp (α * AD (p, d)+β * Census (p, d)+γ * Sobel (p, d)) (formula one);
Wherein, p represents the pixel coordinate p (x in reference images, y), d is parallax value, α, β and γ is weight coefficient, General Requirements is positive number and alpha+beta+γ=1, AD (p, d) refer to the gray scale difference absolute value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Census (p, d) refers to the Census match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Sobel (p, d) refers to the Sobel match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof;
Calculate Matching power flow value corresponding to different parallax d according to formula one pair of reference images by pixel, form a three-dimensional Matching power flow matrix represented by image horizontal ordinate W, ordinate H and parallax value D.
As preferably, the pyramidal generation method of cost matrix described in step 2 is, keep parallax value D direction constant to the three-dimensional Matching power flow matrix obtained in step 1 and adopt gaussian pyramid to carry out down-sampled at horizontal ordinate W and ordinate H direction, multiple dimensioned cost matrix can be generated through repeatedly down-sampled in this way.
As preferably, the multiple dimensioned down-sampled method described in step 3 is, adopts gaussian pyramid to carry out down-sampled, can generate image pyramid in this way through repeatedly down-sampled to raw video at horizontal ordinate W and ordinate H direction.
As preferably, first image partition method described in step 4 for adopt existing image partition method, then after Iamge Segmentation completes, block cluster is carried out, and the classification that its element number is greater than predetermined threshold is split, again until the element number of each classification is not more than predetermined threshold.
As preferably, the cost agglomeration approach of the adaptive weighting described in step 5 is, according to Euclidean distance dist (p, q) and the grey value difference of the pixel q in window certain centered by each pixel p and this point | I
p-I
q| determine the contribution margin of pixel q for pixel p cost, all pixels of accumulation window like this for pixel p cost contribution and obtain the final cost value cost (p, d) of p, concrete computing method are as follows:
weight(q,d)=exp(α*dis(p,q)+β*|I
p-I
q|)
Wherein, weight (q, d) represents the weighted value carrying out neighborhood territory pixel when cost is gathered, the parameter related to when α, β are and calculate this weighted value, respectively corresponding Euclidean distance dist (p, q) and grey value difference | I
p-I
q| weight coefficient, General Requirements is positive number and alpha+beta=1.
As preferably, the specific implementation of step 6 comprises following sub-step:
Step 6.1: to each Iamge Segmentation block, total the cost that in this Iamge Segmentation block that adds up respectively, each parallax value of all pixels is corresponding, obtains in whole Iamge Segmentation block, the parallax that Matching power flow changes with parallax value-cost histogram;
Step 6.2: according to histogram calculation Matching power flow average, the difference of each parallax value and average and the average of these differences, and be negative to its difference and the parallax value that absolute value is greater than difference average is composed with punishment, namely compose with a negative cost value, according to said method obtain one and correspond to the histogrammic parallax of parallax-cost described in step 6.1-cost punishment histogram;
To the parallax value of each pixel, step 6.3: apply the punishment of above-mentioned cost by pixel to Iamge Segmentation block, namely according to the parallax described in step 6.2-cost punishment histogram, adds that corresponding cost is punished;
Wherein the computing method of cost punishment are as follows:
Wherein, c
dfor block corresponds to the cost of parallax d, α is weight coefficient.
As preferably, this layer of cost gathered result pass to lower floor's cost matrix described in step 7, its specific implementation comprises following sub-step:
Step 7.1: respectively one dimension least square convolution is carried out to the cost value of each pixel in disparity range; Note, the object of convolution makes upper strata Matching power flow more level and smooth with parallax change here, therefore also can adopt minimum and convolution or other convolution methods;
Step 7.2: according to pyramid pixel corresponding relation, the cost value of this layer of each pixel is added to the cost value of the corresponding parallax of lower floor's respective pixel.
As preferably, the ratio of the coupling degree of confidence described in step 9 and Matching power flow sub-minimum and minimum value, could obtain parallax first for the pixel only having coupling degree of confidence to be greater than predetermined threshold; As follows as controlling to carry out the method for cost diffusion to non-match point in cost matrix according to the point obtaining parallax: to mark match point and non-match point, then certain penalty value is deducted, shown in formula specific as follows to the parallax cost that the non-matched pixel in each match point certain window neighborhood corresponds to this match point:
Wherein, p represents match point, and q represents non-match point, and P represents penalty value, and D (p) represents the value of initial parallax figure D at p point place.
Tool of the present invention has the following advantages: in Stereo matching process, consider local grain structure and half-tone information, enhances same place ga s safety degree; Incorporate multiple dimensioned constraint, enhance the matching capacity of repetition texture region; Incorporate segmentation constraint, enhance the matching capacity of weak texture region; Carry out cost diffusion according to elementary reliable matching result, enhance coupling stability; In cost matrix, complete above institute Constrained, often kind of constraint is all the soft-constraint that directly can not determine final matching results, further enhancing stability and the reliability of matching result.
Accompanying drawing explanation
Fig. 1: be the overview flow chart of the embodiment of the present invention;
Fig. 2: multiple dimensioned down-sampled method schematic diagram is carried out to cost matrix for the embodiment of the present invention;
Fig. 3: be " ballot formula " based on cost matrix segmentation constraint cost agglomeration approach schematic diagram of the embodiment of the present invention.
Embodiment
Understand for the ease of those of ordinary skill in the art and implement the present invention, below in conjunction with drawings and Examples, the present invention is described in further detail, should be appreciated that exemplifying embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Ask for an interview Fig. 1, a kind of multiple soft-constraint solid matching method based on cost matrix provided by the invention, comprises the following steps:
Step 1: concentrate at raw video and select a wherein width core line image as reference images, and to utilize AD-Census-Sobel as similarity measure to wherein each pixel, calculate the Matching power flow of each candidate disparity values, generate a three-dimensional Matching power flow matrix;
AD-Census-Sobel similarity measure is defined as follows:
Cost (p, d)=exp (α * AD (p, d)+β * Census (p, d)+γ * Sobel (p, d)) (formula one);
Wherein, p represents the pixel coordinate p (x in reference images, y), d is parallax value, α, β and γ is weight coefficient, General Requirements is positive number and alpha+beta+γ=1, AD (p, d) refer to the gray scale difference absolute value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Census (p, d) refers to the Census match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Sobel (p, d) refers to the Sobel match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof;
Calculate Matching power flow value corresponding to different parallax d according to formula one pair of reference images by pixel, form a three-dimensional Matching power flow matrix represented by image horizontal ordinate W, ordinate H and parallax value D, size is W*H*D.
Step 2: carry out multiple dimensioned down-sampled to the cost matrix obtained in step 1, forms cost matrix pyramid;
Ask for an interview Fig. 2, the pyramidal generation method of cost matrix is, keep parallax value D direction constant to the three-dimensional Matching power flow matrix obtained in step 1 and adopt gaussian pyramid to carry out down-sampled at horizontal ordinate W and ordinate H direction, multiple dimensioned cost matrix can be generated through repeatedly down-sampled in this way.
Step 3: also carry out corresponding multiple dimensioned down-sampled to reference images, forms image pyramid; Wherein multiple dimensioned down-sampled method is, adopts gaussian pyramid to carry out down-sampled, can generate image pyramid in this way through repeatedly down-sampled to raw video at horizontal ordinate W and ordinate H direction.
Step 4; Respectively Iamge Segmentation is carried out to each layer image of the image pyramid obtained in step 3; First image partition method for adopt existing image partition method, then after Iamge Segmentation completes, block cluster is carried out, and the classification that its element number is greater than predetermined threshold is split, again until the element number of each classification is not more than predetermined threshold.
Step 5: to the cost matrix pyramid obtained in step 2, gathers the cost that each layer cost matrix carries out adaptive weighting from top layer cost matrix; The cost agglomeration approach of adaptive weighting is, according to Euclidean distance dist (p, q) and the grey value difference of the pixel q in window certain centered by each pixel p and this point | I
p-I
q| determine the contribution margin of pixel q for pixel p cost, all pixels of accumulation window like this for pixel p cost contribution and obtain the final cost value cost (p, d) of p, concrete computing method are as follows:
weight(q,d)=exp(α*dis(p,q)+β*|I
p-I
q|)
Wherein, weight (q, d) represents the weighted value carrying out neighborhood territory pixel when cost is gathered, the parameter related to when α, β are and calculate this weighted value, respectively corresponding Euclidean distance dist (p, q) and grey value difference | I
p-I
q| weight coefficient, General Requirements is positive number and alpha+beta=1.
Step 6: according to the image segmentation result described in step 4, gathers the cost that the cost matrix after process in step 5 carries out under " ballot formula " segmentation constraint further;
Ask for an interview Fig. 3, specific implementation comprises following sub-step:
Step 6.1: to each Iamge Segmentation block, total the cost that in this Iamge Segmentation block that adds up respectively, each parallax value of all pixels is corresponding, obtains in whole Iamge Segmentation block, the parallax that Matching power flow changes with parallax value-cost histogram;
Step 6.2: according to histogram calculation Matching power flow average, the difference of each parallax value and average and the average of these differences, and be negative to its difference and the parallax value that absolute value is greater than difference average is composed with punishment, namely compose with a negative cost value, according to said method obtain one and correspond to the histogrammic parallax of parallax-cost described in step 6.1-cost punishment histogram;
To the parallax value of each pixel, step 6.3: apply the punishment of above-mentioned cost by pixel to Iamge Segmentation block, namely according to the parallax described in step 6.2-cost punishment histogram, adds that corresponding cost is punished;
Wherein the computing method of cost punishment are as follows:
Wherein, c
dfor block corresponds to the cost of parallax d, α is weight coefficient.
Step 7: this layer of cost is gathered result and passes to lower floor's cost matrix; Its specific implementation comprises following sub-step:
Step 7.1: respectively according to formula, one dimension least square convolution is wantonly carried out to the cost value of each pixel in disparity range;
Wherein, cost'(d) represent cost value corresponding to parallax d after convolution, d' is other parallax value within the scope of disparity search;
Step 7.2: according to pyramid pixel corresponding relation, the cost value of this layer of each pixel is added to the cost value of the corresponding parallax of lower floor's respective pixel.
Step 8: repeat the operation of step 5 to step 7 to pyramid cost matrix from top to bottom, until original cost matrix, finally carries out step 5 to original cost matrix and step 6 operates;
Step 9: to the cost matrix that obtains after process in step 8, gets Least-cost by formula 5 to each pixel and coupling degree of confidence is greater than the parallax of predetermined threshold as final parallax, coupling degree of confidence T
confthe i.e. ratio of Matching power flow sub-minimum and minimum value, could obtain parallax first for the pixel only having coupling degree of confidence to be greater than predetermined threshold.
(formula 5);
Then match point and non-match point is marked, right back-pushed-type land deducts certain penalty value P to the parallax cost that the non-matched pixel in each match point 8 neighborhood corresponds to this match point, thus matching result is diffused into the non-match point of neighborhood with the form of the punishment of cost.
Wherein, p represents match point, and q represents non-match point, and P represents penalty value, and D (p) represents the value of initial parallax figure D at p point place.
" winner overwhelm the market " method shown in formula seven is finally adopted to generate disparity map.
Step 10: concentrate at raw video and select another image as reference images, repeat above-mentioned steps 1 to step 9, generate another width disparity map, detect Mismatching point by the disparity consistency contrasting two width disparity map respective pixel, obtain removing Mismatching point disparity map; Parallax interpolation is carried out to removal Mismatching point disparity map, fills up the black hole that error hiding causes, generate complete disparity map; Utilize complete disparity map and image elements of exterior orientation, according to forward intersection principle compute depth figure and digital surface model.
The mathematical measure of horizontal parallax consistency detection is:
LRC (p)=| D
l-R(p)-D
r-L(p+D
l-R(p)) | (formula eight);
Wherein, D
l-Rexpression is the matching result with reference to image with left figure, D
r-Lfor taking right figure as the matching result with reference to image, the match point that LRC (p) is greater than certain threshold value is considered to illegal point.
Carry out occlusion detection and parallax interpolation to above-mentioned disparity map, the existing correct match point parallax of utilization fills up the black hole that its neighborhood error hiding causes, and generates complete disparity map;
Wherein, occlusion detection method is: illegally put p in reference images, and coupling image is searched for along horizontal epipolar line direction, if there is a parallax d to make D (p+d)-d<T
d, then this point is error hiding, otherwise for blocking, shown in nine:
Parallax interpolating method is:
Wherein, D
low(q ∈ N
p) represent and from neighborhood, select less parallax, D
median(q ∈ N
p) represent from neighborhood, select parallax intermediate value.
Utilize above-mentioned disparity map and image elements of exterior orientation can by forward intersection compute depth figure or digital surface model.
Should be understood that, the part that this instructions does not elaborate all belongs to prior art.
Should be understood that; the above-mentioned description for preferred embodiment is comparatively detailed; therefore the restriction to scope of patent protection of the present invention can not be thought; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that the claims in the present invention protect; can also make and replacing or distortion, all fall within protection scope of the present invention, request protection domain of the present invention should be as the criterion with claims.
Claims (9)
1., based on a multiple soft-constraint solid matching method for cost matrix, it is characterized in that, comprise the following steps:
Step 1: concentrate at raw video and select a wherein width core line image as reference images, and to utilize AD-Census-Sobel as similarity measure to wherein each pixel, calculate the Matching power flow of each candidate disparity values, generate a three-dimensional Matching power flow matrix;
Step 2: carry out multiple dimensioned down-sampled to the cost matrix obtained in step 1, forms cost matrix pyramid;
Step 3: also carry out corresponding multiple dimensioned down-sampled to reference images, forms image pyramid;
Step 4; Respectively Iamge Segmentation is carried out to each layer image of the image pyramid obtained in step 3;
Step 5: to the cost matrix pyramid obtained in step 2, gathers the cost that each layer cost matrix carries out adaptive weighting from top layer cost matrix;
Step 6: according to the image segmentation result described in step 4, gathers the cost that the cost matrix after process in step 5 carries out under " ballot formula " segmentation constraint further;
Step 7: this layer of cost is gathered result and passes to lower floor's cost matrix;
Step 8: repeat the operation of step 5 to step 7 to pyramid cost matrix from top to bottom, until original cost matrix, finally carries out step 5 to original cost matrix and step 6 operates;
Step 9: to the cost matrix obtained after process in step 8, Least-cost is got to each pixel and mates degree of confidence and be greater than the parallax of predetermined threshold as final parallax, then in cost matrix, cost diffusion being carried out to non-match point as controlling with the point obtaining parallax, finally adopting " winner overwhelm the market " method to generate disparity map;
Step 10: concentrate at raw video and select another image as reference images, repeat above-mentioned steps 1 to step 9, generate another width disparity map, detect Mismatching point by the disparity consistency contrasting two width disparity map respective pixel, obtain removing Mismatching point disparity map; Parallax interpolation is carried out to removal Mismatching point disparity map, fills up the black hole that error hiding causes, generate complete disparity map; Utilize complete disparity map and image elements of exterior orientation, according to forward intersection principle compute depth figure and digital surface model.
2. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, is characterized in that: in step 1,
Described AD-Census-Sobel similarity measure is defined as follows:
Cost (p, d)=exp (α * AD (p, d)+β * Census (p, d)+γ * Sobel (p, d)) (formula one);
Wherein, p represents the pixel coordinate p (x in reference images, y), d is parallax value, α, β and γ is weight coefficient, General Requirements is positive number and alpha+beta+γ=1, AD (p, d) refer to the gray scale difference absolute value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Census (p, d) refers to the Census match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof, Sobel (p, d) refers to the Sobel match measure value of reference images pixel p and the conjugation pixel p+d on coupling image thereof;
Calculate Matching power flow value corresponding to different parallax d according to formula one pair of reference images by pixel, form a three-dimensional Matching power flow matrix represented by image horizontal ordinate W, ordinate H and parallax value D.
3. the multiple soft-constraint solid matching method based on cost matrix according to claim 2, it is characterized in that: the pyramidal generation method of the cost matrix described in step 2 is, keep parallax value D direction constant to the three-dimensional Matching power flow matrix obtained in step 1 and adopt gaussian pyramid to carry out down-sampled at horizontal ordinate W and ordinate H direction, multiple dimensioned cost matrix can be generated through repeatedly down-sampled in this way.
4. the multiple soft-constraint solid matching method based on cost matrix according to claim 2, it is characterized in that: the multiple dimensioned down-sampled method described in step 3 is, adopt gaussian pyramid to carry out down-sampled to raw video at horizontal ordinate W and ordinate H direction, can image pyramid be generated through repeatedly down-sampled in this way.
5. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, it is characterized in that: first the image partition method described in step 4 for adopt existing image partition method, then after Iamge Segmentation completes, block cluster is carried out, and the classification that its element number is greater than predetermined threshold is split, again until the element number of each classification is not more than predetermined threshold.
6. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, it is characterized in that: the cost agglomeration approach of the adaptive weighting described in step 5 is, according to Euclidean distance dist (p, q) and the grey value difference of the pixel q in window certain centered by each pixel p and this point | I
p-I
q| determine the contribution margin of pixel q for pixel p cost, all pixels of accumulation window like this for pixel p cost contribution and obtain the final cost value cost (p, d) of p, concrete computing method are as follows:
weight(q,d)=exp(α*dis(p,q)+β*|I
p-I
q|)
Wherein, weight (q, d) represents the weighted value carrying out neighborhood territory pixel when cost is gathered, the parameter related to when α, β are and calculate this weighted value, respectively corresponding Euclidean distance dist (p, q) and grey value difference | I
p-I
q| weight coefficient, General Requirements is positive number and alpha+beta=1.
7. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, is characterized in that: the specific implementation of step 6 comprises following sub-step:
Step 6.1: to each Iamge Segmentation block, total the cost that in this Iamge Segmentation block that adds up respectively, each parallax value of all pixels is corresponding, obtains in whole Iamge Segmentation block, the parallax that Matching power flow changes with parallax value-cost histogram;
Step 6.2: according to histogram calculation Matching power flow average, the difference of each parallax value and average and the average of these differences, and be negative to its difference and the parallax value that absolute value is greater than difference average is composed with punishment, namely compose with a negative cost value, according to said method obtain one and correspond to the histogrammic parallax of parallax-cost described in step 6.1-cost punishment histogram;
To the parallax value of each pixel, step 6.3: apply the punishment of above-mentioned cost by pixel to Iamge Segmentation block, namely according to the parallax described in step 6.2-cost punishment histogram, adds that corresponding cost is punished;
Wherein the computing method of cost punishment are as follows:
Wherein, c
dfor block corresponds to the cost of parallax d, α is weight coefficient.
8. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, is characterized in that: this layer of cost is gathered result pass to lower floor's cost matrix described in step 7, and its specific implementation comprises following sub-step:
Step 7.1: respectively one dimension least square convolution is carried out to the cost value of each pixel in disparity range;
Step 7.2: according to pyramid pixel corresponding relation, the cost value of this layer of each pixel is added to the cost value of the corresponding parallax of lower floor's respective pixel.
9. the multiple soft-constraint solid matching method based on cost matrix according to claim 1, it is characterized in that: the ratio of the coupling degree of confidence described in step 9 and Matching power flow sub-minimum and minimum value, parallax could be obtained first for the pixel only having coupling degree of confidence to be greater than predetermined threshold; As follows as controlling to carry out the method for cost diffusion to non-match point in cost matrix according to the point obtaining parallax: to mark match point and non-match point, then certain penalty value is deducted, shown in formula specific as follows to the parallax cost that the non-matched pixel in each match point certain window neighborhood corresponds to this match point:
Wherein, p represents match point, and q represents non-match point, and P represents penalty value, and D (p) represents the value of initial parallax figure D at p point place.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510251429.2A CN104820991B (en) | 2015-05-15 | 2015-05-15 | A kind of multiple soft-constraint solid matching method based on cost matrix |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510251429.2A CN104820991B (en) | 2015-05-15 | 2015-05-15 | A kind of multiple soft-constraint solid matching method based on cost matrix |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104820991A true CN104820991A (en) | 2015-08-05 |
CN104820991B CN104820991B (en) | 2017-10-03 |
Family
ID=53731276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510251429.2A Active CN104820991B (en) | 2015-05-15 | 2015-05-15 | A kind of multiple soft-constraint solid matching method based on cost matrix |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104820991B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106340036A (en) * | 2016-08-08 | 2017-01-18 | 东南大学 | Binocular stereoscopic vision-based stereo matching method |
CN107316326A (en) * | 2017-06-29 | 2017-11-03 | 海信集团有限公司 | Applied to disparity map computational methods of the binocular stereo vision based on side and device |
CN107507232A (en) * | 2017-07-14 | 2017-12-22 | 天津大学 | Stereo Matching Algorithm based on multiple dimensioned iteration |
CN107635127A (en) * | 2016-07-05 | 2018-01-26 | 现代自动车株式会社 | Need the Stereo image matching apparatus and method calculated on a small quantity |
CN108513120A (en) * | 2017-05-18 | 2018-09-07 | 苏州纯青智能科技有限公司 | A kind of three-dimensional image matching method based on left and right sight |
CN109886968A (en) * | 2019-02-18 | 2019-06-14 | 中国科学院遥感与数字地球研究所 | A kind of linear array remote sensing image dense Stereo Matching method |
TWI665906B (en) * | 2018-07-04 | 2019-07-11 | 中華精測科技股份有限公司 | Method for detecting and processing stereoscopic image |
CN110060283A (en) * | 2019-04-17 | 2019-07-26 | 武汉大学 | It is a kind of to estimate half global dense Stereo Matching algorithm more |
CN110176060A (en) * | 2019-04-28 | 2019-08-27 | 华中科技大学 | Dense three-dimensional rebuilding method and system based on the guidance of multiple dimensioned Geometrical consistency |
CN110910438A (en) * | 2018-09-17 | 2020-03-24 | 中国科学院沈阳自动化研究所 | High-speed stereo matching algorithm for ultrahigh-resolution binocular image |
CN111462195A (en) * | 2020-04-09 | 2020-07-28 | 武汉大学 | Irregular angle direction cost aggregation path determination method based on mainline constraint |
CN112070819A (en) * | 2020-11-11 | 2020-12-11 | 湖南极点智能科技有限公司 | Face depth image construction method and device based on embedded system |
CN113610964A (en) * | 2021-05-18 | 2021-11-05 | 电子科技大学 | Three-dimensional reconstruction method based on binocular vision |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026013A (en) * | 2010-12-18 | 2011-04-20 | 浙江大学 | Stereo video matching method based on affine transformation |
CN102665086A (en) * | 2012-04-26 | 2012-09-12 | 清华大学深圳研究生院 | Method for obtaining parallax by using region-based local stereo matching |
CN103325120A (en) * | 2013-06-30 | 2013-09-25 | 西南交通大学 | Rapid self-adaption binocular vision stereo matching method capable of supporting weight |
-
2015
- 2015-05-15 CN CN201510251429.2A patent/CN104820991B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026013A (en) * | 2010-12-18 | 2011-04-20 | 浙江大学 | Stereo video matching method based on affine transformation |
CN102665086A (en) * | 2012-04-26 | 2012-09-12 | 清华大学深圳研究生院 | Method for obtaining parallax by using region-based local stereo matching |
CN103325120A (en) * | 2013-06-30 | 2013-09-25 | 西南交通大学 | Rapid self-adaption binocular vision stereo matching method capable of supporting weight |
Non-Patent Citations (4)
Title |
---|
HEIKO HIRSCHM¨ULLER AND DANIEL SCHARSTEIN: "Evaluation of Stereo Matching Costs on Images with Radiometric Differences", 《IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE》 * |
YONGJUN ZHANG 等: "Direct relative orientation with four independent constraints", 《2011 INTERNATIONAL SOCIETY FOR PHOTOGRAMMETRY AND REMOTE SENSING》 * |
孔相澧 等: "基于全局优化的保细节分层多视图立体匹配", 《计算机辅助设计与图形学学报》 * |
杨玉娟 等: "分层正交动态规划立体匹配算法", 《中国科学技术大学学报》 * |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107635127A (en) * | 2016-07-05 | 2018-01-26 | 现代自动车株式会社 | Need the Stereo image matching apparatus and method calculated on a small quantity |
CN107635127B (en) * | 2016-07-05 | 2020-06-12 | 现代自动车株式会社 | Stereoscopic image matching apparatus and method requiring small amount of calculation |
CN106340036A (en) * | 2016-08-08 | 2017-01-18 | 东南大学 | Binocular stereoscopic vision-based stereo matching method |
CN108513120A (en) * | 2017-05-18 | 2018-09-07 | 苏州纯青智能科技有限公司 | A kind of three-dimensional image matching method based on left and right sight |
CN107316326A (en) * | 2017-06-29 | 2017-11-03 | 海信集团有限公司 | Applied to disparity map computational methods of the binocular stereo vision based on side and device |
CN107316326B (en) * | 2017-06-29 | 2020-10-30 | 海信集团有限公司 | Edge-based disparity map calculation method and device applied to binocular stereo vision |
CN107507232B (en) * | 2017-07-14 | 2020-06-16 | 天津大学 | Stereo matching method based on multi-scale iteration |
CN107507232A (en) * | 2017-07-14 | 2017-12-22 | 天津大学 | Stereo Matching Algorithm based on multiple dimensioned iteration |
TWI665906B (en) * | 2018-07-04 | 2019-07-11 | 中華精測科技股份有限公司 | Method for detecting and processing stereoscopic image |
CN110910438B (en) * | 2018-09-17 | 2022-03-22 | 中国科学院沈阳自动化研究所 | High-speed stereo matching algorithm for ultrahigh-resolution binocular image |
CN110910438A (en) * | 2018-09-17 | 2020-03-24 | 中国科学院沈阳自动化研究所 | High-speed stereo matching algorithm for ultrahigh-resolution binocular image |
CN109886968A (en) * | 2019-02-18 | 2019-06-14 | 中国科学院遥感与数字地球研究所 | A kind of linear array remote sensing image dense Stereo Matching method |
CN110060283A (en) * | 2019-04-17 | 2019-07-26 | 武汉大学 | It is a kind of to estimate half global dense Stereo Matching algorithm more |
CN110176060B (en) * | 2019-04-28 | 2020-09-18 | 华中科技大学 | Dense three-dimensional reconstruction method and system based on multi-scale geometric consistency guidance |
CN110176060A (en) * | 2019-04-28 | 2019-08-27 | 华中科技大学 | Dense three-dimensional rebuilding method and system based on the guidance of multiple dimensioned Geometrical consistency |
CN111462195A (en) * | 2020-04-09 | 2020-07-28 | 武汉大学 | Irregular angle direction cost aggregation path determination method based on mainline constraint |
CN111462195B (en) * | 2020-04-09 | 2022-06-07 | 武汉大学 | Irregular angle direction cost aggregation path determination method based on dominant line constraint |
CN112070819A (en) * | 2020-11-11 | 2020-12-11 | 湖南极点智能科技有限公司 | Face depth image construction method and device based on embedded system |
CN112070819B (en) * | 2020-11-11 | 2021-02-02 | 湖南极点智能科技有限公司 | Face depth image construction method and device based on embedded system |
CN113610964A (en) * | 2021-05-18 | 2021-11-05 | 电子科技大学 | Three-dimensional reconstruction method based on binocular vision |
CN113610964B (en) * | 2021-05-18 | 2023-06-02 | 电子科技大学 | Three-dimensional reconstruction method based on binocular vision |
Also Published As
Publication number | Publication date |
---|---|
CN104820991B (en) | 2017-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104820991A (en) | Multi-soft-constraint stereo matching method based on cost matrix | |
CN105205808B (en) | Multi-view images dense Stereo Matching fusion method and system based on multiple features multiple constraint | |
CN104156968B (en) | Large-area complex-terrain-region unmanned plane sequence image rapid seamless splicing method | |
US10521694B2 (en) | 3D building extraction apparatus, method and system | |
CN104536009B (en) | Above ground structure identification that a kind of laser infrared is compound and air navigation aid | |
US10477178B2 (en) | High-speed and tunable scene reconstruction systems and methods using stereo imagery | |
CN106504284A (en) | A kind of depth picture capturing method combined with structure light based on Stereo matching | |
Chen et al. | Transforming a 3-d lidar point cloud into a 2-d dense depth map through a parameter self-adaptive framework | |
CN101901343A (en) | Remote sensing image road extracting method based on stereo constraint | |
CN103822616A (en) | Remote-sensing image matching method with combination of characteristic segmentation with topographic inequality constraint | |
CN104376535A (en) | Rapid image repairing method based on sample | |
CN102804231A (en) | Piecewise planar reconstruction of three-dimensional scenes | |
CN104517317A (en) | Three-dimensional reconstruction method of vehicle-borne infrared images | |
CN102750711A (en) | Binocular video depth map obtaining method based on image segmentation and motion estimation | |
CN107103610B (en) | automatic detection method for suspicious region matched with satellite images in stereo mapping | |
CN112435267B (en) | Disparity map calculation method for high-resolution urban satellite stereo image | |
CN103985154A (en) | Three-dimensional model reestablishment method based on global linear method | |
Stucker et al. | ResDepth: Learned residual stereo reconstruction | |
EP4287137A1 (en) | Method, device, equipment, storage media and system for detecting drivable space of road | |
CN114119884A (en) | Building LOD1 model construction method based on high-score seven-satellite image | |
CN102903111A (en) | Stereo matching algorithm for large low-texture area based on image segmentation | |
CN107341823B (en) | A kind of minimum branch's solid matching method based on Fusion Features | |
Zhou et al. | Monet3d: Towards accurate monocular 3d object localization in real time | |
Parmehr et al. | Automatic registration of optical imagery with 3d lidar data using local combined mutual information | |
CN107578429B (en) | Stereo image dense matching method based on dynamic programming and global cost accumulation path |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |