CN105023263A - Shield detection and parallax correction method based on region growing - Google Patents

Shield detection and parallax correction method based on region growing Download PDF

Info

Publication number
CN105023263A
CN105023263A CN201410166476.2A CN201410166476A CN105023263A CN 105023263 A CN105023263 A CN 105023263A CN 201410166476 A CN201410166476 A CN 201410166476A CN 105023263 A CN105023263 A CN 105023263A
Authority
CN
China
Prior art keywords
parallax
region
question open
pixel
value
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
Application number
CN201410166476.2A
Other languages
Chinese (zh)
Other versions
CN105023263B (en
Inventor
张毅
柏连发
庞星
韩静
岳江
金左轮
赵壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN201410166476.2A priority Critical patent/CN105023263B/en
Publication of CN105023263A publication Critical patent/CN105023263A/en
Application granted granted Critical
Publication of CN105023263B publication Critical patent/CN105023263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a shield detection and parallax correction method based on region growing. Firstly an initial parallax graph is obtained via a tree structure dynamic programming algorithm, then a shield region and a region influenced by shielding are detected via a growing method of a doubt region at the edge of the initial parallax graph, and finally refilling is performed on the pixel point parallax values of the shield region and the region influenced by shielding by utilizing a color channel vectorization method so that a final parallax graph is obtained. Mismatching rate of shielding on the shield region and the region influenced by shielding can be obviously reduced.

Description

A kind of based on the occlusion detection of region growing and the method for parallax correction
Technical field
The invention belongs to technical field of image processing, be specifically related to a kind of based on the occlusion detection of region growing and the method for parallax correction.
Background technology
Eclipse phenomena is the study hotspot of binocular solid coupling always.Because the scenery degree of depth is different, distance video camera scenery far away is blocked by the scenery that distance video camera is nearer, thus can not be projected on video camera imaging face and form image.Namely under a certain viewpoint, visible scene areas may become occlusion area under another viewpoint, as shown in Figure 2.Eclipse phenomena causes larger error hiding to overall disparity map.The simple and effective detection occlusion area of existing certain methods energy, row are as parallax histogram peak rule of three (BMD), and the succession leash law (ORD) of matching double points, blocks leash law (OCC).These methods can only qualitative detection partial occlusion region, accurately cannot obtain occlusion area, simultaneously, these class methods are not all considered by blocking the region a little affected, the disparity map finally obtained has comparatively big error, coupling accuracy is low, so a kind of region-growing method that leaves a question open based on initial parallax image border of proposition of novelty determines the region being subject to eclipse phenomena impact, is called region of leaving a question open herein.
The regional processing that leaves a question open effectively can reduce the error hiding in this region.List of references (Q Yang, L Wang, R Yang, eta1.Stereo matching with color-weighted correlation, hierarchical belief propagation andocclusion handling [C], 2008) utilize the parallax probability of the geometrical constraint between Iamge Segmentation block and the pixel in block, estimate the optimum parallax value of incredible pixel.These class methods effectively estimate the parallax approximate value by blocking the pixel affected, but depend on algorithm segmentation result, so part better not realizing by blocking the disparity estimation a little affecting pixel, the parallax value of mistake being filled, causes increasing matching error.
Summary of the invention
The present invention proposes a kind of based on the occlusion detection of region growing and the method for parallax correction, obviously can reduce and block to occlusion area with by the error hiding rate of blocking range of influence.
In order to solve the problems of the technologies described above, the invention provides a kind of based on the occlusion detection of region growing and the method for parallax correction, comprising the following steps:
Step one: read binocular image I to be matched land I rif, left view I lfor image to be matched, right view I rfor matching image, obtain size and the Color Channel information of image;
Step 2: the dynamic programming algorithm using tree construction, obtains matching image I rin each match point at image I to be matched lthe point to be matched of middle correspondence, calculates shift differences and the parallax value of each match point and point to be matched, then parallax value is stored in initial parallax matrix, obtains initial parallax figure;
Step 3: detect the region of leaving a question open based on initial parallax figure according to the initial parallax matrix of step 2, described in region of leaving a question open be occlusion area and by the set of blocking the region affected;
Step 4: by Color Channel vectorization method, calculate in region of leaving a question open and leave a question open a little and each non-similarity left a question open a little in correcting window T, choose and a little the most similar non-pixel that leaves a question open that leaves a question open, using the non-pixel parallax value that leaves a question open as the parallax value left a question open a little, thus complete the parallax correction of parallax matrix;
Step 5: the parallax matrix corrected in step 4 is detected leave a question open region and parallax correction again, then step 3 is returned, repeat step 3 to step 5 calculating until in parallax matrix parallax point parallax value do not changing, terminate to correct, obtain the parallax matrix that correction of a final proof completes, parallax value in final parallax matrix is mapped to corresponding gray space [0,255], generates final parallax.
The present invention compared with prior art, its remarkable advantage is: (1) obtains initial parallax figure by tree construction dynamic programming algorithm, when extracting border to initial parallax figure, the error hiding reduced in background is also extracted into border, effectively reduces the interference of complex background; (2) detect occlusion area by the region-growing method that leaves a question open of initial parallax image border and blocked range of influence, not only consider occlusion area, consider the error hiding by blocking range of influence simultaneously, to occlusion area with blocked range of influence and all carry out parallax correction, effectively improve the coupling accuracy of algorithm; (3) Color Channel vectorization method is utilized to refill to occlusion area with by the pixel parallax value of blocking range of influence, the color data difference reduced between pixel is little, essence represents error hiding when different colours, than the single color similarity compared between the more effective judgement pixel of color difference; (4) the inventive method entirety does not need to depend on Iamge Segmentation, algorithm is comparatively simple, effective reduction algorithm complexity, counting yield far above above-mentioned based on the overall situation and the algorithm of Iamge Segmentation, effectively evade that to block the parallax caused fuzzy simultaneously, effective process is the information dropout caused because blocking the impact caused disparity map, improves the correct matching rate of disparity map.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram.
Fig. 2 be binocular solid coupling block schematic diagram.
Fig. 3 is the Teddy standard testing image that the Middlebury test platform of emulation experiment of the present invention employing provides, and Fig. 3 (a) is Teddy standard testing left view, and Fig. 3 (b) is Teddy standard testing right view.
Fig. 4 uses the initial parallax figure and final parallax that shown in the inventive method process Fig. 3, binocular image obtains, and wherein Fig. 4 (a) is initial parallax figure, Fig. 4 (b) is final parallax.
Embodiment
The present invention proposes a kind of based on the occlusion detection of region growing and the method for parallax correction, by Color Channel vectorization method, calculate and leave a question open a little and the non-similarity left a question open a little, choose and a little the most similar pixel that leaves a question open, using its parallax value as the parallax value left a question open a little, thus complete parallax correction.As shown in Figure 1, specifically comprise the following steps:
Step one: read binocular image I to be matched land I rif, left view I lfor image to be matched, right view I rfor matching image, obtain size and the Color Channel information of image;
Step 2: the dynamic programming algorithm using tree construction, obtains matching image I rin each match point at image I to be matched lthe point to be matched of middle correspondence, calculates shift differences and the parallax value of each match point and point to be matched, then parallax value is stored in initial parallax matrix, obtains initial parallax figure.The dynamic programming algorithm of tree construction is specifically see document (M.Bleyer and M.Gelautz, Simple but Effective Tree Structures for DynamicProgramming-Based Stereo Matching [C], 2008)
Step 3: detect the region of leaving a question open based on initial parallax figure according to the initial parallax matrix of step 2, described in region of leaving a question open be occlusion area and by the set of blocking the region affected.The present invention defines the outside of initial growth point, and namely " outward direction of growth " is by larger parallax value regional orientation comparatively disparity value region, for being blocked range of influence; The inside of initial growth point, namely " inward direction of growth " is by the comparatively larger parallax value region of disparity value regional orientation, is occlusion area.The process detected based on the region of leaving a question open of initial parallax figure is:
3.1. utilize canny operator to extract edge to initial parallax figure, obtain the boundary set based on initial parallax matrix, using the frontier point of boundary set as the initial growth point detecting region of leaving a question open.
Left pixel parallax value d in initial parallax matrix of 3.2 calculating growing points lwith right pixel parallax value d in initial parallax matrix of growing point rdifference, using the width that this difference grows left and to the right as growing point, so the difference of twice is width w (p) in region of leaving a question open corresponding to frontier point, the computing formula of w (p) is as follows:
w(p)=2*(|d l-d r|)
The whole boundary set of 3.3 traversal, does same treatment to each frontier point, tries to achieve the region of leaving a question open of the whole boundary set of the correspondence after growth, the pixel gray-scale value in region of leaving a question open is labeled as 1, rest of pixels point gray-scale value is 0, is stored in and leaves a question open in matrix, complete the mark to region of leaving a question open.
Step 4: by Color Channel vectorization method, calculate in region of leaving a question open and leave a question open a little and each non-similarity left a question open a little in correcting window T, choose and a little the most similar non-pixel that leaves a question open that leaves a question open, using the non-pixel parallax value that leaves a question open as the parallax value left a question open a little, thus complete the parallax correction of parallax matrix.Detailed process is:
Leaving a question open of being labeled in matrix of determining to leave a question open is some pixel p to be corrected, according to color vector formulae discovery at image I to be matched lpixel p to be corrected and correcting window T centered by pixel p to be corrected in non-other pixels leaving a question open concentrated between color cost value E m, with color cost value E mjudge to leave a question open in region and leave a question open a little and each non-similarity left a question open a little in correcting window T, color cost value E mlarger, leave a question open a little and the non-similarity left a question open a little higher, color cost value E maccount form be:
E M = max p , q ∈ T , q ∉ o ^ v → p · v → q / ( | v → p | · | v → q | )
Wherein, represent that pixel p to be corrected is at image I to be matched lcolor Channel numerical value. the non-concentrated any pixel that leaves a question open in expression correcting window T is at image I to be matched lcolor Channel numerical value.
The parallax value of the non-pixel that leaves a question open maximum for similarity is considered as reliable parallax, assignment gives pixel p to be corrected, terminate current operation and turn next pixel to be corrected, the pixel parallax value corrected is stored in new parallax matrix, realizing leaving a question open area filling so repeatedly.
Step 5: the parallax matrix corrected in step 4 is detected leave a question open region and parallax correction again, then step 3 is returned, repeat step 3 to step 5 calculating until in parallax matrix parallax point parallax value do not changing, terminate to correct, obtain the parallax matrix that correction of a final proof completes, parallax value in final parallax matrix is mapped to corresponding gray space [0,255], generates final parallax.
The beneficial effect of the inventive method can be further illustrated by following simulation result:
As shown in Figure 3, the Teddy standard testing image that the present invention chooses Middlebury test platform and provides is tested.Fig. 3 (a) is Teddy standard testing left view, and Fig. 3 (b) is Teddy standard testing right view.
Use the inventive method process binocular image as shown in Figure 4, Fig. 4 is obtained in step 2 of the present invention, Fig. 4 (a) is for calculating the teddy disparity map obtained, the teddy disparity map that Fig. 4 (b) completes for the inventive method by tree construction dynamic programming algorithm to the Teddy standard testing image that Middlebury test platform provides., as the border of the Little Bear in Fig. 4 (a) and the borderline region of toy house, there is obvious error hiding, and obviously improve in Fig. 4 (b), reduce the error hiding in this region in borderline region in Fig. 4 (a).Significantly can find out that the inventive method has good corrective action to the error hiding that eclipse phenomena causes.

Claims (4)

1., based on the occlusion detection of region growing and a method for parallax correction, it is characterized in that, comprise the following steps:
Step one: read binocular image I to be matched land I rif, left view I lfor image to be matched, right view I rfor matching image, obtain size and the Color Channel information of image;
Step 2: the dynamic programming algorithm using tree construction, obtains matching image I rin each match point at image I to be matched lthe point to be matched of middle correspondence, calculates shift differences and the parallax value of each match point and point to be matched, then parallax value is stored in initial parallax matrix, obtains initial parallax figure;
Step 3: detect the region of leaving a question open based on initial parallax figure according to the initial parallax matrix of step 2, described in region of leaving a question open be occlusion area and by the set of blocking the region affected;
Step 4: by Color Channel vectorization method, calculate in region of leaving a question open and leave a question open a little and each non-similarity left a question open a little in correcting window T, choose and a little the most similar non-pixel that leaves a question open that leaves a question open, using the non-pixel parallax value that leaves a question open as the parallax value left a question open a little, thus complete the parallax correction of parallax matrix;
Step 5: the parallax matrix corrected in step 4 is detected leave a question open region and parallax correction again, then step 3 is returned, repeat step 3 to step 5 calculating until in parallax matrix parallax point parallax value do not changing, terminate to correct, obtain the parallax matrix that correction of a final proof completes, parallax value in final parallax matrix is mapped to corresponding gray space [0,255], generates final parallax.
2. as claimed in claim 1 based on the occlusion detection of region growing and the method for parallax correction, it is characterized in that, step 3 is specially:
2.1. utilize canny operator to extract edge to initial parallax figure, obtain the boundary set based on initial parallax matrix, using the frontier point of boundary set as the initial growth point detecting region of leaving a question open;
Left pixel parallax value d in initial parallax matrix of 2.2 calculating growing points lwith right pixel parallax value d in initial parallax matrix of growing point rdifference, using the width that this difference grows left and to the right as growing point, so the difference of twice is width w (p) in region of leaving a question open corresponding to frontier point, the computing formula of w (p) is as follows:
w(p)=2*(|d l-d r|)
The whole boundary set of 2.3 traversal, does same treatment to each frontier point, tries to achieve the region of leaving a question open of the whole boundary set of the correspondence after growth, the pixel gray-scale value in region of leaving a question open is labeled as 1, rest of pixels point gray-scale value is 0, is stored in and leaves a question open in matrix, complete the mark to region of leaving a question open.
3. as claimed in claim 1 based on the occlusion detection of region growing and the method for parallax correction, it is characterized in that, step 4 is specially: leaving a question open of being labeled in matrix of determining to leave a question open is some pixel p to be corrected, according to color vector formulae discovery at image I to be matched lpixel p to be corrected and correcting window T centered by pixel p to be corrected in non-other pixels leaving a question open concentrated between color cost value E m, by color cost value E mthe parallax value of the maximum non-pixel that leaves a question open is considered as reliable parallax, gives pixel p to be corrected by its parallax value assignment, terminates current operation and turns next pixel to be corrected, the pixel parallax value corrected is stored in new parallax matrix.
4. as claimed in claim 3 based on the occlusion detection of region growing and the method for parallax correction, it is characterized in that, color cost value E maccount form be:
E M = max p , q ∈ T , q ∉ o ^ v → p · v → q / ( | v → p | · | v → q | )
Wherein, represent that pixel p to be corrected is at image I to be matched lcolor Channel numerical value. the non-concentrated any pixel that leaves a question open in expression correcting window T is at image I to be matched lcolor Channel numerical value.
CN201410166476.2A 2014-04-22 2014-04-22 A kind of method of occlusion detection and parallax correction based on region growing Active CN105023263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410166476.2A CN105023263B (en) 2014-04-22 2014-04-22 A kind of method of occlusion detection and parallax correction based on region growing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410166476.2A CN105023263B (en) 2014-04-22 2014-04-22 A kind of method of occlusion detection and parallax correction based on region growing

Publications (2)

Publication Number Publication Date
CN105023263A true CN105023263A (en) 2015-11-04
CN105023263B CN105023263B (en) 2017-11-14

Family

ID=54413205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410166476.2A Active CN105023263B (en) 2014-04-22 2014-04-22 A kind of method of occlusion detection and parallax correction based on region growing

Country Status (1)

Country Link
CN (1) CN105023263B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106251326A (en) * 2016-07-02 2016-12-21 桂林理工大学 A kind of building occlusion detection utilizing ghost picture and occlusion area compensation method
CN108564536A (en) * 2017-12-22 2018-09-21 洛阳中科众创空间科技有限公司 A kind of global optimization method of depth map
WO2020253805A1 (en) * 2019-06-19 2020-12-24 京东方科技集团股份有限公司 Disparity map correction method and apparatus, terminal, and non-transitory computer-readable storage medium
CN112218039A (en) * 2020-08-21 2021-01-12 上海光俊科技股份有限公司 Comprehensive pole intelligent management system and method based on Internet of things
CN112233164A (en) * 2020-09-18 2021-01-15 南京理工大学 Method for identifying and correcting error points of disparity map
WO2022179359A1 (en) * 2021-02-24 2022-09-01 嘉楠明芯(北京)科技有限公司 Image stereo matching method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321299A (en) * 2007-06-04 2008-12-10 华为技术有限公司 Parallax generation method, generation cell and three-dimensional video generation method and device
CN103714543A (en) * 2013-12-26 2014-04-09 南京理工大学 Simple tree dynamic programming binocular and stereo matching method based on invariant moment spatial information
CN103731651A (en) * 2012-10-10 2014-04-16 索尼公司 Image processing device, image processing method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321299A (en) * 2007-06-04 2008-12-10 华为技术有限公司 Parallax generation method, generation cell and three-dimensional video generation method and device
CN103731651A (en) * 2012-10-10 2014-04-16 索尼公司 Image processing device, image processing method, and program
CN103714543A (en) * 2013-12-26 2014-04-09 南京理工大学 Simple tree dynamic programming binocular and stereo matching method based on invariant moment spatial information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LE THANH SACH,ET AL.: "A Robust Stereo Matching Method for Low Texture Stereo Images", 《COMPUTING AND COMMUNICATION TECHNOLOGIES,2009.RIVF"09.INTERNATION CONFERENCE ON》 *
QINGXIONG YANG, ET AL.: "Stereo Matching with Color-Weighted Correlation, Hierarchical Belief Propagation,and Occlusion Handling", 《IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE》 *
XING PANG ET AL.: "A Simple Tree Structure for Dynamic Programming Based on Real Scene", 《INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION ENGINEERING AND EDUCATION SCIENCE (ICAIEES 2013)》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106251326A (en) * 2016-07-02 2016-12-21 桂林理工大学 A kind of building occlusion detection utilizing ghost picture and occlusion area compensation method
CN106251326B (en) * 2016-07-02 2019-04-12 桂林理工大学 A kind of building occlusion detection and occlusion area compensation method using ghost picture
CN108564536A (en) * 2017-12-22 2018-09-21 洛阳中科众创空间科技有限公司 A kind of global optimization method of depth map
CN108564536B (en) * 2017-12-22 2020-11-24 洛阳中科众创空间科技有限公司 Global optimization method of depth map
WO2020253805A1 (en) * 2019-06-19 2020-12-24 京东方科技集团股份有限公司 Disparity map correction method and apparatus, terminal, and non-transitory computer-readable storage medium
CN112218039A (en) * 2020-08-21 2021-01-12 上海光俊科技股份有限公司 Comprehensive pole intelligent management system and method based on Internet of things
CN112233164A (en) * 2020-09-18 2021-01-15 南京理工大学 Method for identifying and correcting error points of disparity map
CN112233164B (en) * 2020-09-18 2022-09-27 南京理工大学 Method for identifying and correcting error points of disparity map
WO2022179359A1 (en) * 2021-02-24 2022-09-01 嘉楠明芯(北京)科技有限公司 Image stereo matching method and apparatus

Also Published As

Publication number Publication date
CN105023263B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN105023263A (en) Shield detection and parallax correction method based on region growing
CN109658449B (en) Indoor scene three-dimensional reconstruction method based on RGB-D image
EP3296953B1 (en) Method and device for processing depth images
TWI489418B (en) Parallax Estimation Depth Generation
CN102982334B (en) The sparse disparities acquisition methods of based target edge feature and grey similarity
CN105528785A (en) Binocular visual image stereo matching method
CN104680510A (en) RADAR parallax image optimization method and stereo matching parallax image optimization method and system
CN104318211A (en) Anti-shielding face tracking method
CN103426182A (en) Electronic image stabilization method based on visual attention mechanism
CN105225482A (en) Based on vehicle detecting system and the method for binocular stereo vision
CN104200453B (en) Parallax image correcting method based on image segmentation and credibility
CN103927717A (en) Depth image recovery method based on improved bilateral filters
CN103985128B (en) A kind of solid matching method for supporting weight based on related and self adaptation in color
CN103702098A (en) In-depth extracting method of three-viewpoint stereoscopic video restrained by time-space domain
CN105404888A (en) Saliency object detection method integrated with color and depth information
CN102750711A (en) Binocular video depth map obtaining method based on image segmentation and motion estimation
CN104166987B (en) Parallax estimation method based on improved adaptive weighted summation and belief propagation
CN105321159B (en) The acquisition methods of portable electric device, image acquiring apparatus and depth of view information
CN110866455B (en) Pavement water body detection method
CN104065954B (en) A kind of disparity range method for quick of high definition three-dimensional video-frequency
CN102542541B (en) Deep image post-processing method
CN103544491A (en) Optical character recognition method and device facing complex background
CN104598744A (en) Depth estimation method based on optical field
CN103679677A (en) Dual-model image decision fusion tracking method based on mutual updating of models
CN105374039A (en) Monocular image depth information estimation method based on contour acuity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant