+

CN120355880A - Remote sensing image road breakpoint repairing method, device and medium - Google Patents

Remote sensing image road breakpoint repairing method, device and medium

Info

Publication number
CN120355880A
CN120355880A CN202510293789.2A CN202510293789A CN120355880A CN 120355880 A CN120355880 A CN 120355880A CN 202510293789 A CN202510293789 A CN 202510293789A CN 120355880 A CN120355880 A CN 120355880A
Authority
CN
China
Prior art keywords
road
breakpoint
skeleton
width
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202510293789.2A
Other languages
Chinese (zh)
Inventor
丰得闯
刘继东
彭闯
马状
杜家宽
闫芳
魏彦铭
何钰
刘潇潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Xingtu Digital Earth Hefei Co ltd
Original Assignee
Zhongke Xingtu Digital Earth Hefei Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Xingtu Digital Earth Hefei Co ltd filed Critical Zhongke Xingtu Digital Earth Hefei Co ltd
Priority to CN202510293789.2A priority Critical patent/CN120355880A/en
Publication of CN120355880A publication Critical patent/CN120355880A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

本发明公开了一种遥感影像道路断点修复方法、设备及介质,其中方法包括将道路图像转换为二值图像,计算连通区域,设置阈值去除部分连通区域,对优化后的二值图像进行骨架化操作,将道路转化为单像素宽度的道路骨架;提取所有道路的断点,获取断点参数值;基于每组断点对之间匹配值,连接匹配值超过阈值的断点对,获取完善后道路骨架;对完善后的道路骨架进行道路宽度修复,获取修复后的道路。本发明对修复后的道路进行规则化处理,不仅确保了修复后的道路宽度符合物理规律,避免了由于误匹配导致的道路边界失真或过度连接的情况,通过优化修复路径的平滑度和规则性,使得修复后的道路边界更加准确且自然,减少了误判的风险。

The present invention discloses a method, device and medium for repairing road breakpoints of remote sensing images, wherein the method comprises converting a road image into a binary image, calculating a connected area, setting a threshold to remove part of the connected area, performing a skeleton operation on the optimized binary image, and converting the road into a road skeleton with a single pixel width; extracting the breakpoints of all roads and obtaining the breakpoint parameter values; based on the matching values between each group of breakpoint pairs, connecting the breakpoint pairs whose matching values exceed the threshold, and obtaining the improved road skeleton; repairing the road width of the improved road skeleton, and obtaining the repaired road. The present invention performs regular processing on the repaired road, which not only ensures that the width of the repaired road conforms to the physical laws, but also avoids the situation of road boundary distortion or over-connection caused by mismatching, and by optimizing the smoothness and regularity of the repair path, the repaired road boundary is more accurate and natural, and the risk of misjudgment is reduced.

Description

Remote sensing image road breakpoint repairing method, device and medium
Technical Field
The invention relates to the technical field of remote sensing image road breakpoint repair, in particular to a remote sensing image road breakpoint repair method, device and medium.
Background
Along with the rapid development of remote sensing technology and the wide application of high-resolution satellite images, the remote sensing images play an important role in the fields of road extraction, urban planning, resource monitoring and the like. However, due to the influence of factors such as sensor imaging conditions, ground object shielding (such as trees and building shadows), complex road structures and the like in the image acquisition process, the problems of breakage, discontinuity and the like of road information in the high-resolution remote sensing image are easy to occur, and great challenges are brought to road extraction and repair. In recent years, the remote sensing image road extraction technology based on deep learning has gradually become a research hot spot and has achieved a certain effect, but the following technical difficulties still exist:
(1) The problem of road fracture is not effectively solved, the traditional deep learning method mainly focuses on the whole road extraction result, and the fracture area caused by shielding, noise and the like is not effectively repaired, so that the extracted road network is discontinuous, and the integrity and the practicability of the road are affected. (2) The existing method often ignores the direction information and the space characteristics of the road when the road boundary is processed, and the relationship between the direction vector and the distance of the breakpoint cannot be effectively captured, so that the matching precision is lower in the road repairing process, and misjudgment and erroneous connection are easy to introduce. (3) The problem that the extracted road network has irregular boundaries, inconsistent widths and the like affects the geometric accuracy and visual effect of the road, particularly in high-resolution images, is more remarkable, and limits practical application.
For example, the invention with the application number 202310274763.4 discloses a road extraction method and a road extraction device applied to a remote sensing digital image, and the road extraction method of the application scheme not only can fully utilize the road detail information presented in a high-resolution image, but also can remove interference caused by shielding and shadow caused by high resolution. The scheme simultaneously comprises a deep learning method, wherein the deep learning method is mainly used for focusing on the whole road extraction result, and effective restoration of a broken area caused by shielding, noise and the like is not performed, so that the extracted road network is discontinuous, and the integrity and the practicability of the road are affected.
Therefore, an intelligent repairing method combining breakpoint direction vectors, distance constraints and road width information is needed, the problem of road breakage is solved by accurately matching and optimizing breakpoints, the extracted results are subjected to regularization treatment, and the continuity and accuracy of the road extracted results are improved.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a remote sensing image road breakpoint repairing method, equipment and medium, which are used for effectively repairing broken roads in a remote sensing image and optimizing road boundaries by combining the direction vector of the breakpoints, the distance between the breakpoints and the road width information.
The embodiment of the invention provides a remote sensing image road breakpoint repairing method, equipment and medium.
In a first aspect, a remote sensing image road breakpoint repairing method includes:
S1, converting a road image into a binary image, calculating the size of a communication area of each road, and setting a threshold value to remove part of the communication area to obtain an optimized binary image;
s2, performing skeletonization operation on the optimized binary image, and converting the road into a road skeleton with single pixel width;
s3, performing breakpoint identification processing on the road skeleton, extracting the breakpoints of all roads, and obtaining breakpoint parameter values;
s4, based on the matching value among each group of breakpoint pairs, connecting the breakpoint pairs with the matching value exceeding a threshold value, and obtaining a road skeleton after completion;
s5, repairing the road width of the completed road skeleton, and obtaining the repaired road.
Further, the step S1 includes the steps of:
s11, converting the road gray level image into a road binary image, wherein the formula is as follows:
here, road_image (x, y) is a road grayscale image, 1 is a pixel value of a road region, and 0 is a pixel value of a background region.
And S12, calculating the size of the connected region of the road region connected with each piece in the binary image by using a connected analysis algorithm.
And S13, setting a connected region size threshold value min_size according to priori knowledge, and removing the connected region with the area smaller than the min_size to obtain an optimized binary image.
Further, the step S2 includes:
processing the optimized binary image based on an iterative method of the pixel neighborhood, removing non-skeleton pixel points until only the central line of the road area is left, and reducing all the road area parts into a line structure with single pixel width to obtain a road skeleton;
Further, in the step S3, the breakpoint identification process is performed on the road skeleton by using an eight-neighborhood search method, where the formula is expressed as follows:
The formula is:
Wherein, (0, 0) is the road skeleton pixel position.
Further, the S3 break point parameter values comprise a backtracking coordinate set, a direction vector set and a vertical vector set, wherein:
And (3) tracking along the skeleton from the break point by using a depth-first search algorithm until the bifurcation point or the condition is met, recording the trace coordinate points of the pixel points of the road skeleton in the trace process and forming a trace coordinate set corresponding to the break point, and carrying out fitting normalization on the trace coordinate set to obtain a direction vector set, and orthogonalizing the direction vector set to obtain a vertical vector set.
Further, the matching value is calculated based on the distance and the angle difference between each group of breakpoint pairs, and the formula is as follows:
where d is the Euclidean distance between two break points of the pair, θ is the angle of the direction vector between the pair of break points, and w d and w θ are the weight values of the distance and angle, respectively.
Further, the step S4 also comprises the steps of checking whether each breakpoint accords with a threshold value to form a breakpoint pair, if not, marking the breakpoint pair as an orphan, and determining the angle and the distance for extending the orphan for the orphan, and extending the orphan along the road skeleton until reaching the maximum extension distance or meeting the road pixel.
Further, the step S5 comprises the steps of calculating the width of each pixel point on the vertical vector of the gray-scale road image for each pixel point on the road skeleton section, taking the average value of the road widths corresponding to all the pixel points on the skeleton section as the repairing width corresponding to the break point, repairing the width of the completed road skeleton according to the repairing width, and obtaining the repaired road.
In a second aspect, an electronic device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as provided in the first aspect when the program is executed.
In a third aspect, a non-transitory computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method as provided in the first aspect.
The invention has the beneficial effects that:
1. according to the road restoration method based on the breakpoint direction vector and the distance information, the continuity of the road skeleton can be maintained by accurately calculating the direction and the distance between the breakpoints, and the accuracy of road extraction is remarkably improved.
2. According to the invention, the repaired road is subjected to regularization treatment by introducing the road width information, so that the width of the repaired road meets the physical rule, the situation of road boundary distortion or excessive connection caused by mismatching is avoided, and the repaired road boundary is more accurate and natural by optimizing the smoothness and regularity of the repairing path, and the risk of misjudgment is reduced.
3. The method can cope with interference caused by shielding, noise and complex topography on road extraction when processing roads in the high-resolution remote sensing image, ensures that a better repairing effect can be obtained even under a complex environment, and can complete road repairing in a shorter time compared with the traditional method, and particularly, the method has higher efficiency when processing large-scale high-resolution images. The method is very suitable for an automatic road extraction system and a large-scale remote sensing data processing task, and can obtain a high-quality road repair result in a short time.
4. The road repaired by the method is enhanced in continuity, the boundary is smoother and more regular, and the repair result has higher consistency with real road data. By comparing the road real form with the marking data, the repairing method can accurately restore the road real form, and effectively improves the overall accuracy of the road extraction system.
Drawings
FIG. 1 is a schematic flow chart of a repair method of the present invention;
FIG. 2 is a schematic flow chart of the repair method of the present invention;
FIG. 3 is a schematic structural view of a prosthetic device of the present invention;
FIG. 4 is a binary image before road restoration according to the present invention;
FIG. 5 is a binary image after road repair according to the present invention;
FIG. 6 is a code diagram of an eight neighborhood searching implementation of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar symbols indicate like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
The traditional deep learning method mainly focuses on the whole road extraction result, does not effectively repair broken areas caused by shielding, noise and the like, causes discontinuous extracted road network, influences the integrity and practicality of the road, has lower matching precision in the road repair process, and is easy to introduce misjudgment and error connection.
In order to solve the above problems, the present invention provides a remote sensing image road breakpoint repairing method, fig. 1 is a schematic flow chart of the remote sensing image road breakpoint repairing method provided by the embodiment of the present invention, and fig. 1 is a schematic flow chart of the remote sensing image road breakpoint repairing method provided by the embodiment of the present invention, where the method includes:
s1, converting the road image into a binary image, calculating the size of a communication area of each road, setting a threshold value to remove part of the communication area, and obtaining an optimized binary image.
As shown in fig. 3, the road image is converted into a binary image, the white area is the road area, the pixel value is 1, the black area is the background area, and the pixel value is 0.
The grayscale image road_image (x, y) is converted to a binary image by setting a fixed or adaptive threshold, where the pixel value of the road area is set to 1, the pixel value of the background area is set to 0, and the formula is:
After binarization, a connected region in the image is calculated by using a connected analysis algorithm, each connected road region is marked, and the size of each connected region is calculated. And then setting a threshold value min_size of the size of the connected region according to the priori knowledge, and removing the connected region with the area smaller than the min_size.
For example, if the threshold is set to 64 pixels, the area of the connected area smaller than 64 pixels is removed, and through threshold screening, the interference pixel area can be removed, the road breakpoint data is reduced, the calculation amount is reduced, and redundant breakpoints are prevented from being generated in the subsequent breakpoint detection.
S2, performing skeletonizing operation on the optimized binary image, and converting the road into a road skeleton with single pixel width.
The optimized binary image is processed based on an iterative method of the pixel neighborhood, non-skeleton pixel points are removed until only the central line of a road area is left, the skeletonized output image is the binary image, all the road area parts are reduced to a line structure with single pixel width, the lines keep the topological characteristic and connectivity of an original road, and meanwhile, the road skeleton is obtained.
S3, performing breakpoint identification processing on the road skeleton, extracting the breakpoints of all roads, and obtaining the breakpoint parameter values.
As shown in fig. 6, the breakpoint identification process for the road skeleton uses an eight-neighborhood search method, where an eight-neighborhood refers to a neighborhood composed of eight pixels in the up-down, left-right, and four diagonal directions with a certain road pixel point as the center. For each pixel point in the skeleton, performing AND computation on 8 surrounding neighborhoods by using an eight-neighborhood convolution kernel, traversing each pixel (skeleton pixel) with the value of 1 in the image, and counting the number of 1 in the adjacent 8 neighborhoods by taking the pixel as the center, wherein if the number is 1, the description is a breakpoint.
The center of the kernel matrix is a road skeleton pixel with a pixel value of 1, and eight surrounding areas can have 1,2 and 3 pixels with the value of 1, and if the number is 1, the description is a breakpoint.
The formula is:
Wherein, (0, 0) is the road skeleton pixel position.
Extracting breakpoints of all roads, and obtaining breakpoint parameter values, wherein the breakpoint parameter values comprise a backtracking coordinate set, a direction vector set, a vertical vector set and the like, and the method comprises the following steps of:
And in the backtracking process, the coordinate points of the backtracking of the pixel points of the road skeleton are recorded and the coordinate groups corresponding to the break points are formed.
And then fitting and extracting the direction vector representation by using the coordinate set to obtain a normalized direction vector set, and finally orthogonalizing the direction vector set to obtain a vertical vector set.
And S4, connecting breakpoint pairs with the matched values exceeding a threshold value based on the matched values among the breakpoint pairs of each group, and obtaining the road skeleton after completion.
The two breakpoints form a breakpoint pair, firstly, the Euclidean distance d between the two breakpoints of the breakpoint pair is calculated, then the included angle theta of the direction vectors of the two breakpoints of the breakpoint pair is calculated, and finally, w d and w θ are adopted to respectively represent the weight values of the distance and the angle, the distance d and the included angle theta are regularized, and the calculation formula of the matching value of the breakpoint pair can be expressed as follows:
where d is the Euclidean distance between two break points of the pair, θ is the angle of the direction vector between the pair of break points, and w d and w θ are the weight values of the distance and angle, respectively.
Calculating the matching value of the breakpoint pair through the formula, traversing all the breakpoint pairs, reserving the breakpoint pair with the matching value exceeding a threshold value, and connecting the breakpoint pair to obtain the road skeleton after completion.
For each breakpoint in the breakpoint list, checking whether the breakpoint accords with a threshold value to form a breakpoint pair, if not, marking the breakpoint pair as an orphan point, using a pre-calculated direction vector for each orphan point, normalizing the orphan point, determining the extending direction and distance (step size) of the orphan point, and finally gradually extending the road skeleton until the maximum extending step size is reached or road pixels are encountered.
S5, repairing the road width of the completed road skeleton, and obtaining the repaired road.
The road skeleton after the completion is obtained by the method, and whether the road skeleton is connected between the breakpoint pairs or is single pixel at the moment can be repaired according to the original road width information, so that the road skeleton is more similar to the form of a real road.
Specifically, a backtracking method is used for tracking from the breakpoint to the designated position, and a skeleton segment is obtained. The width of each pixel on the skeleton segment on the vertical vector on the grayscale road image is then calculated for that pixel. Finally, taking an average value of road widths corresponding to all pixels on the skeleton section as a repairing width corresponding to the breakpoint, and repairing the width of the completed road skeleton according to the repairing width to obtain a repaired road area; and finally, carrying out smoothing treatment on the repaired road area, eliminating sharp corners or protrusions possibly existing, and ensuring smooth and natural road shape after width repair.
Based on the above method, the invention also provides a remote sensing image road breakpoint repairing device, as shown in fig. 3, the device comprises:
the image conversion module is used for converting the road image into a binary image, calculating the size of each road communication area, and removing part of the communication areas by setting a threshold value to obtain an optimized binary image;
The framework extraction module is used for performing skeletonizing operation on the optimized binary image and converting the road into a road framework with single pixel width;
The breakpoint acquisition module is used for carrying out breakpoint identification processing on the road skeleton, extracting the breakpoints of all roads and acquiring breakpoint parameter values;
the framework repair module is used for calculating a matching value between each group of breakpoint pairs, connecting the breakpoint pairs with the matching values exceeding a threshold value, and obtaining a road framework after completion;
And the width repair module is used for repairing the width of the road to the road skeleton after the completion and obtaining the repaired road.
The method and the device can maintain the continuity of the road skeleton after repairing and remarkably improve the accuracy of road extraction by accurately calculating the direction and the distance between the break points, and simultaneously, by introducing the road width information, the method and the device not only ensure that the width of the repaired road accords with the physical rule, but also avoid the condition of road boundary distortion or excessive connection caused by mismatching, optimize the smoothness and the regularity of the repairing path, ensure that the repaired road boundary is more accurate and natural, and reduce the risk of misjudgment.
The invention also provides an electronic device, and fig. 7 is a schematic structural diagram of the electronic device provided by the embodiment of the invention, as shown in fig. 7, the electronic device may include a processor (processor), a communication interface (CommunicationsInterface), a memory (memory), and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus. The processor may call logic instructions in memory, for example, to perform the following method:
S1, converting a road image into a binary image, calculating the size of a communication area of each road, and setting a threshold value to remove part of the communication area to obtain an optimized binary image;
s2, performing skeletonization operation on the optimized binary image, and converting the road into a road skeleton with single pixel width;
s3, performing breakpoint identification processing on the road skeleton, extracting the breakpoints of all roads, and obtaining breakpoint parameter values;
s4, based on the matching value among each group of breakpoint pairs, connecting the breakpoint pairs with the matching value exceeding a threshold value, and obtaining a road skeleton after completion;
s5, repairing the road width of the completed road skeleton, and obtaining the repaired road.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the methods provided by the above embodiments, for example, comprising:
S1, converting a road image into a binary image, calculating the size of a communication area of each road, and setting a threshold value to remove part of the communication area to obtain an optimized binary image;
s2, performing skeletonization operation on the optimized binary image, and converting the road into a road skeleton with single pixel width;
s3, performing breakpoint identification processing on the road skeleton, extracting the breakpoints of all roads, and obtaining breakpoint parameter values;
s4, based on the matching value among each group of breakpoint pairs, connecting the breakpoint pairs with the matching value exceeding a threshold value, and obtaining a road skeleton after completion;
s5, repairing the road width of the completed road skeleton, and obtaining the repaired road.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.

Claims (10)

1.一种遥感影像道路断点修复方法,其特征在于,包括:1. A method for repairing road breakpoints in remote sensing images, comprising: S1、将道路图像转换为二值图像,计算各个道路的连通区域大小,设置阈值去除部分连通区域,获得优化后的二值图像;S1, converting the road image into a binary image, calculating the size of the connected area of each road, setting a threshold to remove part of the connected area, and obtaining an optimized binary image; S2、对优化后的二值图像进行骨架化操作,将道路转化为单像素宽度的道路骨架;S2, performing a skeletonization operation on the optimized binary image to convert the road into a road skeleton with a single pixel width; S3、对道路骨架进行断点识别处理,提取所有道路的断点,获取断点参数值;S3, performing breakpoint identification processing on the road skeleton, extracting breakpoints of all roads, and obtaining breakpoint parameter values; S4、基于每组断点对之间匹配值,连接匹配值超过阈值的断点对,获取完善后道路骨架;S4, based on the matching values between each group of breakpoint pairs, connecting the breakpoint pairs whose matching values exceed the threshold value to obtain the improved road skeleton; S5、对完善后的道路骨架进行道路宽度修复,获取修复后的道路。S5. Repair the road width of the improved road skeleton to obtain a repaired road. 2.根据权利要求1所述的修复方法,其特征在于,所述S1包括步骤:2. The repair method according to claim 1, characterized in that said S1 comprises the steps of: S11、将道路灰度图像转换为道路二值图像,公式为:S11. Convert the road grayscale image into a road binary image. The formula is: 其中,road_image(x,y)为道路灰度图像,1为道路区域的像素值,0为背景区域的像素值;Among them, road_image(x,y) is the road grayscale image, 1 is the pixel value of the road area, and 0 is the pixel value of the background area; S12、使用联通分析算法计算二值图像中的每一片相连的道路区域的连通区域的大小;S12, using a connectivity analysis algorithm to calculate the size of the connected area of each connected road area in the binary image; S13、根据先验知识设定连通区域大小阈值min_size,将面积小于min_size的连通区域进行去除,获得优化后的二值图像。S13. According to prior knowledge, a connected region size threshold min_size is set, and connected regions with an area smaller than min_size are removed to obtain an optimized binary image. 3.根据权利要求1所述的修复方法,其特征在于,所述S2中包括:3. The repair method according to claim 1, characterized in that S2 comprises: 基于像素邻域的迭代方法对优化后的二值图像进行处理,剔除非骨架的像素点,直到只剩下道路区域的中心线,所有道路区域部分缩减为单像素宽度的线条结构,获取道路骨架。The optimized binary image is processed based on an iterative method of pixel neighborhood to remove non-skeleton pixels until only the center line of the road area remains. All road area parts are reduced to a line structure with a single pixel width to obtain the road skeleton. 4.根据权利要求3所述的修复方法,其特征在于,所述S3中对道路骨架进行断点识别处理采用八邻域搜索法,公式表示为:4. The repair method according to claim 3 is characterized in that the eight-neighborhood search method is used to identify the breakpoints of the road skeleton in S3, and the formula is expressed as: 其中,(0,0)为道路骨架像素位置。Among them, (0,0) is the road skeleton pixel position. 5.根据权利要求1所述的修复方法,其特征在于,所述S3中断点参数值包括:回溯坐标组、方向向量组和垂直向量组,其中:5. The repair method according to claim 1, characterized in that the S3 breakpoint parameter value includes: a backtracking coordinate group, a direction vector group and a vertical vector group, wherein: 使用深度优先搜索算法从断点开始沿骨架追踪,直到分叉点或者满足条件为止,在此回溯过程中,记录道路骨架像素点回溯的坐标点并构成断点对应的回溯坐标组;对回溯坐标组进行拟合归一化获取方向向量组,对方向向量组正交化得到垂直向量组。Use the depth-first search algorithm to trace along the skeleton from the breakpoint until the bifurcation point or the conditions are met. During this backtracking process, the coordinate points of the backtracked road skeleton pixel points are recorded to form a backtracking coordinate group corresponding to the breakpoint; the backtracking coordinate group is fitted and normalized to obtain the direction vector group, and the direction vector group is orthogonalized to obtain the vertical vector group. 6.根据权利要求1所述的修复方法,其特征在于,所述匹配值基于每组断点对之间的距离和角度差计算,公式为:6. The repair method according to claim 1, characterized in that the matching value is calculated based on the distance and angle difference between each set of breakpoint pairs, and the formula is: 其中,d为断点对两断点之间的欧式距离,θ为断点对两断点之间方向向量角度,wd和wθ分别为距离和角度的权重值。Among them, d is the Euclidean distance between the two breakpoints of the breakpoint pair, θ is the direction vector angle between the two breakpoints of the breakpoint pair, and w d and w θ are the weight values of the distance and angle respectively. 7.根据权利要求1所述的修复方法,其特征在于,所述S4中还包括:7. The repair method according to claim 1, characterized in that said S4 further comprises: 对每个断点检查是否符合阈值形成断点对,若未形成,则标记为孤点;对孤点,确定孤点延长的角度和距离,沿道路骨架延长孤点,直到达到最大延长距离或遇到道路像素为止。Each breakpoint is checked to see if it meets the threshold to form a breakpoint pair. If not, it is marked as an isolated point. For isolated points, the angle and distance of the isolated point extension are determined, and the isolated point is extended along the road skeleton until the maximum extension distance is reached or a road pixel is encountered. 8.根据权利要求1所述的修复方法,其特征在于,所述S5包括:8. The repair method according to claim 1, characterized in that S5 comprises: 对于道路骨架段上的每一个像素点,计算像素点在灰度道路图像上垂直向量上的宽度,取该骨架段上所有像素点对应道路宽度的平均值作为该断点对应的修复宽度,依据修复宽度对完善后的道路骨架进行宽度修复,获取修复后的道路。For each pixel point on the road skeleton segment, calculate the width of the pixel point on the vertical vector on the grayscale road image, take the average road width corresponding to all pixel points on the skeleton segment as the repair width corresponding to the breakpoint, and repair the width of the improved road skeleton according to the repair width to obtain the repaired road. 9.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至8中任一项所述的修复方法的步骤。9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the repair method according to any one of claims 1 to 8 when executing the program. 10.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至8中任一项所述的修复方法的步骤。10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the repair method according to any one of claims 1 to 8.
CN202510293789.2A 2025-03-13 2025-03-13 Remote sensing image road breakpoint repairing method, device and medium Pending CN120355880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510293789.2A CN120355880A (en) 2025-03-13 2025-03-13 Remote sensing image road breakpoint repairing method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510293789.2A CN120355880A (en) 2025-03-13 2025-03-13 Remote sensing image road breakpoint repairing method, device and medium

Publications (1)

Publication Number Publication Date
CN120355880A true CN120355880A (en) 2025-07-22

Family

ID=96405818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510293789.2A Pending CN120355880A (en) 2025-03-13 2025-03-13 Remote sensing image road breakpoint repairing method, device and medium

Country Status (1)

Country Link
CN (1) CN120355880A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697418A (en) * 2018-12-14 2019-04-30 中国公路工程咨询集团有限公司 The post-processing approach that image is extracted for remote sensing image road network restored for scene
CN115205302A (en) * 2022-07-14 2022-10-18 重庆邮电大学 Remote sensing image segmentation repairing method based on deep learning
CN115546167A (en) * 2022-10-17 2022-12-30 辽宁工程技术大学 Deep learning road extraction result optimization method based on topological connectivity
CN118865183A (en) * 2024-09-25 2024-10-29 江西农业大学 A method for extracting linear objects in fields based on UAV images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697418A (en) * 2018-12-14 2019-04-30 中国公路工程咨询集团有限公司 The post-processing approach that image is extracted for remote sensing image road network restored for scene
CN115205302A (en) * 2022-07-14 2022-10-18 重庆邮电大学 Remote sensing image segmentation repairing method based on deep learning
CN115546167A (en) * 2022-10-17 2022-12-30 辽宁工程技术大学 Deep learning road extraction result optimization method based on topological connectivity
CN118865183A (en) * 2024-09-25 2024-10-29 江西农业大学 A method for extracting linear objects in fields based on UAV images

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈奕州等: "遥感影像道路断线修复方法研究", 《地理空间信息》, vol. 22, no. 04, 30 April 2024 (2024-04-30), pages 1 *

