Satellite real scene three-dimensional modeling method and system based on terrain partition constraint
By setting differentiated matching parameters, fracture perception, and parallax repair under terrain zoning constraints, the problem of satellite real-scene 3D modeling under complex terrain conditions was solved, and high-quality construction of terrain-level real-scene 3D models was achieved, ensuring the continuity of landforms and the consistency of texture.
Patent Information
- Application Number
- CN202611422800.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies, when used in satellite-based 3D modeling of complex terrain conditions, suffer from problems such as insufficient adaptability of matching parameters, improper propagation of initial parallax values near fracture lines, inconsistent directions of hole repair, and lack of terrain constraints in the construction of triangulation meshes. These issues make it difficult to meet the requirements of continuity, landform preservation, and texture consistency in terrain-level 3D models.
By dividing the survey area into at least two types of terrain units, setting differentiated matching parameters, and using existing digital elevation models to detect terrain fractures, a fracture mask grid and fracture line vectors are constructed. Fracture perception is then performed through split sampling matching. Combined with parallax confidence weighted synthesis and the passage cost field of fracture penalty, holes are repaired. Finally, a triangular mesh is constructed with fracture lines as constraint edges to ensure the continuity and consistency of the terrain-level real-scene 3D model.
It improves the continuity, landform preservation, and texture consistency of terrain-level realistic 3D models under complex terrain conditions, overcomes the defects of global unified matching parameters, avoids mismatch near break lines and inappropriate hole repair direction, and improves the overall quality of the model.
Smart Images

