A non-local stereo matching algorithm for fisheye images

Through the non-local stereo matching algorithm, using color and gradient information, trust propagation and minimum spanning tree, combined with the winner-take-all strategy and parallax block optimization, the problem of low efficiency and low accuracy of fish-eye image matching is solved, and dense parallax is achieved The acquisition of the map improves the matching accuracy and anti-noise ability.

CN114998225BActive Publication Date: 2024-08-27滨沅国科(秦皇岛)智能科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210547672.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-08-27
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

The stereo matching algorithm of fisheye images has the problems of low matching efficiency, low accuracy and weak anti-noise ability. As a result, the obtained disparity map is sparse or partial, making it difficult to obtain dense disparity results.

Method used

A non-local stereo matching algorithm is used to calculate the initial matching cost through the color information and gradient information of pixels, conduct trust propagation and minimum spanning tree construction, and combine the winner-take-all strategy and parallax block optimization to obtain a dense disparity map of the fisheye image.

Benefits of technology

It achieves fast and high-precision matching of fisheye images, obtains dense disparity maps, improves matching accuracy and anti-noise capabilities, and avoids the loss of detailed information during the correction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114998225B
    Figure CN114998225B
Patent Text Reader

Abstract

The present invention discloses a non-local stereo matching algorithm for fisheye images. Firstly, the epipolar curve constraint of the fisheye stereo system is derived according to the fisheye camera imaging model, and the initial matching cost is calculated by regulating the search path of corresponding points based on the epipolar curve constraint; then, the initial matching cost space is optimized by trust propagation to prevent large-area erroneous cost values ​​from entering the cost aggregation process, and a non-local cost aggregation algorithm based on a minimum spanning tree (MST) is applied to the fisheye image, and the optimized matching cost space is cost aggregated; finally, a disparity map is calculated using a winner-takes-all strategy, and a disparity-based block optimization is performed on the disparity mismatching area, so as to obtain a dense disparity result of the fisheye image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a non-local stereo matching algorithm for fisheye images and belongs to the field of computer vision. Background Art

[0002] Stereo matching technology is one of the main research directions in the field of computer vision. By taking left and right images of the same scene with a binocular camera, the disparity map is obtained using a stereo matching algorithm, which can be used for 3D reconstruction. However, with the increasing demand for application scenarios, the requirements for matching efficiency are also getting higher and higher. More matching algorithms hope to obtain as much range information as possible in a short time. This becomes very difficult to achieve for ordinary images. Although a large-field imaging system composed of multiple cameras can obtain information within the entire range, it has problems such as high complexity of the image processing algorithm and severe system imaging delay.

[0003] A fisheye lens is a wide-angle lens with a short focal length but a viewing angle of nearly 180 degrees. One image can capture the entire hemisphere or even a wider field of view at one time. Compared with an imaging system composed of multiple ordinary cameras, fisheye image processing has the advantages of simplicity and strong real-time performance, and is widely used in many fields that require a large field of view. At present, the stereo matching process of fisheye images can be mainly divided into two categories: one is to correct the fisheye image, correct the fisheye image into an ordinary image, and perform a stereo matching algorithm on the corrected image to obtain a disparity map. However, the fisheye image is severely deformed, and its correction itself is a complex problem. Iterative processing during the correction process is prone to cause the loss of detail information, affecting the accuracy of subsequent matching. The other is to directly perform a stereo matching algorithm on the fisheye image. The corresponding equation of the polar curve of the fisheye image pair is established through the fisheye camera imaging model. The obtained polar curve polar constraint is used to implement a stereo matching algorithm, which can achieve stereo matching of the fisheye image and obtain a disparity image. However, the disparity maps obtained by existing fisheye image matching methods are sparse or local, and it is rare to obtain dense disparity results of fisheye images. Summary of the invention

[0004] The stereo matching algorithm of fisheye images is not yet mature. In view of the above problems, the present invention provides a non-local stereo matching method for fisheye images with fast matching speed, high matching accuracy and strong anti-noise ability, thereby obtaining a dense disparity map of the fisheye image.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A non-local stereo matching algorithm for fisheye images, comprising the following steps:

[0007] S1: Use the color information and gradient information of the pixel to calculate the matching cost and obtain the initial matching cost space of the left and right fisheye images;