Similar Documents

Publication Publication Date Title
CN106683075B (en) A method for detecting bolt defects at the cross arm of a transmission line tower
CN110020995B (en) Image splicing method for complex images
CN113240623B (en) Pavement disease detection method and device
CN110796643A (en) Rail fastener defect detection method and system
CN107798326A (en) A Contour Vision Detection Algorithm
CN113706464B (en) Printed matter appearance quality detection method and system
CN115731257A (en) Image-based Leaf Shape Information Extraction Method
CN114241364A (en) A rapid calibration method for foreign object targets in overhead transmission lines
CN104077775A (en) Shape matching method and device combining skeleton feature points and shape context
CN105741281B (en) Method for detecting image edge based on neighborhood dispersion
CN111310508A (en) A two-dimensional code identification method
CN116258722B (en) Intelligent bridge building detection method based on image processing
CN111861866A (en) A panorama reconstruction method of substation equipment inspection image
CN111860501A (en) Image recognition method of high-speed rail height adjustment rod falling out fault based on shape matching
CN117094975A (en) Method and device for detecting surface defects of steel and electronic equipment
CN119445005B (en) A point cloud image fusion method based on vision
CN113989604A (en) A tire DOT information recognition method based on end-to-end deep learning
CN118736232A (en) Photovoltaic module EL image processing method and device based on semantic segmentation
CN118735853A (en) A method for measuring crack length of bridge structure
CN114897699B (en) Infrared image stitching method and device for fan blade
CN118096519B (en) Fluorescence microscopic imaging image stitching algorithm
CN120355880A (en) Remote sensing image road breakpoint repairing method, device and medium
CN112819823A (en) Furniture board-oriented circular hole detection method, system and device
CN111178111A (en) Two-dimensional code detection method, electronic device, storage medium and system
CN115471849B (en) A handwritten Chinese character image evaluation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载