Figure CN123181760A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of 3D reality modeling technology, and in particular relates to a satellite reality 3D modeling method and system based on terrain zoning constraints. Background Technology
[0002] Real-world 3D models are categorized by their level of detail into terrain-level, city-level, and component-level models. Terrain-level models primarily represent large-scale landform undulations, ridges, valleys, slopes, river valleys, and surface textures, serving as a crucial spatial foundation for natural resource management, land spatial planning, disaster monitoring, and major engineering projects. High-resolution satellite stereo images offer advantages such as wide coverage, high acquisition efficiency, unified cross-regional acquisition, and relatively low cost, making them a vital data source for constructing terrain-level real-world 3D models. Existing 3D modeling workflows based on satellite stereo imagery typically include stereo image preprocessing, rational polynomial coefficient model refinement, epipolar correction, corresponding point matching, dense parallax matching, parallax-to-elevation conversion, digital surface model or point cloud generation, irregular triangular mesh or grid construction, texture mapping, and quality checks. For example, CN117576343B discloses a method for creating 3D mesh models based on high-resolution satellite stereo imagery, focusing on corresponding point matching, rational polynomial coefficient correction, point cloud generation, triangulation construction, occlusion detection, and texture mapping; CN114241125B discloses a refined 3D modeling method based on multi-view satellite imagery, focusing on multi-view image tie point matching, bundled area network adjustment, point cloud generation, surface reconstruction, and texture mapping. These methods play an important role in satellite image preprocessing and 3D mesh construction, but still have several systemic shortcomings under complex terrain conditions.
[0003] First, existing dense matching processes typically employ a uniform matching window, search range, and matching cost function across the entire region, lacking explicit responses to terrain type. Different terrain units, such as flat areas, sloping areas, steep cliff areas, valley areas, vegetated areas, low-texture water areas, and shadow areas, differ significantly in texture structure, disparity variation, and image quality. If the matching window is increased to smooth low-texture areas, the ground with significant elevation differences on both sides of ridges, valleys, and steep cliffs will be averaged out by the same window, resulting in over-smoothing. Conversely, if the window is reduced to preserve steep terrain, weak-texture areas such as water bodies, shadows, and vegetation will generate numerous mismatches and holes. The search range also presents a contradiction: in flat areas with gentle disparity, an excessively wide search range wastes computation and increases the chance of peak mismatches, while in steep cliffs and valleys with dramatic disparity, an excessively narrow search range fails to cover the true disparity.
[0004] Secondly, multi-scale pyramid layer-by-layer matching has a more subtle mechanistic defect near the fracture line. The coarse layer has low resolution, and the disparity that should be significant on both sides of the fracture line is absorbed by a single coarse pixel. The disparity of the coarse layer loses its jump structure near the fracture. When passing the initial value to the fine layer, the conventional practice is to smooth upsample the disparity map of the coarse layer, smoothing the significant disparity on both sides of the fracture into a continuous and gradually changing transition zone. Then, the value of this transition zone is used as the search center of the fine layer pixels. The fine layer matching narrows the search range based on this search center. As a result, the real disparity jump of the fine layer pixels on both sides of the fracture is neither within the narrowed search range, nor can it be sampled by the cost function due to the compromise of the initial value. In the end, large areas of mismatch are formed near the fracture line, with disparity on one side leaking to the other side, or step-like artifacts appearing along the fracture line. After conversion to elevation, this appears as fracture flattening, misalignment, and floating patches. The stereo matching method disclosed in CN111508013A and the fast binocular stereo matching method disclosed in CN117649436A both use ordinary bilinear upsampling for cross-scale upsampling and directly use the results as the fine-layer search center. They do not perform special processing on the cross-scale initial value propagation near the fault line. The above defects are difficult to avoid under fault terrain.
[0005] Furthermore, the repair of low-confidence and void areas typically relies on empirical local interpolation. This involves using a fixed neighborhood window to weight the effective disparity within the neighborhood of the pixel to be repaired, with the window shape and interpolation direction set empirically and decoupled from the terrain orientation. On slopes, disparities that should be different on the slope are averaged together. On both sides of a fault line, the disparity from the opposite side is directly taken for interpolation, resulting in cross-fault crosstalk. This mixes the disparity from the opposite bank of a valley or the other side of a steep cliff into the current side, leading to repair results that do not match the actual terrain orientation. The apparatus for processing disparity estimation images disclosed in CN110033426A and the KINECT depth map void filling method based on local constraint reconstruction disclosed in CN103136775A both belong to this type of empirical interpolation approach using a fixed neighborhood. Their propagation direction and cost do not include global terrain information, making them unsuitable for complex terrains with multiple faults and voids.
[0006] Furthermore, triangulation or mesh construction typically involves directly subdividing the filtered point cloud. The subdivision criteria only consider the geometric properties of empty circles and do not perceive the terrain structure. Once a triangle crosses a ridgeline or valley line, the elevation points on both sides are connected by the same plane, the ridgeline is flattened, the valley is filled, and steep slopes are stretched into sloping surfaces. Due to the lack of constraint edges on both sides of the fracture, long and narrow triangles and floating surfaces are also prone to appear. A laser point cloud terrain 3D mapping and modeling method disclosed in CN122415920A uses structural lines as forced edge constraints for triangulation. However, its structural lines are derived from laser point cloud features and are directly embedded in the form of hard constraints. It does not involve a fracture perception mechanism that jointly detects fractures from satellite imagery and existing digital elevation models and runs through the entire process of matching, repairing, and mesh construction.
[0007] In summary, existing technologies have shortcomings in areas such as adaptability of matching parameters under complex terrain conditions, propagation of cross-scale parallax initial values near fault lines, terrain consistency in the direction of cavity repair, and construction of triangulation networks under fault line constraints. These shortcomings make it difficult to meet the requirements of terrain-level real-scene 3D models for continuity, landform preservation, and texture consistency. A satellite real-scene 3D modeling method is needed that can be based on terrain zoning constraints and integrate fault perception throughout the cross-scale parallax initial value and cavity repair propagation chain. Summary of the Invention
[0008] Therefore, it is necessary to provide a satellite real-scene 3D modeling method and system based on terrain zoning constraints to address the above-mentioned technical problems.
[0009] Firstly, this application provides a satellite real-scene 3D modeling method based on terrain zoning constraints, including:
[0010] S101. Obtain a satellite stereo image pair including the left original image and the right original image, and obtain the existing digital elevation model covering the survey area; perform radiometric correction on the left original image and the right original image in the satellite stereo image pair to obtain the corrected image; perform geometric refinement on the corrected image to obtain the refined geometric parameters; perform epipolar correction on the corrected image to obtain the left and right epipolar image pairs.
[0011] S102. Based on the left and right epipolar image pairs and the existing digital elevation model, the survey area is divided into at least two types of terrain units. Differentiated matching parameters are set for each type of terrain unit to obtain the partition attribute table.
[0012] S103. Based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, detect terrain fractures and obtain fracture mask grids and fracture line vectors.
[0013] S104. Construct an image pyramid based on the left and right epipolar image pairs, and construct a fracture mask pyramid based on the fracture mask grid.
[0014] S105. In the layer-by-layer refinement of the image pyramid, according to the differential matching parameters in the partition attribute table, the fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighborhood according to the fracture mask pyramid to obtain the initial disparity map.
[0015] S106. Perform a left-right consistency check on the initial disparity map to obtain the left-right consistency difference; according to the preset partition weights in the partition attribute table, perform weighted synthesis of the confidence components of the initial disparity map based on the left-right consistency difference to obtain a disparity confidence raster; construct a passage cost field containing cross-fracture penalties based on the fracture mask raster; use high-confidence pixels in the disparity confidence raster as seeds to propagate and repair holes in the passage cost field to obtain a complete disparity map and an updated confidence raster.
[0016] S107. Perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; construct a triangulation network for the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight.
[0017] S108. Select texture sources for the triangular mesh based on satellite stereo image pairs, map texture sources onto the meshes to obtain a terrain-level real-scene 3D model.
[0018] Secondly, this application also provides a satellite real-scene 3D modeling system based on terrain zoning constraints, used to implement the method described in the first aspect, the system comprising:
[0019] The stereo image pair preprocessing module is used to acquire satellite stereo image pairs including left and right original images, and to acquire existing digital elevation models covering the survey area; to perform radiometric correction on the left and right original images in the satellite stereo image pairs to obtain corrected images; to perform geometric refinement on the corrected images to obtain refined geometric parameters; and to perform epipolar correction on the corrected images to obtain left and right epipolar image pairs.
[0020] The terrain zoning and parameter configuration module is used to divide the survey area into at least two types of terrain units based on the left and right epipolar image pairs and the existing digital elevation model, set differentiated matching parameters for each type of terrain unit, and obtain the zoning attribute table.
[0021] The terrain fracture detection module is used to detect terrain fractures based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, and to obtain fracture mask grids and fracture line vectors.
[0022] The multi-scale pyramid construction module is used to construct image pyramids based on left and right epipolar image pairs and to construct fracture mask pyramids based on fracture mask grids.
[0023] The fracture-aware layered matching module is used to perform fracture-aware split sampling matching on the fine-layer pixels containing fracture masks in the image pyramid layer by layer refinement according to the differential matching parameters in the partition attribute table, and obtain the initial disparity map.
[0024] The disparity repair and credibility fusion module performs a left-right consistency check on the initial disparity map to obtain the left-right consistency difference; according to the preset partition weights in the partition attribute table, it performs weighted synthesis of the credibility components of the initial disparity map based on the left-right consistency difference to obtain a disparity credibility raster; it constructs a passage cost field containing cross-fracture penalties based on the fracture mask raster; using high-credibility pixels in the disparity credibility raster as seeds, it propagates and repairs holes in the passage cost field to obtain a complete disparity map and an updated credibility raster.
[0025] The forward intersection and constrained triangulation construction module is used to perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; and to construct a triangulation of the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight.
[0026] The texture mapping and 3D reconstruction module is used to select texture sources for the triangular mesh based on satellite stereo image pairs, map the texture sources to the facets, and obtain a terrain-level real-scene 3D model.
[0027] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a satellite real-scene 3D modeling method based on terrain zoning constraints as described in the first aspect.
[0028] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a satellite real-scene 3D modeling method based on terrain zoning constraints as described in the first aspect.
[0029] The aforementioned satellite real-scene 3D modeling method and system based on terrain zoning constraints divides the survey area into at least two types of terrain units and sets differentiated matching parameters for each type of terrain unit. This allows the disparity matching window and search range to adaptively adjust with terrain features, overcoming the shortcomings of uniform matching parameters across the entire domain in complex terrain. Before matching, terrain fractures are detected based on the terrain attributes of the existing digital elevation model and the image gradients of the left and right epipolar image pairs, generating fracture mask gratings and fracture line vectors. Then, during the layer-by-layer refinement of the image pyramid, fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighboring area according to the differentiated matching parameters and based on the fracture mask pyramid. This ensures that when the coarse-layer disparity propagates to the fine layer, the disparity information on both sides of the fracture is separated and does not contaminate each other before entering the fine-layer matching, avoiding the initial value of the disparity near the fracture being crossed. The system addresses artifacts and mismatches caused by fault smoothing. It then performs a left-right consistency check on the initial disparity map obtained from the matching, and weights the confidence components, such as the left-right consistency difference, according to the preset partition weights in the partition attribute table to synthesize a disparity confidence raster. High-confidence pixels in this raster are then used as seeds to propagate and repair holes in a passage cost field containing cross-fault penalties constructed based on the fault mask raster. This ensures that the direction of hole repair is explicitly constrained by the terrain orientation and fault distribution, avoiding empirical interpolation cross-fault crosstalk and improper repair direction. Finally, the complete disparity map is intersected in front to form ground points according to refined geometric parameters. A triangular mesh is constructed using the fault line vector as the constraint edge and the updated confidence raster as the weight, ensuring that the triangles do not cross the fault lines. This improves the overall continuity, landform preservation, and texture consistency of the terrain-level realistic 3D model under complex terrain conditions. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 A flowchart illustrating a satellite real-scene 3D modeling method based on terrain zoning constraints provided by the present invention;
[0032] Figure 2 This is a schematic diagram of the process for obtaining an initial disparity map in one optional embodiment of the present invention;
[0033] Figure 3 This is a schematic diagram of the structure of a satellite real-scene 3D modeling system based on terrain zoning constraints provided by the present invention. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0035] To facilitate a better understanding of the technical solutions of this invention, the technical terms involved in this invention will be explained first.
[0036] (1) A satellite stereo image pair refers to two satellite images taken from different locations of the same ground area with overlapping coverage areas. They can form a stereo observation and are the basic data form of stereo photogrammetry. In this invention, the satellite stereo image pair consists of a left original image and a right original image, which serve as the raw input for the entire process and are used for epipolar line correction, parallax matching, and forward intersection.
[0037] (2) Rational polynomial coefficients (RPCs) are generalized imaging model parameters that describe the mapping relationship between the three-dimensional coordinates of the ground and the image-side coordinates. They do not depend on the internal structural parameters of the sensor and serve as a general geometric description for satellite images. In this invention, each of the left and right original images is accompanied by a file of rational polynomial coefficients. Geometric refinement is based on existing digital elevation models to extract feature points and correct their image-side system bias. The refined geometric parameters are used for epipolar correction and forward intersection.
[0038] (3) A digital elevation model (DEM) is a data product that records the elevation of the earth's surface in the form of a regular grid or vector, and is used to characterize the topographic relief of the survey area. In this invention, the digital elevation model corresponds to an existing digital elevation model and serves as the main data source for the topographic attributes of the survey area, which can be reused for topographic unit partitioning, topographic fault detection, and prediction parallax calculation.
[0039] (4) Epipolar Rectification is an image resampling process that uses geometric transformation to place corresponding points in the left and right images on the same scan line, reducing stereo matching from a two-dimensional search to a one-dimensional search. In this invention, epipolar rectification is performed on the rectified image according to refined geometric parameters, and the rectification product is a pair of left and right epipolar images for use in terrain zoning, fracture detection, and pyramid matching.
[0040] (5) The image pyramid is a multi-resolution image sequence formed by downsampling the original image layer by layer at a fixed scaling ratio. The coarse layer summarizes the global picture, while the fine layer preserves the details. In this invention, the image pyramid is constructed from left and right epipolar image pairs, and the layer-by-layer refinement is performed according to the differential matching parameters of the partition attribute table; the fracture mask pyramid is constructed by logical OR aggregation to provide layer-by-layer fracture information for fracture-aware split sampling matching.
[0041] (6) Disparity refers to the difference in image coordinates between corresponding image points on the left and right images. It reflects the distance relationship between ground points and the sensor and is a direct output of stereo matching. In this invention, disparity corresponds to the initial disparity map and the complete disparity map. The initial disparity map is obtained by split sampling matching, and the complete disparity map is obtained after confidence-weighted synthesis and propagation to repair holes. Then, it is converted into the ground point elevation by forward intersection.
[0042] (7) Forward Intersection is a photogrammetric method that back-projects two lines of sight from corresponding image points in the left and right images and calculates the three-dimensional coordinates of ground points based on the spatial intersection of the two lines of sight. In this invention, forward intersection is performed pixel-by-pixel on the complete disparity map according to the refined geometric parameters to obtain ground points carrying confidence attributes, which serve as the vertex data of the triangulation.
[0043] (8) Triangulated Irregular Network (TIN) is a vector surface model with ground points as vertices connected to form non-overlapping triangles. The vertex density can be adjusted according to the complexity of the terrain. In this invention, the TIN is constructed with break line vectors as constraint edges and updated confidence grids as weights for ground points. After mapping the surface to the texture source, a terrain-level realistic 3D model is obtained.
[0044] Application environment:
[0045] This invention is implemented using a satellite remote sensing data processing system, which includes a data acquisition end and a data processing end. The data acquisition end is a satellite receiving station or a mapping results repository, providing satellite stereo image pairs covering the same survey area and existing digital elevation models. The satellite stereo image pairs include a left original image, a right original image, and their respective rational polynomial coefficient files. The data processing end is a high-performance server or workstation with parallel computing capabilities, used to perform image preprocessing such as radiometric correction, geometric refinement, and epipolar correction, as well as topographic zoning, fault detection, image pyramid and fault mask pyramid construction, fault-aware split sampling matching, confidence-weighted synthesis and propagation hole repair, forward intersection and triangulation construction, and texture mapping. The data acquisition end transmits the satellite stereo image pairs and existing digital elevation models to the data processing end via a network or storage medium. The terminals used by the implementers are connected to the data processing end via the network, importing the survey area range and processing parameters and initiating the processing flow through the terminals.
[0046] To accommodate large-scale survey areas, the processing adopts a block-based parallel approach, with overlapping buffer zones between each processing block. After processing, each block is stitched together according to the buffer zones. Data is input from the data acquisition end and sequentially undergoes preprocessing, terrain zoning and fault detection, pyramid matching, credibility construction and propagation repair, elevation calculation and constraint mesh construction, and texture mapping, ultimately outputting a terrain-level realistic 3D model.
[0047] Example 1:
[0048] refer to Figure 1 The document presents a flowchart illustrating a satellite real-scene 3D modeling method based on terrain zoning constraints, as provided in this application. The method includes the following steps:
[0049] S101. Obtain a satellite stereo image pair including the left original image and the right original image, and obtain the existing digital elevation model covering the survey area; perform radiometric correction on the left original image and the right original image in the satellite stereo image pair to obtain the corrected image; perform geometric refinement on the corrected image to obtain the refined geometric parameters; perform epipolar correction on the corrected image to obtain the left and right epipolar image pairs.
[0050] Specifically, the satellite stereo image pairs are acquired by the satellite imaging the same survey area from different perspectives, including the left original image and the right original image; the survey area is covered by an existing digital elevation model, which is a publicly available or existing surveying result and serves as a geometric prior. The two images differ in imaging time, imaging angle, and solar altitude angle, and there are systematic differences in the grayscale of the same ground features. If these differences are not eliminated, they will interfere with subsequent matching. Therefore, radiometric correction is first performed on the left original image and the right original image to obtain the corrected image. Radiometric correction includes radiometric calibration and uniform illumination and color matching: Radiometric calibration converts the original grayscale into surface reflectance based on the calibration coefficients and atmospheric parameters in the image metadata; Uniform illumination and color matching further eliminate residual brightness and contrast differences between the two images, which can be achieved using Wallis transform, that is, dividing the right image into overlapping sliding windows, statistically analyzing the local grayscale mean and variance of the left and right images window by window, and performing a linear transformation on the grayscale within the right image window to stretch it to the corresponding level in the left image. The overlapping windows make the transformation a continuous transition without any block marks; Histogram matching can also be used to map the cumulative grayscale distribution of the right image to the cumulative grayscale distribution of the left image, so that the grayscale of the same ground feature tends to be consistent.
[0051] The grayscale values of clouds, cloud shadows, and shadow areas in the corrected image are unreliable and will interfere with subsequent partitioning and texture source selection. Therefore, after radiometric correction, cloud, cloud shadow, and shadow pixels are identified using known cloud detection, shadow detection, and water body detection methods and logically or fused into a quality mask raster as the basis for data quality in subsequent processing.
[0052] Geometric refinement focuses on rational polynomial coefficients. The initial rational polynomial coefficients accompanying satellite imagery exhibit systematic image-space bias; directly using them for epipolar correction and forward intersection can introduce regional systematic errors in elevation calculations. Using an existing digital elevation model (DEM) as the elevation prior, geometric refinement is performed without control points: candidate points such as intersections of linear terrain features, local elevation extrema, and areas of sharp slope inflection are extracted from the existing DEM. Specifically, these can be obtained by rapidly calculating attributes such as curvature and confluence accumulation using the existing DEM and selecting attribute extrema locations. Points located in areas with quality anomalies such as cloud shadows or shading are removed, while those with rich surrounding textures are retained. The ground coordinates of each candidate point are projected forward onto the calibrated image using the rational polynomial coefficients before refinement to obtain the initial image-space position. A local window is then opened centered on this initial position, and the image-space position is refined to the sub-pixel level using template matching or least-squares matching. The two refined image-space positions on the calibrated image constitute a set of corresponding points.
[0053] The refinement calculation uses the image-square residuals of corresponding points on the left and right images as observations, and iteratively calculates the compensation parameters according to the least squares principle: an affine compensation polynomial is added to the image-square coordinates output by the rational polynomial model. The affine compensation polynomial contains six undetermined parameters, and a higher-order form containing quadratic terms can also be used. The values of the rational polynomial coefficients themselves are not changed, but only the compensation values are superimposed on their output coordinates. For each group of corresponding points, the initial image-square position of the projection before refinement is used as an approximation, and the actual image-square position after matching refinement is used as the observation. The difference between the two constitutes the image-square residual. Based on this, the normal equation is used to solve for the compensation parameters. After removing gross errors whose residuals exceed several times the residual mean error, the solution is repeated. The iteration continues until the correction of the compensation parameters is less than the set threshold and convergence occurs. In the absence of control points, the elevation constraints of corresponding points are provided by existing digital elevation models. The solution is performed using a weak constraint approach, aiming to achieve relative orientation consistency between the left and right images and minimize the overall image-side residuals of corresponding points. Only compensation terms affecting the relative geometric relationship and parallax accuracy of the left and right images are calculated, while other terms are fixed to zero or constrained by zero-mean, low-weight prior constraints on the undetermined parameters to prevent divergence. The compensation parameters obtained after convergence are the refined geometric parameters, which are used for subsequent epipolar correction and forward intersection.
[0054] Epipolar correction resamples the corrected image according to the refined geometric parameters, transforming the image to epipolar geometry so that corresponding image points are located in the same scan row and the parallax only changes along the column direction. The matching is reduced from a two-dimensional search to a one-dimensional search. The resampling yields left and right epipolar image pairs, which are used for subsequent terrain unit division, break detection and matching.
[0055] S102. Based on the left and right epipolar image pairs and the existing digital elevation model, the survey area is divided into at least two types of terrain units. Differentiated matching parameters are set for each type of terrain unit to obtain the partition attribute table.
[0056] Specifically, this step divides the survey area into topographic units pixel by pixel based on the left and right epipolar image pairs and the existing digital elevation model. Topographic attributes are constructed from the existing digital elevation model, including slope, aspect, curvature, and runoff accumulation. The slope is constructed according to the first-order central difference of the elevation field, and the runoff accumulation is constructed according to the flow direction of the steepest descent. Image attributes are constructed from the grayscale of the left and right epipolar image pairs, including texture intensity.
[0057] The survey area is divided into at least two types of terrain units according to attribute thresholds. In this embodiment, it is divided into seven types: flat, slope, cliff, valley, vegetation, water body, low texture, and shadow. Areas with gentle slope and rich texture are classified as flat units. Areas with slope exceeding the threshold are classified as slope units. Areas with slope exceeding the steep threshold are classified as cliff units. Areas with significant runoff accumulation and curvature are classified as valley units. Areas with vegetation index exceeding the threshold are classified as vegetation units. Areas with water body index exceeding the threshold are classified as water body, low texture units. Shadow pixels marked by quality mask raster or areas with abnormally low image brightness are classified as shadow units. The vegetation index and water body index are constructed by band reflectance according to a known formula.
[0058] The various judgments are performed pixel-by-pixel in the following priority order: shadows, low-texture water bodies, valleys, cliffs, vegetation, slopes, and flat areas. The process stops once a match is found, ensuring that each pixel receives exactly one terrain unit identifier. The priority is determined as follows: shadows are considered abnormal imaging conditions and must be isolated first; the slopes on both sides of valleys often exceed the steep cliff threshold but have different processing logic, so they must be judged before steep cliffs; the texture under vegetation cover comes from the tree canopy and is decoupled from the ground elevation, so it must be judged before slopes; flat units are judged last.
[0059] The initial partitioning results contain fragmented patches caused by noise. Direct output would lead to frequent switching of parameter settings for subsequent matching and propagation. Morphological post-processing is performed on the initial partitioning results: fragmented patches with areas smaller than a threshold are filtered by connected components, and each fragmented patch is then merged into the largest adjacent patch. Merging follows semantic affinity; for example, water fragments are merged into adjacent flat or vegetated units but not steep cliff units. After merging, the statistical attributes of various partitions are recalculated.
[0060] Based on the determined zoning results, differentiated matching parameters are set for various terrain units, including matching window side length, layer-by-layer search radius, matching cost weight, propagation weight and preset zoning weight. The slope statistics of various terrain units are also statistically analyzed as the dominant slope, and written into the zoning attribute table along with the terrain unit identifier and the above parameters.
[0061] The matching window side length and the layer-by-layer search radius are set according to the partition. The matching window side length is denoted as:
[0062]
[0063] in, For partitioning The side length of the matching window, As the reference window side length, This is the window adjustment coefficient. For partitioning The average value of the internal texture intensity; the weaker the texture, the larger the window, in order to accumulate sufficient grayscale information.
[0064] partition In the fine-layer search radius Recorded as:
[0065]
[0066] in, As the baseline search radius, The scaling ratio between adjacent layers. The number of pyramid levels. This is the radius adjustment coefficient. For partitioning The mean of the internal elevation undulation is such that the greater the undulation, the greater the range of true parallax variation and the larger the search radius. Moreover, the search radius decreases proportionally with the scaling ratio as the layer number increases, adapting to the resolution of each layer.
[0067] The matching cost weight and propagation weight are assigned values based on the reliability of the evidence in each partition. For example, partitions with poor image texture have higher weights for geometric prior class cost terms, while partitions with strong fracture evidence have higher weights for cross-fracture penalty terms in the propagation cost.
[0068] S103. Based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, detect terrain fractures and obtain fracture mask grids and fracture line vectors.
[0069] Specifically, this step detects topographic faults from two information sources: topography and imagery. Fault intensity is constructed from the topographic attributes of the existing digital elevation model (DEM): locations such as ridges, cliffs, and deep valleys have steep slopes and dramatic curvature, resulting in strong fault intensity responses. The topographic gradient and curvature are normalized to the background level of the survey area and then synthesized with equal weights to eliminate the differences in numerical scale between the two types of attributes. Image scarp evidence is constructed from the image gradient and slope gradient of the left and right epipolar image pairs using a dual-threshold judgment: surface faulting manifests as a sharp change in grayscale on the image, and this sharp change spatially coincides with the slope abrupt change in the existing DEM, which can compensate for the narrow steep scarps that the existing DEM cannot reflect. The union of the fault intensity and image scarp evidence is taken, and the pixel where either evidence is valid is marked as a fault pixel, resulting in a fault mask raster with the same grid as the left and right epipolar image pairs.
[0070] Furthermore, the fracture mask grid is refined, shrinking the fracture pixel bands into single-pixel-width polylines. The refined result is then vectorized, and each polyline is traced and ordered nodes are extracted to obtain the fracture line vector. The fracture mask grid and fracture line vector represent the same detection result in two forms: the fracture mask grid marks the fracture location pixel by pixel in a grid format, sharing the same grid as the image and disparity map, serving the pixel-by-pixel calculations in subsequent pyramid construction, fracture sensing matching, and propagation repair; the fracture line vector describes the fracture direction and location in vector line form, with each fracture line consisting of an ordered sequence of nodes, serving the subsequent construction of a triangulation network with fracture lines as constraint edges. Both products share the same detection result, ensuring consistent understanding of the fracture location across all stages.
[0071] S104. Construct an image pyramid based on the left and right epipolar image pairs, and construct a fracture mask pyramid based on the fracture mask grid.
[0072] Specifically, the image pyramid is constructed according to a preset scaling ratio: the left and right epipolar image pairs at the original resolution are used as the finest layer, and downsampling is performed layer by layer. The gray level of each pixel in the next layer is obtained by averaging the gray levels of the corresponding pixels in the next layer. That is, the next layer of image is divided into blocks according to the scaling ratio, and the average gray level within the block is taken as the gray level of the corresponding pixel in the previous layer. This results in a multi-layer image sequence from fine to coarse, representing the image structure at different scales, for matching from coarse to fine. For example, the scaling ratio is set to 2, and the number of pyramid layers is set according to the survey area and image size.
[0073] The fracture mask pyramid is constructed layer by layer from a fracture mask grid at the same preset scaling ratio. However, unlike the image pyramid, it does not allow average downsampling; instead, it performs logical OR aggregation: each layer of pixels is logically ORed with the pixels of the layer it covers. If any pixel in the layer it covers is a fracture pixel, then that layer of pixels is marked as a fracture pixel. The fracture line is a narrow structure. If average downsampling is used, the fracture line that runs through coarse-layer pixels will be diluted to a blurry value between 0 and 1 and disappear in subsequent processing. Logical OR aggregation, on the other hand, ensures that the fracture marker remains explicit as the layer increases. Any coarse-layer pixel that is crossed by the fracture retains a clear fracture marker in every layer, thus enabling the identification of the area near the fracture in any layer. This provides fracture information available across layers for fracture perception matching in layer-by-layer refinement.
[0074] S105. In the layer-by-layer refinement of the image pyramid, according to the differential matching parameters in the partition attribute table, the fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighborhood according to the fracture mask pyramid to obtain the initial disparity map.
[0075] Specifically, in the layer-by-layer refinement process, disparity maps of finer layers are generated progressively, starting from the coarsest disparity map. The coarsest layer has no upper-layer disparity to inherit; instead, the predicted disparity obtained by backprojecting the refined geometric parameters of an existing digital elevation model serves as the initial reference. Within the search radius of its respective partition, the candidate disparity with the lowest aggregation cost is selected as the top-level disparity. From the... Layer disparity map refinement to generate the first When plotting the disparity map of the first layer, for the first layer... For each pixel in the layer, its coordinates are first converted to the next level according to the scaling factor. The layers are combined and rounded to obtain the sampling position of the corresponding coarse layer. Then, a 3×3 neighborhood of coarse layer pixels around the sampling position is taken, and the presence of broken mask pixels in the neighborhood is determined based on the broken mask pyramid.
[0076] Aggregate cost refers to the aggregated value of the matching costs of all pixels within a matching window centered on a candidate disparity. It is typically the arithmetic mean of the matching costs of all pixels within the window. Matching cost is used to measure the degree of grayscale similarity and geometric prior agreement between candidate locations with the same name. The matching cost can be constructed by weighting three components: gradient cost, Census cost, and prior cost from an existing digital elevation model. The weighting method is as follows:
[0077]
[0078] in, For the pixel at the pixel coordinates Candidate parallax The matching cost below, The gradient cost measures the difference in gradient between the left and right epipolar imagery at candidate locations with the same name. For Census cost, measure the Hamming distance of the local gray-level order structure at candidate positions with the same name. Measure candidate disparity as a priori cost of existing digital elevation models. The difference from predicted parallax, , , The three components are their respective partition weights, and their sum equals 1. The aggregation cost calculation formula is denoted as:
[0079]
[0080] in, For the cost of aggregation, For pixels The matching window centered on the pixel is sized according to the side length of the matching window of the partition to which the pixel belongs in the partition attribute table. To match the total number of cells within the window, To match cells within the window In candidate parallax The summation symbol represents the sum of the matching costs of all pixels within the matching window. The smaller the aggregation cost, the higher the degree of match.
[0081] If there are no broken mask pixels in the neighborhood, initialize in the conventional way: use the coarse disparity at the sampling position after bilinear interpolation and conversion to fine pixel units as the initial reference, and take the candidate disparity with the minimum aggregation cost within the search radius of the corresponding partition as the fine disparity of the fine pixel.
[0082] If a neighboring pixel contains a fracture mask, the fine-layer pixel undergoes fracture-sensing split sampling matching. There is a significant jump in disparity on both sides of the fracture line. The disparity of coarse-layer pixels crossing the fracture line is mixed with information from both sides, losing its unilateral representativeness. Direct interpolation will cause the initial fine-layer value to fall at the midpoint between the two sides. Therefore, coarse-layer pixels in the neighborhood are split into two subsets according to the fracture state: the subset with the same fracture state as the fine-layer pixel is the same-side subset, and the subset with the opposite fracture state is the opposite-side subset. The fracture state refers to whether the pixel is marked as a fracture pixel by the fracture mask pyramid. The fracture state of the fine-layer pixel is based on the fracture mask value at the corresponding coarse-layer sampling position. The median of the coarse-layer disparities within each subset is taken as the representative disparity. The formula for calculating the same-side representative disparity is:
[0083]
[0084] in, For fine-layer pixels in pixel coordinates The same side represents the disparity, and median is the median operator. For the first Layer disparity map in coarse layer pixels disparity value at that location, This is a subset on the same side of the fine-layer pixels. The coordinates of coarse pixels within the same-side subset; the coordinates of pixels on the opposite side represent parallax. The median value of the parallax of the inner coarse layer is obtained by taking the same formula.
[0085] The representative disparity is represented by the median rather than the mean. With a maximum of nine samples in a 3×3 neighborhood, extreme disparities from a few mismatches can significantly skew the mean, while the median remains stable when the proportion of mismatched samples does not exceed half, thus avoiding contamination of the representative value by individual mismatches. Both representative disparities are multiplied by the scaling factor of adjacent layers to convert them to fine-layer pixel units, and these are used as the two center positions for fine-layer search. A search interval covering both sides of each center position is formed, with the interval radius being the search radius of the partition to which the fine-layer pixel belongs in that layer. The aggregation cost of each candidate disparity is compared within the two search intervals, and the one with the lowest aggregation cost is taken as the fine-layer disparity for that fine-layer pixel. This separates the disparity information on both sides of the break before entering fine-layer matching, preventing the initial value from being contaminated by the mutually compromised disparities on both sides.
[0086] The above refinement process is executed cyclically layer by layer up to the original resolution layer. After each layer is refined, the result of the previous layer is used as the input for the next layer. The disparity of each refined pixel constitutes the initial disparity map. Pixels whose disparity cannot be determined due to insufficient matching evidence are marked as holes.
[0087] S106. Perform a left-right consistency check on the initial disparity map to obtain the left-right consistency difference; according to the preset partition weights in the partition attribute table, perform weighted synthesis of the confidence components of the initial disparity map based on the left-right consistency difference to obtain a disparity confidence raster; construct a passage cost field containing cross-fracture penalties based on the fracture mask raster; use high-confidence pixels in the disparity confidence raster as seeds to propagate and repair holes in the passage cost field to obtain a complete disparity map and an updated confidence raster.
[0088] Specifically, a left-right consistency check is performed on the initial disparity map. After matching is complete, the same matching process is performed again with the right image as the primary image to obtain the right disparity map. For each pixel in the initial disparity map, the corresponding position is located on the right disparity map according to the disparity value of that pixel. The disparity value at that position is taken, and the two disparities are inversely summed and their absolute values are taken to obtain the left-right consistency difference. The calculation formula is as follows:
[0089]
[0090] in, The pixel's coordinates The difference in left-right consistency at that point. This represents the disparity value of the pixel in the initial disparity map. This represents the disparity value at the corresponding position in the right-side disparity map after disparity mapping of the pixel. For pixels with consistent left and right disparities, the two disparities are opposites and the difference is zero. For pixels with inconsistent disparities, the difference is greater than zero, and the larger the difference, the more significant the contradiction. Pixels with inconsistent left and right disparities are marked as holes.
[0091] The left-right consistency difference output by the left-right consistency check serves as geometric cross-validation evidence for confidence, and together with image texture intensity, constitutes a component source of confidence. In this embodiment, the confidence components include at least two types: left-right consistency components and texture intensity components. The left-right consistency component score is obtained by applying an exponential decay mapping to the left-right consistency difference, and the calculation formula is as follows:
[0092]
[0093] in, The left-right consistency component score for this pixel is given, where exp is the natural exponential function. This represents the left-right consistency difference of the pixel. This is the tolerance. The closer the difference is to zero, the closer the score is to 1. As the difference increases, the score decays exponentially, and the evidence of mutual consistency between the left and right sides weakens rapidly.
[0094] The texture intensity component score is obtained by linear capping the local gradient magnitude of grayscale values from the left and right epipolar images. The calculation formula is as follows:
[0095]
[0096] in, This is the texture intensity component score for that pixel, where min represents the smaller of the two values within the parentheses. This represents the local gradient magnitude of the grayscale values of the left and right epipolar lines at that pixel. This serves as a reference value for texture intensity. When the texture intensity is below the reference value, the score increases linearly, and after reaching the reference value, it caps at 1, indicating that the texture information is sufficient to support a reliable match.
[0097] The component scores are weighted and synthesized according to the preset partition weights in the partition attribute table. The calculation formula is as follows:
[0098]
[0099] in, The disparity confidence level of this pixel after weighted synthesis. and Preset partition weights are assigned to the left-right consistency component and the texture intensity component, respectively, with the sum of the preset partition weights equal to 1. Weights are assigned based on terrain unit partitions: in partitions with scarce or occluded texture, left-right consistency evidence relies on geometric cross-verification between two images and is unaffected by image texture quality, so the left-right consistency component weight is set to a larger value; in partitions with abundant texture, the texture intensity component weight is set to a larger value. The composite result for each pixel is written pixel-by-pixel into the disparity confidence raster; in the disparity confidence raster, pixels with a confidence level not lower than the high confidence threshold are considered high-confidence pixels, forming the seeds for subsequent propagation and inpainting.
[0100] A graph structure is constructed using all pixels as nodes and four neighboring pixels as directed edges. The edge weights represent the travel costs, resulting in a travel cost field including cross-fracture penalties. The parallax systems on either side of a fracture are independent. Cross-fracture propagation injects the parallax system from one side into the other, creating fake terrain. Therefore, the cross-fracture penalty term is defined as: the edge cost for entering a fracture mask pixel is significantly higher than the normal travel cost, making the cross-fracture path always the worst path. The travel cost field may also include an aspect consistency term, a slope smoothing term, and a cavity entry cost term. The aspect consistency term extends the propagation path along the terrain direction; the slope smoothing term increases the cost when the propagation path crosses parallax abrupt change zones; and the cavity entry cost term increases the cost of entering low-confidence pixels, guiding the propagation path to prioritize high-confidence areas. Each component is weighted and synthesized according to the propagation weights in the partition attribute table, with partitions with strong fracture evidence receiving larger cross-fracture penalty weights.
[0101] Using high-confidence pixels in the disparity confidence raster as seeds, holes are repaired through propagation in the passage cost field: propagation expands outward from the seed round by round. Pixels with determined disparity advance towards neighboring pixels with undetermined disparity in each round. Each pixel selects the path with the minimum cumulative passage cost from its propagated neighborhood to obtain its disparity value. Hollow pixels obtain their disparity from the propagation path. The confidence of each pixel decreases proportionally with each propagation round, decreasing once per round. The confidence decreases with distance from the seed. The reduction result is written into the updated confidence raster for each pixel. Pixels whose disparity cannot be determined after propagation retain the hole mark and constitute unrepaired pixels. After propagation, all pixels except unrepaired pixels have disparity values, resulting in a complete disparity map and an updated confidence raster. The updated confidence raster serves as the weight basis for subsequent triangulation construction.
[0102] S107. Perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; construct a triangulation network for the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight.
[0103] Specifically, forward intersection is performed on the complete disparity map according to refined geometric parameters. For each pixel with a disparity value in the complete disparity map, its corresponding image points are the left pixel and the right pixel mapped according to the disparity value. The two image points are mapped back to the coordinates of the left and right original images through the inverse epipolar transform. Then, two lines of sight are established by backprojection according to the refined geometric parameters: two ground points are calculated using the lower and upper bounds of the existing digital elevation model's elevation range as two reference elevations, and the line connecting the two points is the line of sight for that pixel. The two lines of sight are denoted as... and ,in and These are the starting points of the left and right lines of sight, respectively. and These are the unit vectors for the left and right line-of-sight directions, respectively. and These are the line-of-sight parameters, and the foot parameter of the common perpendicular of the two lines of sight is:
[0104]
[0105] in, The parameter represents the line of sight corresponding to the foot of the common perpendicular of the left line of sight. The right line of sight is obtained by using a symmetric formula as the vector dot product. Due to matching errors, the two lines of sight are usually skew lines. The midpoint of the closest point between the two lines of sight is taken as the ground point of the pixel. The first and second components of the ground point are planar coordinates, and the third component is the elevation.
[0106] In the case of degradation where the angle between the two lines of sight is too small, i.e. the two lines of sight are nearly parallel, the intersection solution is extremely sensitive to small errors. For such pixels, intersection is not performed, ground points are not generated, and intersection protection marks are not written.
[0107] Before constructing the network, the ground points are thinned using the updated confidence grid as the weight: all vertices are retained in high confidence regions to preserve terrain details, while low confidence regions are thinned according to the rules of the grid. The vertices with the highest confidence are retained in each grid, and vertices within the break line inflection points and partition boundary bands are not included in the thinning.
[0108] Furthermore, a triangulation is constructed using the fracture line vector as the constraint edge pairs of the thinned ground points. During construction, all fracture line vertices are forcibly added to the vertex set, serving as vertices of the triangulation along with the ground points. Constraint edges are inserted for each fracture line and each vertices: for each adjacent vertices, starting from the triangle containing the starting point, triangles are crossed along the vertices, collecting and deleting triangles crossed by the fracture line to form cavities. The cavity boundaries are cut into two edge chains by the vertices, with the left edge chain and left vertex, and the right edge chain and right vertex retriangulated. The opposite vertices are not used on either side, making the vertices the common edges of the left and right sets of triangles. The newly added edges within the cavities are restored to their local empty circle properties, but triangle edge pairs with fracture lines as edges are prohibited from being flipped. After the above processing, triangles on both sides of the fracture line do not cross each other, and long and narrow triangles crossing the fracture, as well as artifacts such as valley filling and ridge cutting, are eliminated from the mesh construction mechanism. Topographical abrupt changes near the fracture line are preserved in the form of triangulation edges.
[0109] After network construction, the vertex elevations of low-confidence regions are smoothed using a confidence-weighted method: the smoothed elevations are calculated using the following formula:
[0110]
[0111] in, The smoothed vertex elevation. This is the original elevation of the vertex. The updated confidence level corresponding to this vertex. The mean elevation of a vertex is the elevation of all vertices within its one-ring neighborhood, provided that the one-ring neighborhood does not cross any break constraint edges. After smoothing, the elevation transitions continuously between the original vertex elevation and the mean elevation of the one-ring neighborhood, varying with confidence level; the lower the confidence level, the closer the elevation approaches the neighborhood mean. Unrepaired cells and cells with intersection protection markers do not generate ground points; the triangulated mesh leaves empty patch areas at these locations.
[0112] S108. Select texture sources for the triangular mesh based on satellite stereo image pairs, map texture sources onto the meshes to obtain a terrain-level real-scene 3D model.
[0113] Specifically, texture sources are selected based on the triangular mesh of the satellite stereo image pairs. For each patch, its suitability as a texture source is examined in the left and right original images of the satellite stereo image pair, based on the following criteria: the angle between the patch normal and the image line of sight (a smaller angle indicates a more positive image viewpoint and less texture stretching); image resolution (higher resolution results in richer texture details); occlusion (images where the line of sight from the patch to the image projection center is occluded by other patches are unsuitable); and image quality (images where the patch projection area is marked as cloud shadows or shadows by a quality mask grid are not considered texture sources). A comprehensive texture score is calculated for the candidate images based on the above criteria, using the following formula:
[0114]
[0115] in, For the overall texture score, An index for texture suitability For the first Each item is based on its corresponding weight, and the sum of all weights equals 1. For the first The applicability of the item is based on the normalized applicability, with values between 0 and 1. The summation symbol indicates the summation of applicability based on all textures. The texture source is determined for each patch based on the image with the highest texture comprehensive score.
[0116] Furthermore, the image texture of the corresponding area in the texture source image is mapped onto the surface, and the color image is processed separately for the red, green, and blue channels. Blending is performed at the seams of adjacent surfaces: when the texture sources of adjacent surfaces are different, there may be color differences on both sides of the seam. Feathering blending can be used to linearly blend the textures on both sides along the common edge according to the distance from the boundary, resulting in a smooth color transition; alternatively, histogram matching can be used to map the grayscale distribution of different image sources to the same distribution before participating in the fusion, eliminating system radiation differences between images. After mapping and fusion, a terrain-level realistic 3D model is obtained.
[0117] The aforementioned satellite real-scene 3D modeling method based on terrain zoning constraints divides the survey area into at least two types of terrain units and sets differentiated matching parameters for each type. This allows the disparity matching window and search range to adaptively adjust with terrain features, overcoming the shortcomings of uniform matching parameters across the entire domain in complex terrain. Before matching, terrain fractures are detected based on the terrain attributes of the existing digital elevation model and the image gradients of the left and right epipolar image pairs, generating fracture mask gratings and fracture line vectors. Then, during the layer-by-layer refinement of the image pyramid, fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighboring area according to the differentiated matching parameters and based on the fracture mask pyramid. This ensures that when the coarse-layer disparity propagates to the fine-layer, the disparity information on both sides of the fracture is separated and does not contaminate each other before entering the fine-layer matching, preventing the initial disparity value near the fracture from being crossed across the fracture. The system addresses artifacts and mismatches caused by smoothing out the steps. It then performs a left-right consistency check on the initial disparity map obtained from the matching, and weights the left-right consistency difference and other confidence components according to the preset partition weights in the partition attribute table to synthesize a disparity confidence raster. High-confidence pixels in this raster are then used as seeds to propagate and repair holes in a passage cost field containing cross-fracture penalties constructed based on the fracture mask raster. This ensures that the direction of hole repair is explicitly constrained by the terrain orientation and fracture distribution, avoiding empirical interpolation cross-fracture crosstalk and improper repair direction. Finally, the complete disparity map is intersected in front to form ground points according to refined geometric parameters. A triangular mesh is constructed using fracture line vectors as constraint edges and the updated confidence raster as weights, ensuring that triangles do not cross fracture lines. This improves the overall continuity, landform preservation, and texture consistency of the terrain-level realistic 3D model under complex terrain conditions.
[0118] Example 2:
[0119] Based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, terrain fractures are detected to obtain fracture mask grids and fracture line vectors, including the following steps:
[0120] S201. Based on the topographic gradient and curvature of the existing digital elevation model, normalize the fracture strength according to the survey area.
[0121] S202. Based on the image gradient of the left and right epipolar image pairs and the slope gradient in the terrain attributes of the existing digital elevation model, determine the evidence of steep slopes in the images using a dual threshold method.
[0122] S203. The fracture intensity is logically ORed with the image steep slope evidence to obtain the fracture mask grid.
[0123] S204. Refine the fracture mask grid to obtain a refined mask grid; vectorize the refined mask grid to obtain fracture line vectors.
[0124] Specifically, the data sources for fracture detection are the terrain attributes of existing digital elevation models and the image gradients of left and right epipolar image pairs. These two data sources provide geometric and image-based evidence of terrain fractures, respectively. The terrain attributes are attribute fields derived from existing digital elevation models, including terrain gradient, curvature, and slope; the image gradient is calculated from the gray-scale mean image of the left and right epipolar image pairs. The detection process first constructs fracture intensity and image scarp evidence from the two data sources, then logically ORs these two types of evidence to form a fracture mask raster. Finally, it is refined and vectorized into fracture line vectors. The fracture mask raster and fracture line vectors are provided for subsequent processing in pixel-level and geometric-level forms, respectively. Fracture intensity is the concretization of terrain-based fracture evidence, and image scarp evidence is the concretization of image-based fracture evidence.
[0125] Specifically, the terrain gradient is calculated from the elevation field of an existing digital elevation model using the first-order central difference, and its position in the pixel coordinates... direction and The directional components are as follows:
[0126]
[0127]
[0128] in, and These are the terrain gradients in cell coordinates. direction and directional components, For existing digital elevation models in pixels The elevation value at a given location, the arithmetic square root of the sum of squares of the components constitutes the topographic gradient modulus, which measures the local steepness of the land surface, with significant values at steep cliffs and slopes.
[0129] The slope is calculated using the following formula:
[0130]
[0131] in, Let be the slope at pixel (u,v), and arctan be the arctangent function.
[0132] curvature The discrete approximation of the elevation as a sum of the second derivatives with respect to the pixel coordinates is calculated using the following formula:
[0133]
[0134] in, For existing digital elevation models in pixels The elevation value at a location; the absolute value of curvature measures the degree of curvature of the earth's surface. A negative curvature indicates that the earth's surface bulges upward and forms a ridge, while a positive curvature indicates that it sinks downward and forms a valley.
[0135] The slope field provides evidence of steep slopes in the images for slope gradient calculation, while the curvature field and gradient field provide evidence of fracture strength.
[0136] A steep slope or a bend alone is not enough to determine a topographic fault: a continuous steep slope has a large gradient and a small curvature, while a gentle hill has a non-zero curvature and a small gradient. Only when the topographic gradient and curvature are both significant, that is, the surface is both steep and folded, can a topographic fault be formed. Ridges, cliffs, and the sides of deeply incised valleys all belong to this category.
[0137] Fracture strength is constructed according to the following formula:
[0138]
[0139] in, For pixels Fracture strength at the point; and Terrain gradient in cell coordinates direction and The directional components, the arithmetic square root of the sum of their squares, is the terrain gradient modulus at that pixel; The absolute value of the curvature at that pixel is used in the calculation to ensure that both convex and concave morphologies contribute equally to the fracture strength. This represents the average topographic gradient modulus of all pixels within the survey area. This is the mean of the absolute values of curvature of all pixels within the survey area; The weights represent the two types of evidence, with the sum of the two weights being 1, indicating that the terrain gradient evidence and curvature evidence are equally important. The fault intensity is a continuous response field; a larger value indicates more drastic local changes in the terrain and is more likely to be a terrain fault location.
[0140] The physical basis of normalization lies in the fact that the two types of components have different dimensions and their numerical ranges cannot be directly compared: the dimension of the topographic gradient modulus is the ratio of elevation to pixel, while the dimension of the absolute value of curvature is the ratio of elevation to the square of pixel coordinates. Since their dimensions are different and their numerical ranges drift with the grid spacing of the existing digital elevation model and the elevation difference of the survey area, if they are directly added together, the smaller value will be overwhelmed by the larger value, effectively discarding one type of evidence. Normalization by survey area uses the mean of the survey area as a benchmark, dividing each component by its respective mean. Both components become multiples of the pixel's response relative to the background level of the survey area. The dimensions are thus eliminated, and the scales are aligned to the same level. Only when they are added with equal weight can it be considered that the two types of evidence are equally important. Normalization also makes the fracture intensity a relative quantity to the background level of the survey area, and its judgment threshold can be set according to the relative level, maintaining consistent detection sensitivity across different survey areas and resolutions. When the entire survey area is flat and the mean of the topographic gradient modulus or the mean of the absolute value of curvature is close to zero, the corresponding normalization term is directly taken as zero to participate in the calculation to avoid division by zero. At this time, the overall fracture strength tends to zero, and the fracture detection is automatically weakened.
[0141] Specifically, the evidence for image steep slopes is determined by exceeding the limits of two types of gradients: abrupt changes in brightness and abrupt changes in slope. The image gradient is calculated from the gray-scale mean image of the left and right epipolar image pairs, and its modulus is denoted as... ,in The gray-scale mean image of the left and right epipolar image pairs at the pixel level grayscale value at that location The gradient operator measures the abrupt change in brightness in space; the slope gradient is calculated from the slope field in the terrain attributes of an existing digital elevation model, and its modulus is denoted as . ,in For the slope field in pixels The slope value at a given location; the slope gradient measures the degree of abrupt change in slope in space.
[0142] When using a dual threshold method, if the image gradient magnitude is greater than the image gradient threshold... Furthermore, the slope gradient magnitude is simultaneously greater than the slope abrupt change threshold. That is, satisfying When determining that a pixel constitutes evidence of an image ridge, both conditions are indispensable; Image gradient threshold, The thresholds for slope abrupt changes are calibrated according to the statistical characteristics of the survey area. The mechanism of dual-condition juxtaposition is to eliminate false positives: abrupt changes in image grayscale are widespread in images; farmland boundaries, vegetation edges, rock texture lines, and shadow boundaries all exhibit abrupt changes in brightness. However, the vast majority of these are not abrupt changes in topographic elevation. If judged solely by the image gradient as a single condition, texture boundaries would be falsely reported as steep slopes. Although abrupt changes in slope are directly related to topographic transitions, the slope field comes from an existing digital elevation model and is relatively smooth. Relying solely on geometric evidence is limited by resolution. Only when abrupt changes in brightness and slope coincide spatially—that is, when a topographic elevation change occurs at a certain location, a brightness change must simultaneously appear at that location in the high-resolution image—can two independent sources of evidence spatially corroborate each other, indicating the existence of a genuine elevation change, i.e., a steep slope. Therefore, dual-condition juxtaposition utilizes logic to eliminate false positives within the image steep slope evidence, using the spatial overlap of abrupt changes in brightness and slope as the criterion for genuine elevation changes.
[0143] Furthermore, the fracture mask grid is synthesized by logical ORing the fracture intensity with the image ridge evidence, and the synthesis formula is as follows: ,in For the fracture mask grid in the pixel The value at the location is 1, which indicates that the pixel is a broken pixel, and 0, which indicates that the pixel is not a broken pixel. This is an indicator function; it takes the value 1 if the condition within the square brackets is true, and 0 otherwise. For logical OR operation, For logical AND operation; The fracture strength threshold is the fracture strength. The first condition is met when the value is greater than the threshold. and For the aforementioned image gradient magnitude and slope gradient magnitude, and The aforementioned image gradient threshold and slope abrupt change threshold, together with the logical conditions formed by these four factors, constitute the aforementioned image steep slope evidence. The synthesis formula presents a two-layer logical structure: logical OR between evidence and logical AND within evidence, respectively fulfilling the functions of blind zone complementarity and false positive elimination.
[0144] The complementarity of the two types of evidence lies in their perfectly balanced strengths and weaknesses: Fault strength originates from the terrain attributes of existing digital elevation models (DEMs), reflecting real abrupt changes in terrain geometry and unaffected by lighting or image quality. This evidence remains effective even in shadowed and low-texture areas. However, when the resolution of the existing DEM is insufficient, narrow steep slopes with widths less than the grid spacing are smoothed out, resulting in a weak fault strength response and missed detections. Image-based steep slope evidence, derived from high-resolution imagery, effectively captures narrow steep slopes missed by existing DEMs. However, it is dependent on image quality and fails in shadowed, low-texture, and water surface specular reflection areas. After logical or synthetic synthesis of the two types of evidence, any valid evidence is immediately identified as a fault pixel. Missed detections by existing DEM evidence are compensated for by image-based steep slope evidence, and the ineffective areas of image-based steep slope evidence are compensated for by existing DEM evidence. The two mutually cover each other's blind spots, ensuring that the fault mask grid maintains complete terrain fault detection under different lighting conditions and terrain scales.
[0145] For example, in the broken mask raster obtained by logical OR synthesis, broken pixels are connected to form strips of a certain width. These multi-pixel-wide raster strips cannot be directly vectorized; tracing the center line along the strip will cause back-and-forth jitter and produce spikes and bifurcations. Therefore, the broken mask raster is first refined to compress the strips into a single-pixel-wide skeleton. Refinement is performed iteratively in rounds: in each round, the edge pixels of the mask are checked one by one. Pixels that, after removal, do not disrupt the connectivity of their eight neighbors and are not endpoints or isolated points are marked as removable. After all checks in this round are completed, the marked pixels are uniformly removed before proceeding to the next round, until no pixels are removable. Uniform removal in rounds avoids directional bias. If removal is performed while checking, the scanning order will introduce a systematic directional bias, causing the skeleton to be biased towards the scanning start side. Uniform removal ensures that each round's removal decision is based on the same initial state, and the skeleton is distributed along the strip center line. Preserving endpoints and isolated points ensures that the topological structure of line endpoints and branch points is not destroyed, preventing short lines from being completely stripped away. After refinement, a refined mask grid is obtained.
[0146] Vectorization is performed on the refined mask grid to obtain the break line vector. Vectorization sequentially performs chain tracing, node thinning, Douglas-Pock simplification, and topology checking: Chain tracing starts from any endpoint and records the coordinates of foreground pixels along the eight neighborhoods. At each bifurcation point, a new chain is generated starting from that bifurcation point until it returns to the endpoint or the chain closes itself, extracting the skeleton line as a polyline chain; Node thinning takes one point every interval for consecutive pixels on the same chain whose spacing is less than the thinning interval, removing redundant nodes; Douglas-Pock simplification uses the line connecting the first and last nodes of the chain as a reference, recursively retaining nodes whose vertical distance exceeds the tolerance, compressing the polyline scale while maintaining the geometric shape; Topology checking removes dangling short lines with a length less than the spur threshold, merges two dangling endpoints with a spacing less than the connection tolerance into a continuous line, and eliminates self-intersections and duplicate nodes. After removing spurs and dangling lines, a topology-clean break line vector is obtained. Each fracture line in the fracture line vector is composed of an ordered sequence of nodes, which expresses the fracture direction and topological relationship in a geometrical form. It shares the same detection result with the cell-level form of the fracture mask grid and serves as a geometrical constraint for subsequent processing.
[0147] Example 3:
[0148] The fracture mask pyramid is obtained by performing logical OR aggregation on the fracture mask grid according to a preset scaling ratio. Each coarse layer cell of the fracture mask pyramid is formed by logical OR aggregation of the fine layer cells covered by each coarse layer cell.
[0149] refer to Figure 2 In the layer-by-layer refinement of the image pyramid, based on the differential matching parameters in the partition attribute table, and according to the fracture mask pyramid, fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighborhood to obtain the initial disparity map, including the following steps:
[0150] S301. Determine the fracture normal based on the direction of the fracture line vector to obtain the fracture normal.
[0151] S302. Perform split sampling on the neighborhood of the corresponding coarse layer for fine layer pixels according to the fracture state to obtain the representative disparity of each side; wherein, the representative disparity of each side includes the same-side representative disparity and the opposite-side representative disparity. The same-side representative disparity is the representative value of the coarse layer disparity in the neighborhood with the same fracture state as the fine layer pixel, and the opposite-side representative disparity is the representative value of the coarse layer disparity in the neighborhood with the opposite fracture state as the fine layer pixel.
[0152] S303. Perform a vector dot product between the gradient and the break normal of the fine-layer image of the image pyramid to calculate the discrimination factor; wherein, the formula for calculating the discrimination factor is:
[0153]
[0154] in, For fine-layer pixels in pixel coordinates The judgment measure at the location; For the first image pyramid Layer image at pixel coordinates The gradient vector at that point; For the fracture normal in the cell coordinates The unit vector at that location; It is the dot product of vectors.
[0155] S304. Select the representative parallax of the corresponding side from the representative parallax of each side according to the judgment value to obtain the search center; wherein, when the judgment value is greater than 0, the corresponding side is the side to which the fracture normal points; when the judgment value is not greater than 0, the corresponding side is the opposite side to which the fracture normal points.
[0156] S305. Perform a one-way offset on the search interval of the search center according to the judgment value to obtain the offset search interval; wherein, the calculation formula of the offset search interval is:
[0157]
[0158]
[0159] in, The lower bound of the bias search interval is at cell coordinates The disparity value at that location; The upper bound of the bias search interval is at cell coordinates The disparity value at that location; The search center at cell coordinates The disparity value at that location; The partition to which the fine-layer pixel belongs is in the th The fine-grained search radius of the layer; This is the unidirectional bias coefficient; For fine-layer pixels in pixel coordinates The judgment measure at the location; This is an indicator function that takes the value 1 if the condition within the square brackets is true, and 0 otherwise.
[0160] S306. Compare the aggregation costs of each candidate disparity within the bias search interval, take the candidate disparity corresponding to the minimum aggregation cost, obtain the fine-layer disparity, and construct the initial disparity map from the fine-layer disparities.
[0161] Specifically, the image pyramid is constructed layer by layer from the coarsest top layer to the original resolution layer, with each layer scaled according to a preset scaling ratio. Each layer's image corresponds to the same grid as its disparity map. The inter-layer downsampling of the image pyramid is performed using an arithmetic mean, taking the arithmetic mean of the grayscale values of each block of the fine-layer image according to the scaling ratio as the grayscale value of the corresponding coarse-layer pixel. The fracture mask grid is on the same grid as the image pyramid. If the same arithmetic mean downsampling is performed on it, the fine fracture lines penetrating the coarse-layer pixels will be diluted to an intermediate value between 0 and 1. This value no longer meets the fracture criterion in subsequent thresholding processing, and the fracture marker disappears in the coarse layer. The fracture lines gradually degenerate as the pyramid increases in height.
[0162] Therefore, the fracture mask pyramid is constructed according to logical or aggregate principles, the first... Layer fracture mask in coarse layer pixels The value at that location is obtained by aggregating the fine-layer pixels covered by the coarse-layer pixel, that is:
[0163]
[0164] in, The layer number is the thickest layer, with layer 0 being the top layer. This represents the scaling ratio between adjacent layers; , The row and column indexes of the covered fine-layer cells within the block; and The first Layer and First The values of the layer fracture mask are all either 0 or 1. `max` is the maximum value operation. For a binary fracture mask with only 0 or 1 values, the maximum value is equivalent to a pixel-by-pixel logical OR. That is, if there is a fracture pixel in the covered fine-layer pixels, the coarse-layer pixel is marked as a fracture pixel. Only when all covered fine-layer pixels are non-fracture pixels is the coarse-layer pixel considered non-fracture. Logical OR aggregation is an existence aggregation, preserving the existence of fracture markers rather than their concentration. Coarse-layer pixels traversed by fracture lines retain explicit fracture markers in each layer, and fracture lines do not degenerate as the pyramid increases. In contrast, arithmetic mean downsampling dilutes fracture markers to intermediate values, causing them to disappear during thresholding. These two downsampling rules match the semantics of the image pyramid and the fracture mask pyramid, respectively. Each layer of the fracture mask pyramid corresponds one-to-one with each layer of the image pyramid. After a fine-layer pixel is located at its corresponding coarse-layer sampling position, the fracture mask of the same layer can be directly read to determine whether a fracture pixel exists in the neighborhood.
[0165] The fracture normal is determined by the orientation of the fracture line vector: each fracture line in the fracture line vector consists of an ordered sequence of nodes, and the fracture line at each node has a clear orientation. The fracture normal is taken perpendicular to the orientation of the fracture line, i.e., the direction that crosses the fracture line, and is oriented according to the elevation difference sign of the existing digital elevation model on both sides of the fracture, pointing towards the side with the larger elevation difference, i.e., from the side with the lower elevation difference to the side with the higher elevation difference, and then normalized to a unit vector. There are two opposite orientations perpendicular to the orientation, and the elevation difference sign on both sides of the fracture eliminates this ambiguity, establishing a definite correspondence between the fracture normal and the direction of rise and fall of the terrain elevation difference, thus uniquely determining the direction of the side determination and the unidirectional offset. The fracture normal is recorded as a unit vector per pixel in the normal field of the same grid as the fracture mask. The normal of the pixel outside the mask is taken from the normal of the nearest fracture mask pixel. During fine-layer side determination, the fracture normal unit vector at the corresponding position is read per pixel.
[0166] In the process of layer-by-layer refinement, the coarse layer has low resolution. The disparity that should be significant on both sides of the fracture is absorbed by individual coarse layer pixels. The disparity of the coarse layer pixels near the fracture is a compromise between the true values on both sides, and the disparity of the coarse layer near the fracture no longer has a jump structure. If the coarse layer disparity map is smoothed and upsampled in the conventional way, and the significant disparity on both sides is smoothed into a gradual transition zone before the fine layer search center is set, the true disparity jump of the fine layer pixels on both sides of the fracture will fall outside the narrowed search range, and patchy mismatches will occur near the fracture line.
[0167] Before coarse-layer disparity enters fine-layer matching, S302 separates the disparity samples within the corresponding coarse-layer neighborhood according to the fracture state. For fine-layer pixels, their sampling positions in the corresponding coarse layer are located according to the scaling ratio of adjacent layers. The row and column coordinates of the sampling position are taken as the integer part of the fine-layer pixel coordinates divided by the scaling ratio of adjacent layers. A 3×3 neighborhood of the coarse-layer pixel centered on the sampling position is taken, and it is checked whether there are any coarse-layer pixels with a fracture mask value of 1 in the neighborhood. If there are no fracture pixels in the neighborhood, the fine-layer pixel is processed according to the normal upsampling path; if there are, the fine-layer pixel enters the fracture sensing branch, and the coarse-layer disparity within the neighborhood is split into a same-side subset and an opposite-side subset according to the fracture state, that is:
[0168]
[0169]
[0170] in, fine-layer pixels The 3×3 coarse layer cell neighborhood at the corresponding coarse layer sampling location; These are the row and column coordinates of the sampling location; This is the row and column index for coarse-layer pixels within the neighborhood; and These represent the values of the coarse-layer pixels in the neighborhood and the fracture mask at the sampling location, respectively. Conditions Include coarse-layer pixels with the same fracture state as fine-layer pixels into the same-side subset. The coarse-layer pixels whose fracture state is opposite to that of the fine-layer pixels constitute the opposite-sided subset. The coarse-layer pixels where the fault line is located are fault pixels, and the coarse-layer pixels corresponding to the ground surfaces on both sides are non-fault pixels. The same-side subset and the opposite-side subset thus roughly correspond to the disparity samples on both sides of the fault. When the sampling location itself is a fault pixel, the same-side subset is a fault pixel, and its disparity is the compromise value between the two sides; the opposite-side subset is a non-fault pixel, and its disparity is not mixed by the fault. When non-fault pixels are distributed on both sides of the fault line, their disparity is formed by the mixture of the pure disparities on both sides.
[0171] Within each of the two subsets, representative disparities are taken respectively, i.e.:
[0172]
[0173]
[0174] in, Parallax is represented by the same side. The opposite side represents the parallax, and `median` is the median operator. To correspond to the coarse disparity map in the neighboring coarse pixels The disparity value at the location. In this embodiment, the median disparity is taken as the representative disparity. There are at most 9 samples in the 3×3 neighborhood. The extreme disparities of individual mismatches can significantly skew the mean, while the median remains stable when the proportion of mismatched samples does not exceed half, which can avoid individual mismatches from contaminating the representative value. The coarse disparity of the broken pixel is the median value of both sides, and the coarse disparity of the non-broken pixel is the pure value of one side or the mixed value of both sides. Neither of them exceeds the interval subtended by the true disparities on both sides of the break. Therefore, the representative disparities on the same side and the representative disparities on opposite sides both fall within this interval, which is a feasible central benchmark for subsequent one-sided bias search to cover the break jump. If a subset is an empty set, its representative disparity is taken as the median of the disparities of all 9 coarse pixels. Both representative disparities are converted to fine pixel units by multiplying by the scaling ratio of the adjacent layer before being used as the search center, with the corresponding coarse pixel as the unit.
[0175] The location of a fine-layer pixel on the fracture side is determined by a diametrical measure, which physically represents the rate of change of the fine-layer image's grayscale along the fracture normal. S303 relates to the image pyramid... The gradient vector of the layer image is multiplied by the unit vector of the break normal to calculate the differential. The vector dot product is the projection of the image gradient vector onto the unit vector of the break normal. The gradient vector is derived from the gradient vector of the layer image. Layer image grayscale in pixel coordinates The central difference structure at the fracture point uses the fracture normal unit vector derived from the aforementioned normal field. When the projection value is greater than 0, the grayscale of the fine-layer image increases along the fracture normal direction, and the fine-layer pixel is located on the bright side of the fracture. Under typical illumination conditions where the sun is on the elevation difference side and the depression side is in shadow, the elevation difference side receives sufficient light and has higher brightness, corresponding to the side the fracture normal points to. Therefore, a side judgment value greater than 0 is judged as the side the fracture normal points to, and a value not greater than 0 is judged as the opposite side the fracture normal points to. Side judgment depends on illumination conditions. When the brightness difference between the two sides of the fracture is very small and the absolute value of the side judgment value is close to zero, the projection of the gradient in the fracture normal direction is insufficient to support the side judgment, and it is treated as if the side judgment value is not greater than 0. The residual judgment error is corrected by subsequent left-right consistency checks. When the known sun azimuth in the survey area is opposite to the aforementioned premise, the side judgment sign can be verified by statistically checking the brightness of the elevation difference side of the existing digital elevation model on both sides of the fracture and then processed in reverse.
[0176] S304 selects the representative disparity of the corresponding side from the representative disparities of each side according to the judgment value to obtain the search center. When the judgment value is greater than 0, the corresponding side is the side that the fracture normal points to, and the representative disparity of that side is taken; when the judgment value is not greater than 0, the corresponding side is the opposite side that the fracture normal points to, and the representative disparity of the opposite side is taken. The fine layer pixels located on the side that the fracture normal points to are thus searched with the opposite side's representative disparity as the search center, and those located on the opposite side are searched with the same side's representative disparity as the search center. The search center corresponds to the side determined by the judgment value. The coarse layer disparities that contaminate each other on both sides of the fracture are separated before entering the fine layer matching, and the fine layer matching is no longer centered on the cross-fracture compromise value.
[0177] The basis for unidirectional biasing is the directionality of the parallax jump on both sides of the fault. In satellite stereo imaging geometry, the parallax of corresponding image points is determined by the distance of the ground object relative to the sensor. The closer the ground object is to the sensor, the greater the parallax; the higher the elevation, the closer the ground object is to the sensor, and the parallax monotonically increases with the object's elevation. A fault is a sharp change in terrain elevation. The ground elevation on the side of the fault's normal direction is higher than on the other side, and the parallax on the side of the height difference is necessarily greater than on the side of the height difference. This directionality is determined only by the imaging geometry and the relationship with the terrain, and does not depend on the image content. Therefore, for fine-layer pixels located on the side of the fault's normal direction, their true parallax is greater than that of the search center, and only the upper bound of the search interval needs to be expanded; for fine-layer pixels located on the opposite side, their true parallax is smaller than that of the search center, and only the lower bound of the search interval needs to be expanded. The two indicator functions in the formula for calculating the bias search interval achieve this unidirectional widening under complementary conditions: when the criterion is not greater than 0, the first indicator function is 1, and the lower bound of the bias search interval is expanded outward by a multiple of the unidirectional bias coefficient based on the fine-layer search radius, while the upper bound remains unchanged at the fine-layer search radius; when the criterion is greater than 0, the second indicator function is 1, and the upper bound of the bias search interval expands outward while the lower bound remains unchanged. Since either the criterion being not greater than 0 or greater than 0 is true, only one side of the lower and upper bounds is widened. If the search interval is symmetrically enlarged on both sides based on the search center, the interval must be widened to span the entire jump amplitude to cover the true peak values on both sides; the area near the fracture is often a low-texture or shadow region, with a flat and multi-peaked aggregation cost curve. The position of the minimum aggregation cost within the wide interval is determined by noise, and the false matching peak on the opposite side is included in the competition. The matching result jumps randomly on both sides of the fracture and even locks the false peak on the opposite side, producing step-like artifacts and matching divergence. One-way biasing constrains the search interval to one side of the determined side, covering disparity jumps without including false peaks on the opposite side. The one-way bias coefficient represents the proportion of the one-way broadening to the fine-layer search radius. The broadening is the product of the fine-layer search radius and the one-way bias coefficient, and its value is on the order of, for example, 0.5.
[0178] S306 performs fine-layer disparity calculation within the bias search interval. For each integer candidate disparity within the bias search interval, an aggregate cost is calculated. The aggregate cost is the average value within the matching window after weighting the gradient cost, Census cost, and prior cost of the existing digital elevation model according to the partition weights. The aggregate costs of each candidate disparity are compared within the interval, and the candidate disparity corresponding to the minimum value is taken as the fine-layer disparity of that pixel. The ordinary upsampling path and the break sensing branch share this interval for calculation; the only difference lies in the search center and the shape of the search interval.
[0179] The refinement process proceeds layer by layer from the coarsest top layer to the finest layers. After each layer is refined, its disparity map is used as the input for the next layer, until the original resolution layer is reached. When transferring disparity from coarse layers to finer layers, the normal path uses the bilinear interpolation result of the corresponding coarse layer disparity map at the sampling location, multiplied by the scaling ratio of adjacent layers, to convert it into finer layer pixel units, which serves as the search center. The bilinear interpolation is obtained by performing linear interpolation once in the horizontal and once in the vertical directions using the disparity values of the four coarse layer pixels surrounding the sampling location. The break detection branch determines the search center and offset search interval according to the aforementioned split sampling, side judgment, and unidirectional offset. The search radius of each fine layer is set by the partition attribute table according to the partition and layer number. As the layer number increases, it decreases proportionally according to the scaling ratio of adjacent layers. The larger the layer number, the higher the image resolution and the smaller the search radius.
[0180] The coarsest top layer has no initial disparity value from the upper layer. The predicted disparity obtained by backprojecting the existing digital elevation model with refined geometric parameters is used as the top layer search center. The top layer search interval is expanded according to the top layer search radius of this partition and widened according to the top layer fracture mask, with a widening factor on the order of 1, for example. Layer-by-layer refinement is carried out to the original resolution layer, and the disparity of each fine layer constitutes the initial disparity map. Pixels that fail the left-right consistency check are marked as holes in the initial disparity map and the marks are retained for subsequent processing.
[0181] Example 4:
[0182] Based on the preset partition weights in the partition attribute table, the confidence components of the initial disparity map are weighted and synthesized according to the left-right consistency difference to obtain the disparity confidence raster, including the following steps:
[0183] S401. Obtain the aggregation cost curve formed by the aggregation cost of each candidate disparity during the matching process of the initial disparity map; take the global minimum cost of the aggregation cost curve, perform quadratic curve fitting on the candidate disparity corresponding to the global minimum cost and its adjacent candidate disparities, and obtain the cost sharpness from the coefficient of the quadratic term of the fitting; take the difference between the minimum cost and the second minimum cost on the aggregation cost curve to obtain the second-best cost difference.
[0184] S402. Perform a monotonic mapping on the cost sharpness and the difference between suboptimal and optimal costs according to the corresponding reference values to obtain the cost structure component scores.
[0185] S403. Perform exponential decay mapping on the left-right consistency difference according to the tolerance to obtain the score of the left-right consistency component.
[0186] S404. Perform local gradient calculation on the grayscale of the left and right epipolar image pairs to obtain texture intensity; perform linear capping mapping on the texture intensity according to the corresponding reference value to obtain texture intensity component scores.
[0187] S405. Obtain the slope based on the terrain attributes, perform conformity mapping on the slope according to the dominant slope in the partition attribute table, and obtain the slope conformity component score.
[0188] S406. For each pixel in the initial disparity map, count the number of pixels in the statistical window centered on each pixel whose absolute value of the difference between the disparity and the central disparity is less than the tolerance, and obtain the neighborhood consistent pixel count; divide the neighborhood consistent pixel count by the total number of pixels in the statistical window to obtain the neighborhood continuity component score.
[0189] S407. The scores of each confidence component are weighted and synthesized according to the preset partition weights in the partition attribute table to obtain the disparity confidence grid; wherein, the confidence component scores include the cost structure component score, the left-right consistency component score, the texture intensity component score, the slope conformity component score, and the neighborhood continuity component score.
[0190] Specifically, the credibility component scores of the five categories measure the credibility of the matching results from three aspects: the evidence of the matching process itself, the geometric verification of the matching results, and the external prior. The inputs are all from the intermediate products generated in the matching and partitioning stages. The credibility construction does not introduce new observations, but only reorganizes the existing intermediate products according to the semantic evidence.
[0191] The construction of cost structure component scores begins with extracting the aggregated cost curve. During the matching phase, each candidate disparity is traversed pixel-by-pixel within the search interval according to the disparity sampling step size. The matching cost is calculated for each candidate disparity, and aggregation is performed according to the matching window set in the partition attribute table. The aggregated cost curve for each pixel is constructed by plotting the candidate disparity on the horizontal axis and the aggregated cost on the vertical axis. The pixel with the lowest aggregated cost is selected as the disparity in the initial disparity map. The aggregated cost curve is a natural byproduct of the matching process, generated during the matching process and remaining consistent with the initial disparity at the end of the matching process. Figure 1 This information is then passed to the credibility building stage, where it can be directly reused without recalculation. The shape of the aggregation cost curve carries self-proving information about the matching process: the curve for correctly matched pixels is concave near the optimal disparity, while the curves for low-texture, repetitive texture, and noise-dominated regions are flat, have multiple valleys, and do not have a significant unique valley bottom.
[0192] For the aggregation cost curve of each pixel, the global minimum cost is first taken. The candidate disparity corresponding to the global minimum cost is the disparity selected for that pixel in the matching stage according to the minimum aggregation cost criterion. The object of the credibility evaluation is the disparity actually selected in the matching. The aggregation cost satisfies a local quadratic approximation of a differentiable convex function near the optimal disparity. Therefore, a quadratic curve fitting is performed on the five sampling points of the candidate disparity and its two adjacent candidate disparities on the left and right sides, according to the least squares criterion. The fitting formula is:
[0193]
[0194] in, The aggregation cost curve for this pixel in the candidate disparity The fitted value at that point, As candidate parallax, , , These are the fitting coefficients. The coefficients of the quadratic term characterize the curvature of the cost trough; in this embodiment, the candidate disparity variable... The disparity values within the search interval are represented by a function that represents the values of the complete disparity map. Distinguishing between them, Matching cost mentioned above Aggregation cost The symbols are similar but their meanings are different. Taking five sampling points is sufficient to suppress single-point cost noise and is limited to the local valley, without crossing adjacent competing valleys. When the candidate disparity corresponding to the global minimum cost is located at the edge of the search interval, resulting in insufficient sampling points on one side, fitting is performed based on the actual existing sampling points; when the coefficient of the quadratic term obtained from the fitting is not greater than zero, that is, when the aggregate cost curve does not have a concave valley in that local area, it is considered that matching evidence is missing, and the cost sharpness is degraded to zero.
[0195] The cost sharpness is obtained from the coefficients of the fitted quadratic term, and the calculation formula is:
[0196]
[0197] in, For the sake of sharpness, The disparity sampling step size, This represents the global minimum cost of the aggregation cost curve at that pixel. To prevent the division of zero small positive numbers, the physical meaning of cost sharpness is the relative depth of the valley of the aggregation cost curve: the numerator is the valley curvature, which is proportional to the product of the second derivative of the valley and the square of the sampling step size, characterizing whether the valley is narrow and deep or wide and shallow; the denominator is the valley cost level. Different pixels have different aggregation cost levels. Low-texture areas have higher overall costs, while high-texture areas have lower overall costs. The absolute curvature cannot be compared across pixels. Dividing the numerator by the denominator eliminates the difference in cost levels between different pixels, making cost sharpness a relative quantity that can be compared across pixels. The greater the cost sharpness, the more prominent the unique optimal disparity, and the stronger the matching evidence.
[0198] Subsequently, the difference between the minimum cost and the second-minimum cost on the aggregation cost curve is taken to obtain the suboptimal cost difference. To eliminate the differences in cost levels between different pixels and to make this difference comparable across pixels, the difference is normalized using the global minimum cost, resulting in the formula for calculating the suboptimal cost difference:
[0199]
[0200] in, For the second-best cost difference, This represents the global minimum cost of the aggregation cost curve at that pixel. The second-lowest cost is taken from candidate disparities that differ from the global minimum cost. The physical meaning of the second-lowest cost difference is the degree of separation between the optimal and second-lowest solutions: a large second-lowest cost difference indicates that the optimal solution is stable, and when the cost is disturbed by noise, the disparity position corresponding to the global minimum cost is unlikely to be interchanged with the second-lowest position, making the matching criterion clear; a small second-lowest cost difference indicates the existence of competing valleys with similar depths to the optimal valley, where even small disturbances can switch the matching position, making matching prone to errors. Cost sharpness and the second-lowest cost difference describe two complementary aspects of the cost structure: cost sharpness describes the shape of the valley itself, while the second-lowest cost difference describes the distance to the nearest competing valley. When a narrow, deep valley is adjacent to a valley of equal depth, the cost sharpness is large while the second-lowest cost difference is small; when a wide, shallow valley has a unique minimum, the second-lowest cost difference is large while the cost sharpness is small. Only by combining both can the reliability of the matching criterion be fully described.
[0201] Both cost sharpness and suboptimal cost difference are unbounded non-negative quantities, while the confidence component score must fall within a unit interval to participate in weighted composition. Therefore, a monotonic mapping is performed on both according to their corresponding reference values. Cost sharpness is obtained through a Sigmoid monotonic mapping:
[0202]
[0203] in, Let exp be the component score corresponding to the cost sharpness, and let exp be the natural exponential function. For steepness parameters, This is the corresponding reference value.
[0204] The suboptimal cost difference is obtained by isomorphic mapping:
[0205]
[0206] in, The component score corresponding to the second-best cost difference. Its corresponding reference value.
[0207] The physical basis for using the Sigmoid monotonic mapping is as follows: Sigmoid is strictly monotonically increasing, maintaining the semantic that larger features result in higher scores; it smoothly compresses unbounded features to a unit interval without manual truncation; the corresponding reference value is the central parameter of Sigmoid, calibrated according to the statistical median of the cost sharpness and the second-best cost difference in the test area; the scoring scale adapts to the cost distribution in the test area, without relying on manually set empirical thresholds; the distribution of cost sharpness and the second-best cost difference in the test area is highly skewed, with most pixel values concentrated and a few pixel values extreme. If linearly normalized according to the maximum value, extreme values would compress the discriminative power of other pixels. Sigmoid saturates at both ends and is not dominated by extreme values, thus providing a strong support for skewed distributions; the mapping is smooth and differentiable, and subsequent weighted synthesis and confidence grading do not introduce jumps. The component scores corresponding to cost sharpness and the component scores corresponding to the second-best cost difference together constitute the cost structure component scores. These two scores answer whether the matching criterion given by the aggregated cost curve is unique and stable. In weighted synthesis, they participate in the synthesis as two independent summation terms according to their preset partition weights.
[0208] The left-right consistency component score is obtained by performing an exponential decay mapping on the left-right consistency difference with tolerance. The left-right consistency difference is the left-right reciprocal closure error output by the left-right consistency check, which varies with the initial disparity. Figure 1 And propagation. The exponential decay mapping is:
[0209]
[0210] in, Scoring for left-right consistency components. The difference in left-right consistency. This is the tolerance. The physical basis of the exponential decay mapping is: when the left-right consistency difference is zero, the score is 1; when the left-right consistency difference equals the tolerance, the score is 1. After the left-right consistency difference exceeds the tolerance, the score continuously decays exponentially and tends to zero, with a smooth and seamless transition. This is superior to the hard threshold method that directly truncates at the tolerance. Hard threshold truncation breaks the score between pixels that just exceed the tolerance and pixels that just exceed the tolerance, while exponential decay makes the consistency penalty a continuous process. The tolerance serves as both the threshold for left-right consistency and the characteristic scale for exponential decay. The width of the transition band of the score curve is determined by the tolerance; the larger the tolerance, the slower the score decay.
[0211] The texture intensity component score is obtained in two steps: local gradient calculation of the left and right epipolar image pairs and linear capping mapping. Local gradient calculation is performed on the grayscale values of the left and right epipolar image pairs, and the gradient magnitude of the local grayscale variation is used as the texture intensity. The calculation formula is:
[0212]
[0213] in, pixel coordinates Texture intensity at that location The gray levels of the left and right epipolar image pairs in pixel coordinates The value at the specified location is actually taken as the average grayscale value of the left and right epipolar images as the grayscale reference. Local gradient calculation can use the central difference or Sobel operator. The greater the texture intensity, the richer the local grayscale structure. A linear capping mapping is performed on the texture intensity according to the corresponding reference value. The mapping method is the same as the aforementioned linear capping mapping, that is, the score increases linearly with the ratio of texture intensity to the corresponding reference value, and is capped at 1 after reaching the corresponding reference value. The capping indicates that the texture intensity reaches the reference value and the matching evidence is considered sufficient. After the evidence is sufficient, additional textures will no longer increase the confidence, that is, the marginal saturation after the evidence is sufficient. Texture intensity reflects the amount of grayscale variation available for matching, but the uniqueness of the matching criterion is determined by the cost structure. Repeated textures and regular structure regions have high texture intensity but large matching ambiguity. Therefore, texture intensity is only one of the confidence components, which is complementary to the cost structure component and the left-right consistency component.
[0214] The slope conformity score is obtained by performing a conformity mapping between the slope obtained from the terrain attributes and the dominant slope in the zoning attribute table. The slope is derived from the terrain attributes, which are calculated pixel-by-pixel based on the existing digital elevation model during the zoning stage. The slope is constructed from the elevation difference gradient. The dominant slope is derived from the zoning attribute table and is a representative statistical value of the slope within a zoning area. It is obtained by statistical analysis of terrain units during the zoning stage. Because zoning is determined by dividing terrain units according to slope thresholds, and the slope statistics within each zoning area are concentrated, the dominant slope reflects the statistical level of the terrain in that zoning area. The conformity mapping formula is:
[0215]
[0216] in, The score is calculated based on the slope compliance component. For slope, This refers to the dominant slope of the terrain unit to which the pixel belongs in the partition attribute table. The tolerance angle is set according to the topographic statistical characteristics of each zone. The physical basis of the conformity mapping is: for correctly matched pixels, the ground slope calculated by forward intersection should match the dominant slope of the zone; disparity errors, as shown by forward intersection, manifest as ground elevation anomalies, and further as slope deviations from the zone's statistical level. The greater the deviation, the lower the score. When the deviation exceeds the tolerance angle, the score is truncated to zero, indicating that the pixel does not conform to the topographic statistics of the zone and is completely unreliable. The slope conformity component verifies the matching results using an existing digital elevation model as a priori, does not depend on image grayscale, and remains effective in areas where image evidence is invalid, such as shadows or low texture.
[0217] Regarding the neighborhood continuity component score, the spatial consistency of the initial disparity map is statistically analyzed. For each pixel in the initial disparity map, the number of pixels within a statistical window centered on that pixel whose absolute value of the difference between the disparity and the central disparity is less than the tolerance is counted. This number of neighborhood-consistent pixels is obtained by dividing the number of neighborhood-consistent pixels by the total number of pixels within the statistical window. The neighborhood continuity component score is calculated as follows:
[0218]
[0219] in, Scoring of the neighborhood continuity component. The number of consistent pixels in the neighborhood. To determine the total number of pixels within the statistical window, the tolerance is set according to the scale for determining pixel-level disparity consistency, maintaining the same caliber as the tolerance used in left-right consistency checks. The physical basis of this component metric is that the surface disparity field is locally continuous outside the fault line. A correctly matched pixel should be surrounded by a large number of pixels with similar disparities. Mismatches typically appear as isolated points, inconsistent with their neighbors. The higher the proportion of pixels within the statistical window that have the same disparity as the center, the stronger the evidence for spatial consistency in the matching results. During the statistical analysis, if the statistical window crosses the fault line, the disparity jumps on both sides of the fault are due to actual terrain differences rather than matching errors. Therefore, pixels located on the opposite side of the fault from the center pixel within the window are removed before further counting. The denominator is the number of valid pixels after removal, avoiding misjudging actual terrain jumps as inconsistencies.
[0220] After the scores of each component are constructed, the scores of each confidence component are weighted and synthesized according to the preset partition weights in the partition attribute table to obtain the disparity confidence. The weighted synthesis formula is as follows:
[0221]
[0222] in, For parallax confidence, For the credibility component index, This is a set of credibility component indices, covering all components corresponding to the cost structure component score, left-right consistency component score, texture intensity component score, slope conformity component score, and neighborhood continuity component score. For components The corresponding preset partition weights, For components The credibility component score, with each weight being non-negative and summing to 1, uses the summation sign to indicate the degree of confidence. The summation of all credibility components is performed. The credibility component scores include five categories: cost structure component score, left-right consistency component score, texture intensity component score, slope conformity component score, and neighborhood continuity component score. Among them, the cost structure component score consists of two sub-components: the component score corresponding to cost sharpness and the component score corresponding to suboptimal cost difference. Therefore, there are a total of six summation terms in the weighted composite formula.
[0223] The preset zoning weights are set according to the zoning attribute table. These weights are preset during the zoning stage based on the observable conditions of various terrain units, and directly read during the credibility building stage. The setting is based on the observability principle: the more reliable a piece of evidence is within a zoning area, the greater its weight; conversely, the weight of invalid evidence decreases accordingly. Specifically, in low-texture water areas and shadow areas, the image texture is weak, and the aggregation cost curve is flat and multi-peaked, resulting in decreased discriminative power for the cost structure component and texture intensity component. However, the left-right consistency component relies on geometric cross-verification between two images, and the slope conformity component relies on prior knowledge of the existing digital elevation model, both unaffected by image quality and lighting conditions. Therefore, the weights for left-right consistency and slope conformity are increased in these two zoning areas. In vegetation-covered areas, the leaf canopy texture maintains a high correlation between left and right images, and the parallax is continuous at the canopy scale; therefore, the weights for texture intensity and neighborhood continuity are increased. In flat areas, the texture is rich, and the valley of the aggregation cost curve is clear; therefore, the weight for cost structure is increased. The weights of each component are adjusted only to a certain extent, without extreme adjustments. Even if the zoning label of individual pixels is misjudged, the weighted synthesis still converges with multiple components, preventing overall distortion due to a single weight mismatch.
[0224] The weighted composite is a convex combination, with disparity confidence values within the range [0,1]. Hollow pixels without matching do not participate in the weighted composite, and their disparity confidence is conventionally set to 0. The composite result is written pixel by pixel into a raster with the same grid as the initial disparity map to obtain a disparity confidence raster. The disparity confidence raster is then divided into four levels—high confidence, medium confidence, low confidence, and hole—according to a preset threshold. High confidence pixels are used as seeds for subsequent propagation to repair holes.
[0225] Example 5:
[0226] Using high-confidence pixels in the disparity confidence raster as seeds, holes are repaired by propagating the process across the passage cost field to obtain a complete disparity map and an updated confidence raster. This process includes the following steps:
[0227] S501. Using high-confidence pixels as multi-source seeds, perform deterministic shortest path solving on the passage cost field to obtain the parent node of each pixel.
[0228] S502. During the relaxation process of solving the deterministic shortest path, the number of times strong evidence break pixels are crossed on the optimal path of each pixel is accumulated. The number of crossings of each pixel is judged, and pixels with a number of crossings of not less than 1 are judged as cross-break blocking pixels. Among them, strong evidence break pixels are break mask pixels in the break mask grid located in the partition where the cross-break penalty takes the larger value.
[0229] S503. For each pixel, the disparity is transmitted along the parent node chain composed of parent nodes. Based on the transmitted value of the parent node, the disparity is approximated to its own initial disparity according to the compromise coefficient to obtain a complete disparity map. Among them, the holed pixel directly takes the transmitted value of the parent node.
[0230] S504. Perform confidence decay on each pixel along the parent node chain according to the number of propagation steps to obtain the updated confidence raster.
[0231] S505. For cross-fracture blocking pixels, perform connected growth using the fractured pixels in the fracture mask raster as insurmountable boundaries to obtain a set of neighboring pixels on the same side of the fracture and with a confidence level not lower than the medium confidence threshold. Perform least-squares plane fitting on the initial disparity of the pixels in the set of neighboring pixels on the same side to obtain the trend surface on the same side. The fitting formula for the trend surface on the same side is:
[0232]
[0233] in, The fitting coefficients for the trend surfaces on the same side are... For the coefficients of the constant term, Column coordinates of cells The coefficient of the first term in the direction, cell row coordinates The coefficient of the first-order term in the direction; To recover the pixel The set of neighboring pixels on the same side of the fracture with a confidence level not lower than the medium confidence threshold; Cells within the same-side neighboring cell set; For pixels Initial disparity in the initial disparity map; For pixels The pixel coordinates.
[0234] S506. Recover the disparity of the cross-fracture blocked pixels according to the same-side trend to obtain the recovered disparity, and update the complete disparity map with the recovered disparity.
[0235] Specifically, the disparity confidence level in the disparity confidence grid is not lower than the high confidence threshold. The pixels are high-confidence pixels. The high-confidence threshold can be set, for example, to 0.7. Propagation repair uses high-confidence pixels as multi-source seeds and is performed on the passage cost field to generate a complete disparity map and an updated confidence raster.
[0236] The traffic cost field is a traffic cost field that includes cross-fault penalties. Its traffic cost is composed of a weighted average of cross-fault penalties, slope aspect consistency, slope smoothing, and cavity entry costs, namely:
[0237]
[0238] in, The cost of travel between adjacent pixels along the propagation direction. , , , These are the weighting coefficients for the four items. For the cross-fracture penalty term, For slope aspect consistency, For the slope smoothing term, The cost of entering a hole is defined as follows: The cross-fracture penalty is significantly greater than the normal passage cost when the target pixel is a fracture mask pixel, and zero when the target pixel is not a fracture mask pixel, so that the propagation path preferentially avoids fracture pixels and only crosses fractures when there is no other way to go; the aspect consistency term measures the degree of conformity between the propagation direction and the aspect at the target pixel, so that the propagation path extends along the terrain direction; the slope smoothness term restricts the propagation path from passing through parallax abrupt change zones; the hole entry cost term takes the complement of the parallax confidence of the target pixel, so that the propagation path preferentially passes through pixel zones with higher confidence and avoids large areas of low confidence and hole areas.
[0239] All weighting coefficients are non-negative constants and are assigned values according to the zones. The cross-fracture penalty weight is larger in steep cliff and valley areas, where the elevation difference on both sides of the fracture is large and the parallax system differences are most significant. Zones with larger cross-fracture penalty values have a stronger blocking effect on the fracture. In low-texture water areas and shadow areas, fracture evidence is generally weaker, and the cross-fracture penalty weight is smaller; crossing fracture mask pixels within these areas is not counted or blocked. Slope smoothness weight is larger in flat areas, and cavity entry cost weight is larger in vegetation-covered areas. The three consecutive components—slope aspect consistency, slope smoothness, and cavity entry cost—are normalized to the same numerical order of magnitude before synthesis by the mean of all pixels and adjacent edges within each zone. The normalization process is as follows:
[0240]
[0241]
[0242]
[0243] in, , , These are the normalized components. , , The mean of the corresponding sub-item within the partition is used. The cross-fracture penalty term is not included in this normalization. Only after normalization can the weight coefficients be compared.
[0244] First, a deterministic shortest path solution is performed. All pixels are treated as graph nodes, and four-neighbor pairs are treated as edges. The direction of each edge is the propagation direction, and the edge weight is the travel cost along that direction, thus constructing a directed graph with travel cost as the edge weight. Since the travel cost depends on attributes such as the breakage state, disparity confidence, and slope aspect of the target pixel, the solution is derived from the pixel... Entering a pixel The cost of passage and from the pixel Entering a pixel The passage costs are generally different, so relaxation is performed one direction at a time along the directed edges. Using all high-confidence pixels as multi-source seeds, the cumulative cost of each high-confidence pixel is set to zero, its parent node is set to empty and pushed into a priority queue sorted by cumulative cost, and the cumulative cost of the remaining pixels is set to infinity.
[0245] Subsequently, the deterministic shortest path algorithm is used for successive relaxation, repeatedly retrieving the undetermined cell with the minimum cumulative cost from the priority queue. For the undetermined pixels in its four neighboring regions Calculate the trial value, the trial value is The cumulative cost and from Enter The sum of the passage costs, if the trial value is less than The current cumulative cost will then be updated. The cumulative cost, recording the neighboring pixels that minimize the cumulative cost. for The parent node and make If a cell is added to a priority queue, it is not updated; otherwise, the relaxation continues until the queue is empty, at which point all cells have received a definite cumulative cost and parent node. The above relaxation is executed as follows:
[0246]
[0247] in, For pixels The cumulative cost, For pixels The cumulative cost, To from pixels Entering a pixel The passage cost, min is the cost of passage. All adjacent pixels The minimum value is taken, and the adjacent cells that have the minimum value are recorded as... The parent node. The cumulative cost metric reaches the cell from the multi-source seed set. The minimum total cost of passage required, with the parent node indicating from which neighboring cell the minimum cost path enters. ,Right now The direction of parallax source.
[0248] To ensure deterministic solution, when multiple undetermined pixels have equal cumulative costs, the pixel is dequeued in a fixed order: ascending row number, then ascending column number within the same row. When multiple candidate parent nodes with equal minimum cumulative costs exist for the same pixel, the earliest position is selected as the parent node in the same fixed order. These rules remain unchanged across all runs, introduce no randomness, and ensure that the same input produces identical parent nodes in every run. The solution is reproducible, and each pixel can be backtracked along its parent node to determine a unique source seed and propagation path.
[0249] During the relaxation process, the number of times strong evidence fracture pixels are traversed on the optimal path of each pixel is simultaneously accumulated. Strong evidence fracture pixels are fracture mask pixels within the fracture mask raster that fall within the partition with the larger cross-fracture penalty value; that is, fracture mask pixels within their respective partitions with the larger cross-fracture penalty weight. Fracture mask pixels in steep cliff and valley areas belong to this category. Each pixel Obtain the parent node Simultaneously, the number of crossings is accumulated using the following formula:
[0250]
[0251] in, For pixels The number of times strong evidence breaks pixels are traversed on the optimal path. For pixels The number of times the parent node is traversed. For pixels The parent node; This is an indicator function; it takes the value 1 if the condition within the square brackets is true, and 0 otherwise; the number of times a high-confidence cell is traversed is recorded as zero. This is combined with relaxation updates. The cumulative cost and parent node are completed synchronously, and the number of crossings always corresponds to the parent node chain; when multiple consecutive fractured pixels within the fracture zone are accumulated node by node, the count is too large but does not change the blocking determination of whether the number of crossings is not less than 1.
[0252] After the number of crossings is accumulated, the number of crossings for each pixel is judged. Pixels with a number of crossings of not less than 1 are determined to be cross-fracture blocking pixels. The reasoning is as follows: The optimal path is the one with the minimum cumulative cost among all candidate paths. If a strong evidence of a break has appeared on this path, it means that there is no equivalent path that does not cross the break, because the cost of a path that does not cross the break is on the normal order of magnitude, while the cost of a path that crosses the break is significantly higher due to the cross-break penalty. Since even the optimal path with the minimum cumulative cost has to cross the break... It has been completely isolated by strong evidence of a break; at this point, propagating the parallax along the parent node chain will inject the value of the parallax system on the opposite side of the break. This generates cross-fracture crosstalk and fabricated terrain, so it is necessary to abandon the propagation along the parent node chain and instead restore it via the trend surface on the same side. The premise for this determination mechanism to work is that the cross-fracture penalty takes a large value rather than infinity. Although the cost of the cross-fracture path is high, it remains finite, and the isolated cell can still obtain a finite cumulative cost and a definite parent node. Only then can the number of crossings be accumulated and the blocking determination be executed. If the cross-fracture penalty takes infinity, the cumulative cost of the isolated cell will always be infinite, the parent node cannot be established, and the blocking determination will fail.
[0253] Subsequently, disparity is propagated along the parent node chain. The parent node chain is a sequence of nodes that trace back from a cell to its parent node until a high-confidence cell is reached. During relaxation, the parent node must be determined as the final parent node before its child nodes. Values are assigned progressively from the seed to the furthest point in the order the nodes are determined, ensuring that the propagated disparity of each cell's parent node is determined before it is used. High-confidence cells retain their initial disparity in the initial disparity map without modification, forming the anchor point of the propagation chain. For any non-high-confidence cell… Its transmitted parallax is calculated using the following formula:
[0254]
[0255] in, For pixels Transmitted parallax, For pixels Transmitted parallax of the parent node, For pixels Initial disparity in the initial disparity map This is a compromise factor. For pixels The reliability of parallax High confidence threshold; This is an indicator function; it takes the value 1 if the condition within the square brackets is true, and 0 otherwise.
[0256] right For medium- and low-confidence pixels, the indicator function is set to 1. The propagated disparity is based on the propagated value of the parent node and approximated to its own initial disparity according to a compromise coefficient. The compromise coefficient is a constant between 0 and 1, for example, 0.5. When it is 1, the initial disparity is used entirely, and when it is 0, the propagated value of the parent node is used entirely. These pixels are not holes; their matching values still carry information about local slope undulations. The compromise processing ensures that the repair value is constrained by the high-confidence source, maintains the continuity of the terrain trend along the propagation chain, and retains credible local information without smoothing out local undulations. For holes, the disparity confidence is zero, the indicator function is set to 0, and the propagated disparity is directly taken from the propagated value of the parent node. There is no credible local information at the hole, and it relies entirely on the propagation chain. After completing the above assignment step by step along the parent node chain, all pixels obtain a definite disparity value, thus obtaining a complete disparity map.
[0257] While propagating parallax, confidence decay is performed along the parent node chain based on the number of propagation steps. The number of propagation steps is the number of edges traversed by the pixel when backtracking along the parent node chain to the high-confidence pixel. The propagation steps for a high-confidence pixel are zero, and the propagation steps for each pixel are the parent node's propagation steps plus one. For any pixel... Its updated credibility is calculated using the following formula:
[0258]
[0259] in, For pixels Credibility after update For pixels The disparity confidence of the parent node. For pixels The number of propagation steps, Let be the decay constant, exp be the natural exponential function, and min be the smaller of the two values within parentheses. The decay constant and the number of propagation steps are calculated together based on the number of propagation steps, and their ratio is dimensionless. With each step the propagation chain extends, the disparity of the parent node accumulates a layer of uncertainty during relaxation and propagation. This uncertainty accumulates linearly with the chain length, and the confidence level decays exponentially by a proportional discount at each step. After the number of propagation steps reaches several times the decay constant, the updated confidence level approaches zero, indicating that propagated values too far from the seed are no longer trusted. The min operation explicitly ensures that the confidence level does not increase monotonically along the parent node chain, preventing local rebounds caused by rounding errors in numerical calculations. The updated confidence level of high-confidence pixels maintains its original disparity confidence level. After performing the above decay on all pixels, the updated confidence level raster is obtained.
[0260] For pixels identified as cross-fracture blocking pixels, their disparity is recovered using the trend surface on the same side of the fracture. First, connected growth is performed using the fractured pixels in the fracture mask raster as insurmountable boundaries; the fractured pixels are those marked as fractured in the fracture mask raster. Connected growth expands layer by layer from the cross-fracture blocking pixels to the neighborhood, repeatedly examining the four-neighborhood of each pixel in the collected set. Pixels not belonging to the fracture mask and with a disparity confidence level not lower than the medium confidence threshold are considered connected growth. Furthermore, all cells that have not yet been added to the set are incorporated into the set, and the set is expanded layer by layer until the number of cells in the set reaches the minimum number of cells or the expansion radius reaches the maximum expansion radius. For example, the minimum number of cells can be 16, and the maximum expansion radius can be 40 cells. The threshold is set to medium confidence, for example, 0.4. This constraint ensures that the pixels entering the set are mainly pixels with medium confidence or higher, and low confidence mismatch values are not included in the fitted observations. A broken pixel is an insurmountable boundary; connectivity growth is truncated by the break. There is a connected path between any two points within the set that does not cross the break. Therefore, all pixels in the set must be located on the same side of the break as the pixel to be restored, without introducing any information from the opposite side of the break, thus avoiding contamination of the fitting results by the disparity system on the opposite side.
[0261] Subsequently, a least-squares plane fitting is performed on the initial disparity of pixels within the same-side neighbor set, i.e., the plane parameters that minimize the sum of squared residuals are found, resulting in the same-side trend surface. The physical meaning of the fitting formula for this same-side trend surface is to perform a least-squares plane fitting on the initial disparity over the broken same-side neighbor set. This is a plane constant term, corresponding to the plane disparity at the origin of the pixel coordinate system. and Let be the slope of the plane along the column and row coordinates of the pixels, corresponding to the rate of change of disparity with the pixel coordinates. The disparity on the same side of the break changes continuously along the slope and can be described by a low-order plane. The fitted plane is a reasonable extrapolation of the terrain on the same side of the pixel to be restored. The solution process involves taking the partial derivatives of the sum of squares of the residuals with respect to the three fitting coefficients and setting the partial derivatives to zero to obtain a system of third-order normal equations. The three fitting coefficients are then solved using the known solution method for linear equations, thus determining the trend surface on the same side. If the number of pixels collected when the connectivity grows to the maximum expansion radius is still less than the minimum number of pixels, then the already collected pixels are used for fitting; if no pixels are collected, then that pixel is not restored and remains unrepaired in the complete disparity map, connecting with the blanking process in subsequent processing steps.
[0262] Finally, the disparity of the cross-fracture blocked pixel is recovered using the same-side trend surface. Substituting the pixel coordinates of the pixel to be recovered into the same-side trend surface yields the recovered disparity of that pixel:
[0263]
[0264] in, For pixels to be recovered Restoration of parallax, , , The fitting coefficients for the trend surfaces on the same side are... , For pixels to be recovered The pixel coordinates are determined. The complete disparity map is updated with restored disparity. That is, for each cross-fracture blocking pixel, its disparity in the complete disparity map is replaced with the restored disparity. Information from the opposite side of the fracture no longer enters the blocking pixel through the parent node chain. After this processing, the disparity of cross-fracture blocking pixels is completely determined by neighborhood evidence on the same side of the fracture, thus eliminating cross-fracture crosstalk in a mechanism. The complete disparity map and the updated confidence raster constitute the basic products for subsequent elevation calculation and mesh construction.
[0265] The aforementioned satellite real-scene 3D modeling method based on terrain zoning constraints divides the survey area into at least two types of terrain units and sets differentiated matching parameters for each type. This allows the disparity matching window and search range to adaptively adjust with terrain features, overcoming the shortcomings of uniform matching parameters across the entire domain in complex terrain. Before matching, terrain fractures are detected based on the terrain attributes of the existing digital elevation model and the image gradients of the left and right epipolar image pairs, generating fracture mask gratings and fracture line vectors. Then, during the layer-by-layer refinement of the image pyramid, fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighboring area according to the differentiated matching parameters and based on the fracture mask pyramid. This ensures that when the coarse-layer disparity propagates to the fine-layer, the disparity information on both sides of the fracture is separated and does not contaminate each other before entering the fine-layer matching, preventing the initial disparity value near the fracture from being crossed across the fracture. The system addresses artifacts and mismatches caused by smoothing out the steps. It then performs a left-right consistency check on the initial disparity map obtained from the matching, and weights the left-right consistency difference and other confidence components according to the preset partition weights in the partition attribute table to synthesize a disparity confidence raster. High-confidence pixels in this raster are then used as seeds to propagate and repair holes in a passage cost field containing cross-fracture penalties constructed based on the fracture mask raster. This ensures that the direction of hole repair is explicitly constrained by the terrain orientation and fracture distribution, avoiding empirical interpolation cross-fracture crosstalk and improper repair direction. Finally, the complete disparity map is intersected in front to form ground points according to refined geometric parameters. A triangular mesh is constructed using fracture line vectors as constraint edges and the updated confidence raster as weights, ensuring that triangles do not cross fracture lines. This improves the overall continuity, landform preservation, and texture consistency of the terrain-level realistic 3D model under complex terrain conditions.
[0266] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0267] Based on the same inventive concept, this application also provides a system for implementing the above-mentioned satellite real-scene 3D modeling method based on terrain zoning constraints. The solution provided by this system is similar to the implementation scheme described in the above method. Therefore, the specific limitations of one or more embodiments of the satellite real-scene 3D modeling system based on terrain zoning constraints provided below can be found in the limitations of the satellite real-scene 3D modeling method based on terrain zoning constraints described above, and will not be repeated here.
[0268] In one exemplary embodiment, such as Figure 3 As shown, a satellite real-scene 3D modeling system 30 based on terrain zoning constraints is provided to implement the methods in the above-described method embodiments. The system includes:
[0269] The stereo image pair preprocessing module 31 is used to acquire satellite stereo image pairs including left and right original images, acquire existing digital elevation models covering the survey area; perform radiometric correction on the left and right original images in the satellite stereo image pairs to obtain corrected images; perform geometric refinement on the corrected images to obtain refined geometric parameters; and perform epipolar correction on the corrected images to obtain left and right epipolar image pairs.
[0270] The terrain zoning and parameter configuration module 32 is used to divide the survey area into at least two types of terrain units based on the left and right epipolar image pairs and the existing digital elevation model, set differentiated matching parameters for each type of terrain unit, and obtain a zoning attribute table.
[0271] The terrain fracture detection module 33 is used to detect terrain fractures based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, and to obtain fracture mask grids and fracture line vectors.
[0272] The multi-scale pyramid construction module 34 is used to construct an image pyramid based on the left and right epipolar image pairs and to construct a fracture mask pyramid based on the fracture mask grid.
[0273] The fracture-aware layered matching module 35 is used to perform fracture-aware split sampling matching on the fine-layer pixels containing fracture masks in the image pyramid layer by layer refinement according to the differential matching parameters in the partition attribute table, and obtain the initial disparity map.
[0274] The disparity repair and credibility fusion module 36 is used to perform left-right consistency checks on the initial disparity map to obtain the left-right consistency difference; according to the preset partition weights in the partition attribute table, the credibility components of the initial disparity map are weighted and synthesized based on the left-right consistency difference to obtain a disparity credibility raster; a passage cost field containing cross-fracture penalties is constructed based on the fracture mask raster; and holes are repaired by propagating in the passage cost field using high-credibility pixels in the disparity credibility raster as seeds to obtain a complete disparity map and an updated credibility raster.
[0275] The forward intersection and constrained triangulation construction module 37 is used to perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; and to construct a triangulation on the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight.
[0276] The texture mapping and 3D reconstruction module 38 is used to select texture sources for the triangular mesh based on satellite stereo image pairs, map the texture sources to the triangular meshes, and obtain a terrain-level real-scene 3D model.
[0277] Embodiments of this application also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the aforementioned method embodiments.
[0278] Embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method embodiments.
[0279] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0280] The above-described embodiments are merely illustrative of several implementation methods of the embodiments of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the embodiments of this application, and these modifications and improvements all fall within the protection scope of the embodiments of this application.
Claims
1. A satellite real-scene 3D modeling method based on terrain zoning constraints, characterized in that, The method includes: S101. Obtain a satellite stereo image pair including a left original image and a right original image, and obtain an existing digital elevation model covering the survey area; perform radiometric correction on the left original image and the right original image in the satellite stereo image pair to obtain a corrected image; perform geometric refinement on the corrected image to obtain refined geometric parameters; perform epipolar correction on the corrected image to obtain a left and right epipolar image pair; S102. Based on the left and right epipolar image pairs and the existing digital elevation model, the survey area is divided into at least two types of terrain units, and differential matching parameters are set for each type of terrain unit to obtain a partition attribute table. S103. Based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, detect terrain fractures and obtain fracture mask grids and fracture line vectors. S104. Construct an image pyramid based on the left and right epipolar image pairs, and construct a fracture mask pyramid based on the fracture mask grid. S105. In the layer-by-layer refinement of the image pyramid, according to the differential matching parameters in the partition attribute table, the fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighborhood according to the fracture mask pyramid to obtain the initial disparity map. S106. Perform a left-right consistency check on the initial disparity map to obtain the left-right consistency difference; according to the preset partition weight in the partition attribute table, perform weighted synthesis on the confidence components of the initial disparity map based on the left-right consistency difference to obtain a disparity confidence grid; construct a passage cost field containing cross-fracture penalties based on the fracture mask grid; use high-confidence pixels in the disparity confidence grid as seeds to propagate and repair holes in the passage cost field to obtain a complete disparity map and an updated confidence grid; S107. Perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; construct a triangulation network for the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight; S108. Select texture sources for the facets of the triangular mesh according to the satellite stereo image pairs, map the texture sources to the facets, and obtain a terrain-level real-scene 3D model.
2. The method according to claim 1, characterized in that, The step of detecting terrain fractures based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, and obtaining fracture mask grids and fracture line vectors, includes: S201. Based on the topographic gradient and curvature of the existing digital elevation model, construct the fracture strength according to the normalization of the survey area. S202. Based on the image gradient of the left and right epipolar image pairs and the slope gradient in the terrain attributes of the existing digital elevation model, determine the evidence of steep slopes in the images using a dual threshold method. S203. The fracture intensity is logically ORed with the image steep slope evidence to obtain the fracture mask grid. S204. Refine the fracture mask grid to obtain a refined mask grid; vectorize the refined mask grid to obtain the fracture line vector.
3. The method according to claim 1, characterized in that, The fracture mask pyramid is obtained by performing logical OR aggregation on the fracture mask grid according to a preset scaling ratio, and each coarse layer cell of the fracture mask pyramid is formed by logical OR aggregation of the fine layer cells covered by each coarse layer cell. In the layer-by-layer refinement of the image pyramid, according to the differential matching parameters in the partition attribute table, and based on the fracture mask pyramid, fracture-aware split sampling matching is performed on the fine-layer pixels containing fracture masks in the neighborhood to obtain an initial disparity map, including: S301. Determine the fracture normal based on the direction of the fracture line vector to obtain the fracture normal; S302. Perform split sampling on the neighborhood of the fine-layer pixel in the corresponding coarse layer according to the fracture state to obtain the representative disparity of each side; wherein, the representative disparity of each side includes the same-side representative disparity and the opposite-side representative disparity, the same-side representative disparity is the representative value of the coarse layer disparity in the neighborhood with the same fracture state as the fine-layer pixel, and the opposite-side representative disparity is the representative value of the coarse layer disparity in the neighborhood with the opposite fracture state to the fine-layer pixel; S303. Perform a vector dot product between the gradient of the fine-layer image of the image pyramid and the fracture normal, and calculate the discrimination quantity; wherein, the calculation formula of the discrimination quantity is: ; in, For fine-layer pixels in pixel coordinates The judgment quantity at the location; For the image pyramid number Layer image at pixel coordinates The gradient vector at that point; The fracture normal in the cell coordinates The unit vector at that location; It is the dot product of vectors; S304. Select the representative parallax of the corresponding side from the representative parallax of each side according to the judgment value to obtain the search center; wherein, when the judgment value is greater than 0, the corresponding side is the side to which the fracture normal points; when the judgment value is not greater than 0, the corresponding side is the opposite side to which the fracture normal points. S305. Perform a one-way offset on the search center according to the judgment quantity to obtain the offset search interval; wherein, the calculation formula of the offset search interval is: ; ; in, The lower bound of the bias search interval is at cell coordinates The disparity value at that location; The upper bound of the bias search interval is at the cell coordinates The disparity value at that location; The search center at cell coordinates The disparity value at that location; The partition to which the fine-layer pixel belongs is in the th The fine-grained search radius of the layer; This is the unidirectional bias coefficient; For the fine-layer pixel in pixel coordinates The judgment quantity at the location; This is an indicator function that takes the value 1 when the condition within the square brackets is true, and 0 otherwise. S306. Compare the aggregation costs of each candidate disparity within the bias search interval, take the candidate disparity corresponding to the minimum aggregation cost, obtain the fine-layer disparity, and construct the initial disparity map from the fine-layer disparity.
4. The method according to claim 3, characterized in that, The step of weighting and synthesizing the confidence components of the initial disparity map according to the preset partition weights in the partition attribute table and the left-right consistency difference to obtain a disparity confidence raster includes: S401. Obtain the aggregate cost curve formed by the aggregate cost of each candidate disparity during the matching process of the initial disparity map; take the global minimum cost of the aggregate cost curve, perform quadratic curve fitting on the candidate disparity corresponding to the global minimum cost and its adjacent candidate disparities, and obtain the cost sharpness from the coefficient of the quadratic term of the fitting; take the difference between the minimum cost and the second minimum cost on the aggregate cost curve to obtain the second-best cost difference. S402. Perform a monotonic mapping on the cost sharpness and the suboptimal cost difference according to the corresponding reference value to obtain the cost structure component score; S403. Perform exponential decay mapping on the left-right consistency difference according to the tolerance to obtain the left-right consistency component score; S404. Perform local gradient calculation on the grayscale of the left and right epipolar image pairs to obtain texture intensity; perform linear capping mapping on the texture intensity according to the corresponding reference value to obtain texture intensity component scores; S405. Obtain the slope according to the terrain attributes, and perform conformity mapping on the slope according to the dominant slope in the partition attribute table to obtain the slope conformity component score. S406. For each pixel in the initial disparity map, count the number of pixels in the statistical window centered on each pixel whose absolute value of the difference between the disparity and the central disparity is less than the tolerance, to obtain the neighborhood consistent pixel count; divide the neighborhood consistent pixel count by the total number of pixels in the statistical window to obtain the neighborhood continuity component score. S407. The scores of each confidence component are weighted and synthesized according to the preset partition weight in the partition attribute table to obtain the disparity confidence grid; wherein, the confidence component scores include the cost structure component score, the left-right consistency component score, the texture intensity component score, the slope conformity component score, and the neighborhood continuity component score.
5. The method according to claim 1, characterized in that, The step of using high-confidence pixels in the disparity confidence grid as seeds to propagate and repair holes in the passage cost field to obtain a complete disparity map and an updated confidence grid includes: S501. Using the high-confidence pixels as multi-source seeds, perform deterministic shortest path solving on the passage cost field to obtain the parent node of each pixel; S502. During the relaxation process of the deterministic shortest path solution, the number of times the strong evidence break pixels are crossed on the optimal path of each pixel is accumulated, and the number of crossings of each pixel is judged. Pixels with a number of crossings of not less than 1 are judged as cross-break blocking pixels. Wherein, the strong evidence break pixels are the break mask pixels in the break mask grid located in the partition where the cross-break penalty takes a larger value. S503. For each pixel, the disparity is transmitted along the parent node chain composed of the parent nodes. Based on the transmitted value of the parent node, the disparity is approximated to its own initial disparity according to the compromise coefficient to obtain the complete disparity map; wherein, the hole pixel directly takes the transmitted value of the parent node. S504. Perform confidence decay on each pixel along the parent node chain according to the number of propagation steps to obtain the updated confidence raster. S505. For the cross-fracture blocking pixel, perform connected growth with the fractured pixel in the fracture mask grid as the inaccessible boundary to obtain a set of neighboring pixels on the same side of the fracture and with a confidence level not lower than the medium confidence threshold; perform least squares plane fitting on the initial disparity of the pixels in the set of neighboring pixels on the same side to obtain a trend surface on the same side; wherein, the fitting formula for the trend surface on the same side is: ; in, The fitting coefficients of the trend surface on the same side are... For the coefficients of the constant term, Column coordinates of cells The coefficient of the first term in the direction, cell row coordinates The coefficient of the first-order term in the direction; To recover the pixel The set of neighboring pixels on the same side of the fracture that have a confidence level not lower than the aforementioned confidence threshold; The pixels within the same-side neighboring pixel set; For pixels The initial disparity in the initial disparity map; For pixels Pixel coordinates; S506. The parallax of the cross-fracture blocking pixel is recovered according to the same-side trend to obtain the recovered parallax, and the complete parallax map is updated with the recovered parallax.
6. A satellite real-scene 3D modeling system based on terrain zoning constraints, used to implement the method of any one of claims 1 to 5, characterized in that, The system includes: The stereo image pair preprocessing module is used to acquire a satellite stereo image pair including a left original image and a right original image, and to acquire an existing digital elevation model covering the survey area; to perform radiometric correction on the left original image and the right original image in the satellite stereo image pair to obtain a corrected image; to perform geometric refinement on the corrected image to obtain refined geometric parameters; and to perform epipolar correction on the corrected image to obtain a left and right epipolar image pair. The terrain zoning and parameter configuration module is used to divide the survey area into at least two types of terrain units based on the left and right epipolar image pairs and the existing digital elevation model, set differentiated matching parameters for each type of terrain unit, and obtain a zoning attribute table. The terrain fracture detection module is used to detect terrain fractures based on the terrain attributes of the existing digital elevation model and the image gradient of the left and right epipolar image pairs, and to obtain fracture mask grids and fracture line vectors. A multi-scale pyramid construction module is used to construct an image pyramid based on the left and right epipolar image pairs and to construct a fracture mask pyramid based on the fracture mask grid. The fracture-aware layered matching module is used to perform fracture-aware split sampling matching on the fine-layer pixels containing fracture masks in the neighboring area according to the differential matching parameters in the partition attribute table during the layer-by-layer refinement of the image pyramid, in order to obtain an initial disparity map. The disparity repair and credibility fusion module is used to perform a left-right consistency check on the initial disparity map to obtain a left-right consistency difference; according to the preset partition weights in the partition attribute table, the credibility components of the initial disparity map are weighted and synthesized based on the left-right consistency difference to obtain a disparity credibility grid; a passage cost field containing cross-fracture penalties is constructed based on the fracture mask grid; and holes are repaired by propagating through the passage cost field using high-credibility pixels in the disparity credibility grid as seeds to obtain a complete disparity map and an updated credibility grid. The forward intersection and constrained triangulation construction module is used to perform forward intersection on the complete disparity map according to the refined geometric parameters to obtain ground points; and to construct a triangulation for the ground points using the break line vector as the constraint edge and the updated confidence grid as the weight. The texture mapping and 3D reconstruction module is used to select texture sources for the facets of the triangular mesh according to the satellite stereo image pairs, map the texture sources to the facets, and obtain a terrain-level real-scene 3D model.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 5.
Citation Information
Patent Citations
KINECT depth map cavity filling method based on local restriction reconstruction
CN103136775A
A device for processing disparity estimation image
CN110033426A
Stereo matching method
CN111508013A
A method and system for fine 3D modeling based on multi-view satellite imagery
CN114241125B
Rapid binocular stereo matching method
CN117649436A