[0008] S2: Trust propagation process for the initial matching cost space;

[0009] S3: Use the fisheye image as input to build a minimum spanning tree and perform non-local cost aggregation on the matching cost space optimized by S2;

[0010] S4: Using the winner-takes-all strategy, the aggregated matching cost space is calculated to obtain the disparity map;

[0011] S5: Perform a consistency check on the fisheye image disparity map obtained in S4, separate the mismatched area, perform disparity-based block optimization, and obtain a dense disparity result of the fisheye image.

[0012] A further improvement of the technical solution of the present invention is that the specific steps of step S1 are as follows:

[0013] The cost calculation formula of the color information part is:

[0014]

[0015] In the formula, I i (p) represents the color component of channel i corresponding to pixel p, and d represents the disparity;

[0016] The cost value of the gradient information is calculated by the gradient in the direction of the polar curve of the pixel point, and the formula is:

[0017]

[0018] In the formula, Represents the gradient value of p pixel in the direction of the polar curve;

[0019] The two cost values ​​are normalized and then added together. The total matching cost is:

[0020] C(p,d)=ρ(C color (p,d),λ color )+ρ(C gradient (p,d),λ gradient ),

[0021] Where C(p,d) represents the matching cost of pixel p on the disparity plane d; color and λ gradient It is the control parameter for calculating the color cost and gradient cost; ρ(C,λ) is the robust parameter of the algorithm, which can normalize the calculation results. The specific formula is:

[0022] ρ(C,λ)=1-exp(-C(p,d) / λ).

[0023] A further improvement of the technical solution of the present invention is that the specific steps of step S2 are as follows:

[0024] Calculate a temporary disparity map, perform consistency check and uniqueness check on the temporary disparity map; mark the disparity pixels that pass the consistency check and uniqueness check as trusted pixels, otherwise, mark them as untrusted pixels; perform trust propagation on the cost values ​​of untrusted disparity pixels in all disparity dimensions of the matching cost space. The trust propagation process needs to meet color similarity and spatial similarity. The propagation process is terminated when the following conditions are met:

[0025] D C (p,q)>τD C (p,q) is the color difference between pixels p and q, τ is the set color threshold,

[0026] D S (p,q)>LD S (p,q) is the distance difference between pixels p and q, L is the set distance threshold,

[0027] In the above two formulas, p is the untrusted disparity pixel to be optimized, and q is the pixel traversed during the trust propagation process; the optimization formula for the matching cost of all disparity dimensions of untrusted pixels is as follows:

[0028]

[0029] Where p represents the untrusted pixel to be optimized, T(p) represents the set of trusted pixels that can be traversed during the trust propagation process of point p; if an element q belonging to the set is found, it is optimized, otherwise all matching cost values ​​corresponding to point p are set to invalid values.

[0030] A further improvement of the technical solution of the present invention is that the specific steps of step S3 are as follows:

[0031] Using the fisheye image as input to construct a minimum spanning tree, the edge weight value connecting two adjacent vertices is calculated as follows:

[0032] W(s,r)=W(r,s)=|I(s)-I(r)|,

[0033] Where s and r represent two adjacent nodes; I(s) and I(r) represent the pixel values ​​corresponding to the two nodes. If the input is a color image, it represents the maximum pixel value in the three channels.

[0034] Use the constructed minimum spanning tree to perform non-local cost aggregation on the optimized matching cost space. The similarity calculation formula of two nodes in the cost aggregation process is:

[0035]

[0036] Where σ is a constant used to measure the similarity between two nodes p and q, S(p,q) is the initial similarity, and D(p,q) represents the distance between nodes p and q. The matching cost of pixel p after aggregation is:

[0037]

[0038] The cost aggregation process is completed in 2 steps:

[0039] Bottom-up cost aggregation aggregates the matching cost values ​​from the leaf nodes of the minimum spanning tree to the root node:

[0040]

[0041] in, represents the cost aggregation value, q is the child node of node p, C d (p) is the set of child nodes of p, is the aggregate support of all nodes in the lower subtree of node q;

[0042] The top-down cost aggregation is the aggregation operation from the root node to the leaf node of the minimum spanning tree. For any pixel, its cost aggregation value is:

[0043]

[0044] in, is the aggregated matching cost, Pr(p) is the parent node of pixel p;

[0045] After two traversals of the minimum spanning tree, the matching cost value after the aggregation of all pixel costs of the entire fisheye image can be obtained.

[0046] The further improvement of the technical solution of the present invention is that the specific steps of step S5 are as follows:

[0047] A consistency check is performed on the obtained fisheye image disparity map. Points that meet the consistency check are stable points, otherwise they are unstable points; unstable areas are separated for disparity optimization:

[0048] Perform connected domain detection on the fisheye image, find the target block S, divide S into different disparity blocks Si (i = 0...N, N is the number of divided blocks) by disparity; find the optimal disparity plane of S in Si: traverse Si, fit a disparity plane with the disparity of Si each time, calculate the cost value of S with the fitted disparity plane, and fill S with the disparity plane corresponding to the optimal cost value; the cost value calculation formula of S is as follows:

[0049]

[0050] E(S,Si) represents the cost value of S, p is the pixel point belonging to S, C(p,d) represents the matching cost value of point p, and F(Si) is the disparity plane fitted by Si. The optimal cost value of S is selected as follows:

[0051]

[0052] Where Stable represents the set of disparity blocks corresponding to stable disparity, and offset represents the disparity offset applied to Si.

[0053] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:

[0054] The present invention directly performs matching processing on fisheye images, and the processing process is stable and reliable, and does not involve a correction process; by implementing the non-local stereo matching algorithm proposed by the present invention, a dense disparity map of the fisheye image can be obtained; the fisheye imaging structure can be effectively optimized, and the matching accuracy of the fisheye image can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 is a flow chart of the present invention;

[0056] Figure 2 It is the binocular fisheye camera projection model of the present invention;

[0057] Figure 3 It is a schematic diagram of the cost aggregation process of the present invention;

[0058] Figure 4 is a flow chart of the parallax optimization method of the present invention;

[0059] Figure 5 It is a fisheye dense parallax result map generated by the present invention. DETAILED DESCRIPTION

[0060] The present invention is further described in detail below in conjunction with embodiments:

[0061] The flowchart of the specific implementation of the present invention is as follows Figure 1 As shown, a non-local stereo matching algorithm for fisheye images includes the following specific steps:

[0062] Step S1: Calculate the initial matching cost space. The specific implementation steps are as follows:

[0063] refer to Figure 2 As shown, the stereo fisheye projection model is calibrated to obtain the epipolar constraints. By calibrating the fisheye projection model, the transformation relationship between the two spheres can be obtained. The transformation process between the cameras is defined using the rotation matrix and the translation vector:

[0064] m' s E s =0,

[0065] In the formula, E = [T'] × R'.

[0066] First, we need to upgrade the two-dimensional point (u, v) of the standardized image coordinate system to a three-dimensional point (x, y, z) on the unit sphere:

[0067]

[0068] The relationship between the two unit spheres can be obtained through the basic matrix

[0069] p′ s E s p s =0,

[0070] Among them, p s Represents a point on the unit sphere. The relationship between two 3D points on the unit sphere can be expanded to obtain the polar curve constraint equation:

[0071]

[0072] According to the obtained polar curve constraints, the correspondence between the pixels of the left and right images is converted from a two-dimensional image to a one-dimensional curve, and the matching cost is calculated using the color information and gradient information of the pixels to obtain the initial matching cost space of the left and right fisheye images:

[0073] C(p,d)=ρ(C color (p,d),λ color )+ρ(C gradient (p,d),λ gradient ),

[0074] Where C(p,d) represents the matching cost of pixel p on the disparity plane d; color and λ gradient It is the control parameter for calculating the color cost and gradient cost; ρ(C,λ) is the robust parameter of the algorithm, which can normalize the calculation results. The specific formula is:

[0075] ρ(C,λ)=1-exp(-C(p,d) / λ),

[0076] Step S2: Perform trust propagation on the initial matching cost space. The specific implementation steps of the propagation are as follows:

[0077] Compute a temporary disparity map using a winner-takes-all strategy:

[0078]

[0079] Where D(p) is the disparity of point p in the obtained disparity map, Disp is the set of candidate disparity range values, and C(p,d) is the initial matching cost value obtained by S1;

[0080] The disparity map is marked as trusted disparity. Disparity pixels that pass the consistency check and uniqueness check are marked as trusted disparity pixels, otherwise they are marked as untrusted disparity pixels:

[0081] Consistency check: Find the disparity value of each pixel in the disparity map on the left corresponding to the pixel with the same name in the disparity map on the right. If the difference between these two disparity values ​​is less than a certain threshold (usually 1 pixel), the consistency constraint is satisfied:

[0082] |D L -D R |≤T,

[0083] Where T is the disparity threshold, which is set to 1.

[0084] Uniqueness check: Calculate the minimum cost and the second minimum cost of each pixel. If the relative difference between the two is less than a certain threshold, the uniqueness is not met:

[0085] (C secmin -C min ) / C min <T C ,

[0086] In the formula, C secmin Represents the sub-minimum cost value of the pixel, C min Represents the minimum cost value of the pixel, and Tc is the cost threshold.

[0087] Trust propagation is performed on the cost values ​​of untrusted disparity pixels in all disparity dimensions of the matching cost space. The trust propagation process needs to satisfy color similarity and spatial similarity. The propagation process is terminated when the following conditions are met:

[0088] D C (p,q)>τD C (p,q) is the color difference between pixels p and q, τ is the set color threshold,

[0089] DS (p,q)>LD S (p,q) is the distance difference between pixels p and q, L is the set distance threshold,

[0090] In the above two equations, p is the untrusted disparity pixel to be optimized, and q is the pixel traversed during the trust propagation process. If a trusted disparity pixel is found during the propagation process, the cost value of p is optimized, otherwise the matching cost value corresponding to point p is set to an invalid value. The matching cost value of p pixel after optimization is as follows:

[0091]

[0092] In the formula, T(p) represents the set of trusted pixel points that can be traversed during the trust propagation process of point p;

[0093] Step S3: Use the minimum spanning tree (MST) to aggregate the matching costs. The specific cost aggregation implementation steps are as follows:

[0094] The entire fisheye image is connected with a minimum spanning tree, which uses the pixels of the fisheye image as nodes. The weight value of the edge connecting adjacent nodes s and r is defined by the color difference between the two pixels. The formula is as follows:

[0095] W(s,r)=W(r,s)=|I(s)-I(r)|,

[0096] In the formula, s and r represent two adjacent nodes, I(s) and I(r) represent the pixel values ​​corresponding to the two nodes;

[0097] During the construction process, the Kruskal algorithm is used to delete edges with larger weights. After the minimum spanning tree is constructed, the nodes of the entire tree will be directly or indirectly connected through edges. The similarity between two nodes can be expressed as:

[0098]

[0099] In the formula, σ is a constant used to measure the similarity between the two nodes p and q;

[0100] The constructed minimum spanning tree is used to perform non-local cost aggregation operations on the optimized matching cost space. The matching cost of pixel point p after aggregation is:

[0101]

[0102] like Figure 3 As shown, the entire cost aggregation process is completed in two steps:

[0103] Bottom-up cost aggregation aggregates the matching cost values ​​from the leaf nodes of the minimum spanning tree to the root node. During the calculation process, the calculation is performed from the lowest leaf node of the tree upward. For any pixel, its final aggregated cost value is not updated until all its child nodes are traversed:

[0104]

[0105] in, represents the cost aggregation value, q is the child node of node p, C d (p) is the set of child nodes of p, is the aggregate support of all nodes in the lower subtree of node q;

[0106] The top-down cost aggregation is the aggregation operation from the root node of the minimum spanning tree to the leaf node. In this process, the parent node is iteratively changed to aggregate the cost of the child node. Figure 3 As shown in the figure, in the first step of cost aggregation, v4 is the parent node and v3 is the child node. In order to calculate the cost aggregation value of v3, v3 is changed to the parent node and v4 is changed to the child node. At this time, the aggregation information of v4 needs to be added when calculating the cost aggregation value of v3. It is worth noting that in the first step of cost aggregation calculation, the cost aggregation value of v4 has already taken into account the influence of v3. This part of the value needs to be subtracted, and then the remaining cost aggregation information of v4 is added to v3. For any pixel, its cost aggregation value is:

[0107]

[0108] in, is the aggregated matching cost, Pr(p) is the parent node of pixel p;

[0109] After two steps of cost aggregation operation, the aggregation process of matching cost values ​​of all pixels is completed.

[0110] Step S4: Using the winner-takes-all strategy, the disparity corresponding to the minimum cost value of each pixel in the aggregated matching cost space is selected as the correct disparity value of the pixel, and all pixels are traversed to obtain the fisheye disparity map.

[0111] Step S5: Perform a consistency check on the obtained disparity map to find out whether there is an unstable disparity area. The specific implementation steps of disparity optimization are as follows:

[0112] Process Figure 4As shown, the fisheye image is subjected to pixel-based connected domain detection to find the target block S. For the separated target block S, the disparity map obtained in step S4 is used to perform disparity-based connected region detection on the area, and S is divided into different disparity blocks Si (i=0...N, N is the number of segmented blocks), wherein the disparity blocks with a number of pixels less than the threshold are discarded, and the areas with too small a number of pixels are regarded as "noise points". The optimal disparity plane of S is found in Si, Si is traversed, and a disparity plane is fitted with the disparity of Si each time, the cost value of S is calculated with the fitted disparity plane, and S is filled with the disparity plane corresponding to the optimal cost value. The optimal cost value of S is selected in the following manner:

[0113]

[0114] Stable represents the set of disparity blocks corresponding to stable disparity, and offset represents the disparity offset applied to Si. The specific process of the algorithm is as follows:

[0115] Divide all disparity blocks Si into:

[0116] (1) Parallax blocks that pass the consistency checker

[0117] (2) Parallax blocks that did not pass the consistency checker

[0118] If the disparity block in (1) exists in S, then all disparity blocks in (1) are traversed, and Si corresponding to the minimum cost value of S is used as the optimal disparity block to fill. If the disparity block in (1) does not exist in S, then all disparity blocks in S are traversed, and an offset with positive and negative attributes is applied to each disparity block, a new disparity plane set is fitted, and the cost value corresponding to the new disparity plane is calculated. After all disparity blocks in S are traversed, the disparity plane corresponding to the minimum cost value of S is taken to fill S.

[0119] According to this embodiment, a non-local stereo matching method for fisheye images is proposed, and the feasibility of the algorithm and its performance test are verified using real fisheye images. Figure 5 shown.

[0120] A non-local stereo matching method for fisheye images is implemented using the Visual Studio 2017 software platform, and the hardware platform uses the Windows 10 operating system (Intel Core i5-7200U CPU, 2.10 GHz, 8 GB memory).

[0121] This example verifies each step of the non-local stereo matching algorithm proposed in the present invention, removes the trust propagation algorithm and the disparity block optimization algorithm in turn, and compares them with the non-local stereo matching scheme proposed in the present invention. The experimental results are shown in Table 1. The data show that adding trust propagation to optimize the initial matching cost space before implementing non-local cost aggregation, and using the disparity block optimization algorithm to optimize the disparity map after implementing non-local cost aggregation, can obtain more reasonable disparity results.

[0122] Table 1 Verification results of each step of the non-local stereo matching algorithm proposed in the present invention

[0123]

[0124] The embodiments described above are merely descriptions of preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A non-local stereo matching algorithm for fisheye images, characterized by: The steps include: S1: Use the color information and gradient information of the pixel to calculate the matching cost and obtain the initial matching cost space of the left and right fisheye images; S2: Trust propagation process for the initial matching cost space; The specific steps of step S2 are as follows: Calculate a temporary disparity map, perform consistency check and uniqueness check on the temporary disparity map; mark the disparity pixels that pass the consistency check and uniqueness check as trusted pixels, otherwise, mark them as untrusted pixels; Trust propagation is performed on the cost values ​​of untrusted disparity pixels in all disparity dimensions of the matching cost space. The trust propagation process needs to satisfy color similarity and spatial similarity. The propagation process is terminated when the following conditions are met: D C (p,q)>τD C (p,q) is the color difference between pixels p and q, τ is the set color threshold, D S (p,q)>LD S (p,q) is the distance difference between pixels p and q, L is the set distance threshold, In the above two formulas, p is the untrusted disparity pixel to be optimized, and q is the pixel traversed during the trust propagation process; the optimization formula for the matching cost of all disparity dimensions of untrusted pixels is as follows: Where p represents the untrusted pixel to be optimized, and T(p) represents the set of trusted pixels that can be traversed during the trust propagation process of point p; if an element q belonging to the set is found, then it is optimized, otherwise all matching cost values ​​corresponding to point p are set to invalid values; S3: Use the fisheye image as input to build a minimum spanning tree and perform non-local cost aggregation on the matching cost space optimized by S2; S4: Using the winner-takes-all strategy, the aggregated matching cost space is calculated to obtain the disparity map; S5: performing consistency check on the fisheye image disparity map obtained in S4, separating the mismatched area and performing disparity-based block optimization to obtain a dense disparity result of the fisheye image; The specific steps of step S5 are as follows: A consistency check is performed on the obtained fisheye image disparity map. Points that meet the consistency check are stable points, otherwise they are unstable points; unstable areas are separated for disparity optimization: Perform connected domain detection on the fisheye image, find the target block S, divide S into different disparity blocks Si by disparity, i=0...N, N is the number of divided blocks; find the optimal disparity plane of S in Si: traverse Si, fit a disparity plane with the disparity of Si each time, calculate the cost value of S with the fitted disparity plane, and fill S with the disparity plane corresponding to the optimal cost value; the cost value calculation formula of S is as follows: E(S,Si) represents the cost value of S, p is the pixel point belonging to S, C(p,d) represents the matching cost value of point p, and F(Si) is the disparity plane fitted by Si. The optimal cost value of S is selected as follows: Where Stable represents the set of disparity blocks corresponding to stable disparity, and offset represents the disparity offset applied to Si.

2. The non-local stereo matching algorithm for fisheye images according to claim 1, characterized in that: The specific steps of step S1 are as follows: The cost calculation formula of the color information part is: In the formula, I i (p) represents the color component of channel i corresponding to pixel p, and d represents the disparity; The cost value of the gradient information is calculated by the gradient in the direction of the polar curve of the pixel point, and the formula is: In the formula, Represents the gradient value of p pixel in the direction of the polar curve; The two cost values ​​are normalized and then added together. The total matching cost is: C(p,d)=ρ(C color (p,d),λ color )+ρ(C gradient (p,d),λ gradient ), Where C(p,d) represents the matching cost of pixel p on the disparity plane d; color and λ gradient It is the control parameter for calculating the color cost and gradient cost; ρ(C,λ) is the robust parameter of the algorithm, which can normalize the calculation results. The specific formula is: ρ(C,λ)=1-exp(-C(p,d) / λ).

3. The non-local stereo matching algorithm for fisheye images according to claim 1, characterized in that: The specific steps of step S3 are as follows: Using the fisheye image as input to construct a minimum spanning tree, the edge weight value connecting two adjacent vertices is calculated as follows: W(s,r)=W(r,s)=|I(s)-I(r)|, Where s and r represent two adjacent nodes; I(s) and I(r) represent the pixel values ​​corresponding to the two nodes. If the input is a color image, it represents the maximum pixel value in the three channels. Use the constructed minimum spanning tree to perform non-local cost aggregation on the optimized matching cost space. The similarity calculation formula of two nodes in the cost aggregation process is: Where σ is a constant used to measure the similarity between two nodes p and q, S(p,q) is the initial similarity, and D(p,q) represents the distance between nodes p and q; The matching cost of pixel p after aggregation is: The cost aggregation process is completed in 2 steps: Bottom-up cost aggregation aggregates the matching cost values ​​from the leaf nodes of the minimum spanning tree to the root node: in, represents the cost aggregation value, q is the child node of node p, C d (p) is the set of child nodes of p, is the aggregate support of all nodes in the lower subtree of node q; The top-down cost aggregation is the aggregation operation from the root node to the leaf node of the minimum spanning tree. For any pixel, its cost aggregation value is: in, is the aggregated matching cost, Pr(p) is the parent node of pixel p; After two traversals of the minimum spanning tree, the matching cost value after the aggregation of all pixel costs of the entire fisheye image can be obtained.