SAR (Synthetic Aperture Radar) image lamp post extraction method and system based on optical shadow feature point prediction
Through a method based on optical shadow feature point prediction, the shadow information of light pole targets is enhanced and combined with clustering and search strategies, the difficulty of extracting light pole targets in SAR images is solved, the extraction efficiency and accuracy are improved, and ground control points are realized efficient acquisition.
Patent Information
- Application Number
- CN202410782269.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-30
AI Technical Summary
In SAR images, it is difficult to extract street light targets, especially the challenges caused by the top cover and different texture features of light pole targets in optical images, which affects the accuracy and efficiency of ground control points.
Using a method based on optical shadow feature point prediction, high-resolution optical images are obtained through drone aerial photography to enhance light pole target shadow information, combined with NCC matching and clustering algorithms, to obtain light pole target point coordinates, and use constraints Corrected point target search strategy to extract light pole targets in SAR images.
It improves the feasibility and accuracy of extracting light pole targets in SAR images, improves the extraction efficiency and accuracy of ground control points, and achieves sub-pixel positioning of light pole targets.
Smart Images

Figure CN118566927A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of synthetic aperture radar target detection, and in particular to a method and system for extracting lamp poles from SAR images based on prediction of optical shadow feature points. Background Art
[0002] As the basic data for topographic surveying and mapping, ground control points can provide important control information for the production of basic military and civilian surveying and mapping products, and significantly improve the topographic surveying and mapping capabilities of the target area. Traditional ground control point collection mainly uses the global satellite navigation system and relies on field collection, which is time-consuming and labor-intensive. At present, the domestic synthetic aperture radar (SAR) satellite orbit determination technology has been greatly improved, which also makes it possible to automatically extract large-scale ground control points using domestic SAR images.
[0003] Street lamps are important ground objects in the road environment. They have the characteristics of wide distribution range and stable targets. Street lamps are typical and robust targets in the natural environment, making them one of the best choices for ground control point candidates. Due to the special imaging method of SAR images, the target features of lamp poles appear as isolated bright spots in SAR images. However, there are many bright spots in natural scenes, and the influence of image speckle noise makes it difficult to directly extract lamp pole targets in SAR images. Therefore, how to effectively extract lamp pole targets in SAR images has become the primary issue in the research of ground control point extraction using SAR images.
[0004] The special geometric results of street lamp targets often cause the top of the street lamp to be covered in optical images, that is, the top structure of the street lamp covers the bottom information. In addition, due to the different top structures of different lamp pole targets, the texture features presented in the optical image are also different, which brings certain challenges to the extraction of street lamp targets in optical images. However, due to the characteristics of passive imaging, optical images will produce shadows when imaging lamp pole targets, which provides a solution for the extraction of lamp poles in optical images. Combined with the shadow features of lamp poles in optical images, optical image-assisted SAR image lamp pole target extraction has become the main method for obtaining lamp pole targets on SAR images. At present, the research on SAR image lamp pole target extraction based on this idea uses the lamp pole shadow information in aerial images and combines the mean shift clustering method to extract lamp poles in aerial images to achieve lamp pole target extraction in SAR images; for example, after extracting the lamp pole shadow information, the distance matrix clustering method is used to extract the poles of lamp pole targets in SAR images. Although the above methods can extract lamp pole targets in SAR images, there are still high extraction complexity and difficulty in target search in practical applications, which affects the application effect in target terrain mapping. Summary of the invention
[0005] To this end, the present invention provides a SAR image light pole extraction method and system based on optical shadow feature point prediction, which makes full use of the light pole shadow information in high-resolution optical images to improve the feasibility and accuracy of light pole target extraction in SAR images, and improves the accuracy and efficiency of ground control point extraction in terrain surveying and mapping.
[0006] According to the design scheme provided by the present invention, on the one hand, a method for extracting lamp poles from SAR images based on prediction of optical shadow feature points is provided, comprising:
[0007] Obtain the optical image data of the target area taken by the drone, and enhance the shadow of the light pole target according to the shadow information of the light pole target on the optical image of the target area;
[0008] The target coordinates of the light pole are detected according to the enhanced target shadow of the light pole to obtain the target point coordinates of the light pole;
[0009] The coordinates of the lamp pole target point are de-encoded into the radar coordinate system of the corresponding target area SAR image, and the lamp pole target in the target area SAR image is extracted using the constrained correction point target search strategy. The constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and an accurate search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
[0010] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, the lamp pole target shadow is enhanced according to the shadow information of the lamp pole target on the optical image of the target area, including:
[0011] Grayscale processing is performed on the optical image of the target area taken by the drone, and the bright target elements in the grayscale image are expanded to reduce the features of the narrow dark target elements that are the shadows of the lamp poles in the optical image data. The bright target elements are target elements with brightness greater than the specified brightness value, and the narrow dark target elements are target elements with brightness less than the brightness threshold.
[0012] By removing narrow dark target elements in the optical image data through morphological erosion, intermediate image data is obtained;
[0013] The grayscale image of the target area in the aerial photo taken by the UAV is subtracted from the image in the intermediate image data to obtain the narrow dark target in the aerial photo taken by the UAV;
[0014] According to the sun altitude angle at a specified time in the optical image of the target area taken by UAV aerial photography, Gabor filtering is performed on the acquired narrow dark targets to enhance the shadow of the lamp pole target in the direction of the sun altitude angle.
[0015] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, the lamp pole target coordinates are detected according to the enhanced lamp pole target shadow, including:
[0016] Select any lamp pole target in the optical image after the lamp pole target shadow is enhanced as a template, use NCC matching to search for the template in the optical image, and obtain the lamp pole target point set;
[0017] The density-based clustering algorithm is used to cluster the light pole target point set to obtain the rough coordinates of the light pole target.
[0018] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, NCC matching is used to search for templates in the optical image to obtain a lamp pole target point set, including:
[0019] The template is associated with the optical image, the NCC value is obtained through image similarity, the NCC value is matched with the specified threshold to obtain the template in the optical image, and the lamp pole target point set is obtained based on the template in the optical image.
[0020] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, a density-based clustering algorithm is used to cluster the lamp pole target point set to obtain the rough coordinates of the lamp pole target, including:
[0021] The sample neighborhood distance threshold is set based on the distance between adjacent lamp poles on the road and the ground sampling distance of the optical image in the urban road lighting specification standard, and the threshold of the number of samples in the neighborhood is set based on the target shadow length of the lamp pole, the target width of the lamp pole and the lamp pole length in the template;
[0022] Randomly select seed points according to the sample neighborhood distance threshold and the number of samples in the neighborhood threshold, find the set of all seed points that meet the number of samples specified by the neighborhood distance threshold, connect the sample points that meet the conditions to form cluster categories;
[0023] The coordinates of the target image points of the light pole in the optical image are determined according to the clustering results, and the rough coordinates of the light pole target are obtained by combining the corresponding geographic coordinates of the optical image.
[0024] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, the lamp pole target point coordinates are reversely encoded into the radar coordinate system of the SAR image of the corresponding target area, including:
[0025] The error tolerance of the range Doppler RD model is set, and the detection results of the light pole target are de-encoded into the SAR image plane coordinate system by using the range Doppler RD model and model iteration to obtain the coarse point coordinates of the light pole target on the SAR optical image.
[0026] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, a constrained correction point target search strategy is used to extract lamp pole targets in the target area SAR image, including:
[0027] The rough point of the light pole target is used as the center to set the search window, and the constrained correction direction of the rough point of the light pole target is obtained by using the random sampling consistency algorithm. The light pole target is searched again in the SAR image under the constrained correction direction to obtain the target point with the strongest backscattering in the search window, and this point is used as the corresponding pixel-level position in the initial search strategy for the light pole target.
[0028] For the initial search results of the light pole target, the images around the search point are upsampled, and the bilinear interpolation method is used to interpolate the image. The point with the maximum backscattering intensity is obtained by the centroid method, and this point is used as the corresponding sub-pixel level position under the precise search strategy for the light pole target.
[0029] As a SAR image lamp pole extraction method based on optical shadow feature point prediction of the present invention, further, a random sampling consistency algorithm is used to obtain the constrained correction direction of the rough point of the lamp pole target, including:
[0030] The bilinear transformation model is used to represent the transformation relationship between the image point coordinates after the light pole target point coordinates are inversely encoded into the SAR image radar coordinate system and the image point coordinates corrected under the constrained correction direction.
[0031] Image points of specified accuracy are extracted using distance tolerance, and the image point coordinate correction and correction mean are obtained. The quadrant where the correction mean is located is used as the overall constraint direction for the initial search, so as to re-search the point target with the strongest backscattering in the specified quadrant using the search window.
[0032] On the other hand, the present invention also provides a SAR image light pole extraction system based on optical shadow feature point prediction, comprising: a shadow enhancement module, a rough estimation module and a target extraction module, wherein:
[0033] The shadow enhancement module is used to obtain the optical image data of the target area taken by the drone, and enhance the shadow of the light pole target according to the shadow information of the light pole target on the optical image of the target area;
[0034] A rough estimation module is used to detect the target coordinates of the light pole according to the enhanced target shadow of the light pole to obtain the target point coordinates of the light pole;
[0035] The target extraction module is used to decode the coordinates of the lamp pole target point into the radar coordinate system of the corresponding target area SAR image, and use the constrained correction point target search strategy to extract the lamp pole target in the target area SAR image. The constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and an accurate search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
[0036] Beneficial effects of the present invention:
[0037] The present invention uses high-resolution optical images as auxiliary data, and obtains the rough geographic coordinates of the lamp pole target by enhancing the expression of narrow dark shadow information in the optical image; reversely encodes the rough geographic coordinates of the lamp pole target to the SAR plane coordinate system, sets a window to detect adjacent strong scattering target points, and adopts a point target constraint correction strategy that limits the search quadrant to achieve sub-pixel positioning of the lamp pole target; fully utilizes the lamp pole shadow information in the high-resolution optical image to improve the feasibility and accuracy of lamp pole target extraction in the SAR image. The high-resolution UAV image and the GF-3 SAR image are further used to conduct lamp pole target extraction experiments. The experimental data proves that the scheme of this case can accurately and efficiently extract ground control points such as lamp pole targets in SAR images, and has good application prospects in the field of terrain surveying and mapping. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the process of extracting lamp poles from SAR images based on the prediction of optical shadow feature points in the embodiment;
[0039] Figure 2 This is a schematic diagram of the principle of the SAR image light pole extraction algorithm in the embodiment;
[0040] Figure 3 An overview of the experimental target area in the embodiment;
[0041] Figure 4 This is a schematic diagram of enhancing narrow dark objects in an optical image in an embodiment;
[0042] Figure 5 This is a schematic diagram of enhancing narrow dark targets after Gabor filtering in the embodiment;
[0043] Figure 6 This is a schematic diagram of the NCC template matching result cluster in the embodiment;
[0044] Figure 7 Schematic diagram of the target spatial distribution of lamp poles after DBSCAN clustering in the embodiment;
[0045] Figure 8 This is a schematic diagram of the reverse encoding of the geographic coordinates of the light pole to the radar coordinate system in the embodiment;
[0046] Fig. 9Schematic diagram of the search result of the light pole target proximity in the embodiment;
[0047] Fig.10 Schematic diagram of point target spatial distribution after constraint correction in the embodiment;
[0048] Fig.11 This is a schematic diagram of the target analysis of the lamp pole target point in the embodiment;
[0049] Fig.12 This is a schematic diagram of a lamp pole target in a SAR image after precise search in the embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.
[0051] Accurate detection of light pole targets in synthetic aperture radar (SAR) images is of great significance for ground control point extraction of spaceborne SAR images. In order to effectively extract light pole targets in spaceborne SAR images, the embodiments of the present invention refer to Figure 1 As shown, a method for extracting light poles from SAR images based on prediction of optical shadow feature points is provided, comprising:
[0052] S101, obtaining optical image data of a target area taken by a drone, and enhancing the shadow of a lamp pole target according to shadow information of the lamp pole target on the optical image of the target area.
[0053] Specifically, the enhancement process can be designed to include:
[0054] Grayscale processing is performed on the optical image of the target area taken by the drone, and the bright target elements in the grayscale image are expanded to reduce the features of the narrow dark target elements that are the shadows of the lamp poles in the optical image data. The bright target elements are target elements with brightness greater than the specified brightness value, and the narrow dark target elements are target elements with brightness less than the brightness threshold.
[0055] By removing narrow dark target elements in the optical image data through morphological erosion, intermediate image data is obtained;
[0056] The grayscale image of the target area in the aerial photo taken by the UAV is subtracted from the image in the intermediate image data to obtain the narrow dark target in the aerial photo taken by the UAV;
[0057] According to the sun altitude angle at a specified time in the optical image of the target area taken by UAV aerial photography, Gabor filtering is performed on the acquired narrow dark targets to enhance the shadow of the lamp pole target in the direction of the sun altitude angle.
[0058] In the optical image, the shadow of the lamp pole appears as a long and narrow shadow, which is obviously different from other ground features. The morphological filtering method can enhance the difference between bright and dark targets in the optical image, and then extract the long and narrow dark objects. In the embodiment of this case, the image morphological closing operation is selected to process the high-resolution optical image. The calculation steps of the closing operation are first expansion and then erosion between the image and the structure. This processing can connect relatively close bright target elements, such as holes inside the target or isolated points outside, into one, and the appearance and area of the region will not change significantly. Therefore, the brighter ground objects (such as buildings, lamp pole bodies, etc.) in the optical image are first expanded and enlarged by morphological expansion, and the features of narrow dark targets (lamp pole shadows, etc.) in the optical image are reduced, and then the narrow dark targets are removed by morphological erosion. The narrow dark targets in the original optical image can be obtained by performing a difference calculation between the original grayscale image and the image after the closing operation.
[0059] Before morphological calculation, the input optical image is converted into a grayscale image using the weighted average method. The morphological grayscale erosion can be defined as And the morphological grayscale expansion is The process of morphological closing operation can be expressed as:
[0060]
[0061] A⊙B={Z|(B) Z ∩A≠φ} (2)
[0062] Where A is the grayscale image, B is the structural element, and Z is the set consisting of A and B. The structural element B is a square template of a specified pixel, which can be defined according to the image resolution and the approximate width of the light pole. The morphological grayscale closing operation (·) and the structural element B processing can be defined as:
[0063]
[0064] After the morphological grayscale closing operation, the optical image does not contain narrow dark shadow targets. The narrow dark object image L can be extracted by subtracting it from the original grayscale image. The specific calculation can be expressed as:
[0065]
[0066] Combined with the solar altitude angle at the time of high-resolution optical image acquisition, Gabor filtering is performed on L to enhance the extraction of narrow dark shadow targets in the direction of the solar altitude angle. The Gabor real number filter kernel g can be constructed using the following formulas: real , imaginary filter kernel g imag ,
[0067]
[0068] in,
[0069]
[0070] In the formula, λ is the wavelength of the filter; θ is the tilt angle of the Gabor kernel function image, that is, the solar altitude angle; ψ is the phase offset; σ is the standard deviation of the Gaussian function; γ is the ellipticity of the Gabor kernel function image. Construct the Gabor real filter kernel g real , imaginary filter kernel g imag After that, sliding filtering is performed on L to obtain the image img eim with img oim , that is, the image G after Gabor filtering is:
[0071]
[0072] S102: Detect the light pole target coordinates according to the enhanced light pole target shadow to obtain the light pole target point coordinates.
[0073] Specifically, the detection of the light pole target in the SAR optical image is performed based on the enhanced light pole target shadow, which can be designed to include:
[0074] Select any lamp pole target in the optical image after the lamp pole target shadow is enhanced as a template, use NCC matching to search for the template in the optical image, and obtain the lamp pole target point set;
[0075] The density-based clustering algorithm is used to cluster the light pole target point set to obtain the rough coordinates of the light pole target.
[0076] The template is associated with the optical image, the NCC value is obtained through image similarity, the NCC value is matched with a specified threshold to obtain the template in the optical image, and the lamp pole target point set is obtained based on the template in the optical image.
[0077] Select any lamp pole target in the image after narrow dark information enhancement as a template, associate the template with the processed image, and calculate the similarity of the pixels in the reference image:
[0078]
[0079] By calculating the NCC value ρ(u,v), the template position in the reference image is detected after setting an appropriate threshold. In terms of matching threshold setting, the light pole target in the image is fully detected by setting a lower threshold (ρ(u,v)≥0.7), and the mismatched targets caused by the low matching threshold will be regarded as noise filtering in the subsequent clustering process.
[0080] The sample neighborhood distance threshold can be set in combination with the distance between adjacent lamp poles on the road in the urban road lighting specification standard and the ground sampling distance of the optical image, and the threshold for the number of samples in the neighborhood can be set according to the length of the lamp pole target shadow, the lamp pole target width and the lamp pole length in the template; seed points are randomly selected according to the sample neighborhood distance threshold and the threshold for the number of samples in the neighborhood, and a set of the number of samples that meets the specified number of neighborhood distance thresholds is found among all seed points, and the sample points that meet the conditions are connected to form cluster categories; the coordinates of the lamp pole target image points in the optical image are determined based on the clustering results, and the rough coordinates of the lamp pole target are obtained in combination with the corresponding geographic coordinates of the optical image.
[0081] Each lamp pole target in the optical image occupies multiple pixels, and the matching threshold is set low, resulting in multiple target points for one lamp pole target. In this embodiment, the DBSCAN algorithm can be used without pre-specifying the number of classifications. There are two main parameters that describe the compactness of the sample set: ε is the neighborhood distance threshold of the sample, and MinPts is the threshold that describes the number of samples in the neighborhood. According to the set ε and MinPts, seed points are randomly selected, and the set of all seed points that can meet the specified number of samples of the neighborhood distance threshold is found. The sample points that meet the conditions are connected to form a category of the final clustering. ε and MinPts are set in combination with the actual situation of the lamp pole target and the image resolution:
[0082] ε=r / GSD (10)
[0083]
[0084] Among them, r is the distance between two adjacent lamp poles on the road. According to the "Highway and Intersection Lighting Design Standard", the distance between street lamps on urban roads can be estimated to be about 30 meters. In the actual experiment, since the lamp pole points generated after matching are relatively clustered, the ε threshold can be appropriately lowered. GSD is the ground sampling distance of the optical image, L is the length of the lamp pole shadow, l is the length of the lamp pole in the matching template, and W is the width of the lamp pole. After clustering, the coordinates of the target image points of the lamp pole in the optical image can be determined, and the rough coordinates of the lamp pole can be obtained by combining the corresponding geographic coordinates of the high-resolution optical image. In the subsequent SAR image target search, the inaccurate clustering results caused by errors such as high-resolution optical image positioning and matching can be further corrected. Therefore, the accuracy requirement of the optical lamp pole coordinates obtained in this step is not high, and an accuracy of about 10m is sufficient.
[0085] S103, de-encode the coordinates of the lamp pole target point into the radar coordinate system of the corresponding target area SAR image, and use the constrained correction point target search strategy to extract the lamp pole target in the target area SAR image, wherein the constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and a precise search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
[0086] Specifically, the light pole target point coordinates are reversely encoded into the radar coordinate system of the corresponding target area SAR image, which can be designed to include:
[0087] The error tolerance of the range Doppler RD model is set, and the detection results of the light pole target are de-encoded into the SAR image plane coordinate system by using the range Doppler RD model and model iteration to obtain the coarse point coordinates of the light pole target on the SAR optical image.
[0088] According to the geographic coordinates of the light pole extracted from the optical image, the RD model is used to predict the position of the light pole target on the SAR image. The rough geographic coordinates (X, Y, Z) of the light pole are reversed to the SAR image plane coordinate system (x, y). The RD model is a rigorous geometric model of spaceborne SAR, which includes the range equation and the Doppler equation. Its expression can be expressed as:
[0089]
[0090] Among them, P s =[X s Y s Z s ] T is the position vector of the antenna phase center S at the initial moment, is the position vector of the antenna phase center at the initial moment, is the acceleration vector of the antenna phase center at the initial moment, and t′ is the time interval between adjacent rows in azimuth. In the prediction of the coordinates of the light pole target image point in the SAR image, the RD model error equation is expressed as:
[0091] B·Δ I -L=0 (13)
[0092]
[0093] Δ I =[ΔxΔy] T (15)
[0094]
[0095] By setting the tolerance (Δx<0.1, Δy<0.1) and iteratively solving the above equation, the coarse image point coordinates corresponding to the light pole target on the SAR image can be obtained, thus realizing the point position prediction of the light pole target on the SAR image.
[0096] Among them, the constrained correction point target search strategy is used to extract the light pole target in the SAR image of the target area, which can be designed to include:
[0097] The rough point of the light pole target is used as the center to set the search window, and the constrained correction direction of the rough point of the light pole target is obtained by using the random sampling consistency algorithm. The light pole target is searched again in the SAR image under the constrained correction direction to obtain the target point with the strongest backscattering in the search window, and this point is used as the corresponding pixel-level position in the initial search strategy for the light pole target.
[0098] For the initial search results of the light pole target, the images around the search point are upsampled, and the bilinear interpolation method is used to interpolate the image. The point with the maximum backscattering intensity is obtained by the centroid method, and this point is used as the corresponding sub-pixel level position under the precise search strategy for the light pole target.
[0099] Among them, a bilinear transformation model can be used to represent the transformation relationship between the image point coordinates after the light pole target point coordinates are inversely encoded into the SAR image radar coordinate system and the image point coordinates corrected under the constrained correction direction; the image points of specified accuracy are extracted using the distance limit, and the image point coordinate correction amount and the correction mean are obtained. The quadrant where the correction mean value is located is used as the overall constrained direction for the initial search, so as to re-search the point target with the strongest backscattering in the specified quadrant using the search window.
[0100] According to the rough image point coordinates of the light pole obtained by point prediction, a search window is set with the rough image point coordinates of the light pole as the center to search for point targets with the strongest backscattering within the window range. The size of the search window can be determined based on the approximate positioning accuracy of the SAR image. After the search is completed, the initial search results for the light pole target can be obtained. Based on the initial search results for the light pole target, the RANSAC algorithm is used to extract the image point coordinate correction direction of the high-precision search result point. In this embodiment, a bilinear transformation model can be used to represent the transformation relationship between the two types of points:
[0101]
[0102] Among them, (x1, y1) is the image point coordinate after the geographic coordinates of the light pole are reversed to the radar coordinate system, and (x2, y2) is the image point coordinate after the initial correction. Use the distance tolerance to extract a small number of more accurate result points, set the distance tolerance to ρ, and the judgment condition for the correct search point is:
[0103]
[0104] After extracting more accurate result points through the RANSAC algorithm, the image point coordinate corrections and the average values of the corrections in the x and y directions are calculated respectively. The quadrant where the average value of the corrections is located is used as the constraint direction of the overall search, and the point target with the strongest backscattering is searched again in the specified quadrant, so that the corresponding accuracy of the lamp pole point reaches the pixel level.
[0105] Based on the initial search, the point target analysis method can be used to accurately search for the lamp pole target. The specific steps are as follows: 1) Set a window with the coordinates of the image point after the initial search as the center, and upsample the window image by 8 times; 2) Use the bilinear interpolation method to interpolate the oversampled image; 3) Use the gravity method to search for the maximum value point in the interpolated window image, let (x i ,y i ) represents the image coordinates of the i-th pixel in the neighborhood of the point target, ρ i represents the intensity value of the i-th pixel, M represents the total number of pixels in the neighborhood, and the coordinates of the peak point are:
[0106]
[0107] See also Figure 2 As shown, the key steps of the algorithm pseudocode in this case can be described as follows:
[0108] 1) Use image morphology method to realize optical image sharpening processing, improve the expression of narrow and dark target information in the image, and combine the solar altitude angle at the time of optical image acquisition to perform Gabor filtering on the image to enhance the narrow and dark information of the image;
[0109] 2) Select the lamp pole target template, use NCC matching to search for the template in the filtered image, and obtain the lamp pole target point set; set the DBSCAN clustering parameters to realize the clustering of the lamp pole target point set, and obtain the rough geographic coordinates of the lamp pole point target;
[0110] 4) Use the RD model to reverse the rough coordinates of the light pole point target into the SAR plane coordinate system to obtain the rough image point coordinates of the light pole;
[0111] 5) Adopt the point target search strategy with constraint correction, search for the light pole target for the first time, use RANSAC to obtain the constraint correction direction, and correct the search target point again;
[0112] 6) Accurately search for the light pole target, upsample the image around the search point, and interpolate the image using bilinear interpolation; use the centroid method to find the point with the maximum backscattering intensity, which is the sub-pixel position of the light pole target.
[0113] Furthermore, based on the above method, an embodiment of the present invention also provides a SAR image light pole extraction system based on optical shadow feature point prediction, comprising: a shadow enhancement module, a rough estimation module and a target extraction module, wherein:
[0114] The shadow enhancement module is used to obtain the optical image data of the target area taken by the drone, and enhance the shadow of the light pole target according to the shadow information of the light pole target on the optical image of the target area;
[0115] A rough estimation module is used to detect the target coordinates of the light pole according to the enhanced target shadow of the light pole to obtain the target point coordinates of the light pole;
[0116] The target extraction module is used to decode the coordinates of the lamp pole target point into the radar coordinate system of the corresponding target area SAR image, and use the constrained correction point target search strategy to extract the lamp pole target in the target area SAR image. The constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and an accurate search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
[0117] In order to verify the effectiveness of this solution, the following is a further explanation based on experimental data:
[0118] A road in the northern part of Zhengzhou City, Henan Province was selected as the experimental area. The specific conditions of the experimental area are as follows: Figure 3 As shown in the figure, both sides of the roads in the experimental area contain residential areas, farmland and other types of landforms, and the roads show a "wide-narrow-wide-narrow" distribution characteristic. The overall complexity of the roads is high and has a certain degree of representativeness.
[0119] According to the field survey, there are 61 light poles on the road, including 57 type I light poles and 4 type II light poles. Figure 3 As shown in (b), it is arranged symmetrically on both sides of the road. Each light pole type 1 target contains two lamp heads of different heights in a centrally symmetrical structure. The light pole consists of a base and a pole. The base is a rectangular parallelepiped with a length and width of 0.13 meters and a height of 2 meters. The pole connects the two lamp heads and consists of two poles of different heights. Light pole type II is as follows Figure 3 As shown in (d) in the figure, it is mainly distributed at the fork in the road and consists of a base and a pole. The base is a rectangular parallelepiped with a length of 0.4 meters, a width of 0.3 meters and a height of 1.7 meters.
[0120] High-resolution optical images were obtained by drone aerial photography, and the specific parameters are shown in Table 1. In order to effectively extract the shadow information of the lamp pole and ensure the quality of orthophoto production and image resolution, this experiment set the drone flight altitude to 60m and the image resolution to 0.02m. The weather was clear and sunny on the day of drone aerial photography data collection, which could clearly present the shadow information of the lamp pole and the quality of the collected data was good.
[0121] Table 1 Basic parameters of high-resolution optical imaging
[0122]
[0123] The SAR image used is the GF-3UFS image. The specific parameters are shown in Table 2. The sampling interval in the range direction is 1.12 m, and the sampling interval in the azimuth direction is 1.72 m.
[0124] Table 2 Basic parameters of spaceborne SAR images
[0125]
[0126] The image processed by the narrow dark target extraction method is as follows Figure 4 As shown in the figure. In the experiment, the image resolution is 0.02m, the target width of the lamp pole is 0.13m, and the sun azimuth is 150.97° at the time of image acquisition. After the original image is morphologically expanded, the highlighted target in the image is merged with the surrounding small highlighted targets, as shown in the figure. Figure 4 In (a), the road markings are significantly expanded, solving the problem of small breaks in continuous highlight targets. After morphological erosion processing, the smaller holes in the image are effectively removed. Figure 4 After the above morphological processing, the bright targets in the image are enhanced, and the required narrow dark targets are also removed. Subtract the original image from the image after morphological processing to obtain the narrow dark target image, as shown in Figure 4 As shown in (c) in the figure. Figure 4 As can be seen in (c), the highlight targets such as road markings in the original image are removed, and the shadow information of the lamp pole is better expressed.
[0127] The sharpened image is subjected to Gabor filtering, and the Gabor filter kernel angle is set to the solar azimuth angle (150.97°) at the time of image acquisition. The Gabor filtering result is as follows: Figure 5 As shown, compared with the image before filtering ( Figure 4 In (c), the shadow target of the lamp pole appears expanded and highlighted in the image after Gabor filtering, and the shadow information in the angle direction of the filter kernel is enhanced.
[0128] Select any enhanced lamp pole shadow target as the matching template and filter it according to the minimum similarity threshold of 0.7 set by the algorithm. The clusters obtained by NCC template matching are as follows: Figure 6 and 7 shown.
[0129] Combined with the metadata file of the spaceborne SAR image, the geographic coordinates of the light pole target extracted from the high-resolution optical image are reversed to the radar coordinate system. The results are as follows: Figure 8 As shown. Figure 8 It can be seen that due to the error in SAR image imaging and the error in extracting light poles from optical images, the light pole targets after decoding cannot be accurately matched with the light pole targets in SAR images. Overall, there is an overall offset between the light pole targets after decoding and the light pole targets in SAR images.
[0130] Combining the light pole target extraction error caused by the positioning error of the Gaofen-3 satellite and the inaccurate positioning of the drone, an 11*11 search window is created with the rough image coordinates of the light pole as the center to search for the target point with the strongest backscattering in the window. The initial search results of the experiment are as follows Fig. 9 As shown in the results, it can be seen that due to the complex terrain on both sides of the road and the presence of strong scattering targets such as buildings in the search window, some point search results have obvious search errors.
[0131] The results of using RANSAC to extract the constrained correction direction show that the constrained correction direction of the light pole target point within the scope of this experiment is in the third quadrant (i.e., Δx<0, Δy<0). According to the constrained correction direction obtained by the RANSAC method, the third quadrant constraint criteria are restricted, and the window is re-established to search for strong backscattering points. The search results are as follows: Fig.10 As shown. Fig.10 It can be seen that the light pole target after constraint correction has basically overlapped with the light pole target point in the SAR image.
[0132] The above processing has completed the initial search for lamp pole targets in SAR images, and basically meets the requirements for the pixel-level search for lamp pole targets. In order to further determine the precise location of the lamp pole target, this experiment performs precise search processing. With the initial search result as the center, a 7*7 window is created, and the pixels in the window are upsampled 8 times. The point target analysis method is used to extract the maximum value coordinates from the sampled image. Fig.11 As shown, Fig.11 The left picture is the SAR image after upsampling and interpolation, and the right picture is the pixel location of its maximum value point.
[0133] The sub-pixel position of the light pole target is further obtained through the point target analysis method. The light pole target position of the SAR image obtained in this experiment is as follows: Fig.12 shown.
[0134] In order to evaluate the efficiency and accuracy of the algorithm in this case, the algorithm results of this case are compared with manual visual interpretation. Among them, the visual interpretation method includes two methods: high-resolution optical image interpretation and SAR image interpretation. The number of high-resolution optical visuals is taken as the true value of the number of lamp pole targets in the study area. The comparative experimental results are shown in Table 3.
[0135] Table 3 Comparison of experimental extraction results and accuracy
[0136]
[0137]
[0138] After comparing the number of detections, it was found that there were 61 light pole targets in the study area. A total of 55 light pole targets were detected using the visual interpretation method of SAR images, and 60 light pole targets were detected by the algorithm in this case. The above situation shows that in terms of traditional visual interpretation, due to the special imaging method of SAR images and the professional background knowledge requirements, it is difficult to detect light pole targets relying solely on SAR images; in terms of time consumption, the algorithm in this case has certain advantages over the traditional visual interpretation method and can greatly reduce the detection speed; in terms of detection error, due to the difference in coordinate systems between SAR images and high-resolution optical images, errors are inevitable after direct conversion. Therefore, the experiment verifies the accuracy of the algorithm in this case and the light pole targets of the visual interpretation of SAR images. After the accuracy verification, it was found that the detection error of the algorithm in this case was 1.45 pixels away from the error in the visual interpretation of SAR images. Considering the influence of SAR image resolution and interpretation errors, the algorithm in this case has a high detection accuracy.
[0139] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0141] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.
[0142] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.
[0143] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for extracting lamp poles from SAR images based on prediction of optical shadow feature points, characterized in that: Include: Obtain the optical image data of the target area taken by the drone, and enhance the shadow of the light pole target according to the shadow information of the light pole target on the optical image of the target area; The target coordinates of the light pole are detected according to the enhanced target shadow of the light pole to obtain the target point coordinates of the light pole; The coordinates of the lamp pole target point are de-encoded into the radar coordinate system of the corresponding target area SAR image, and the lamp pole target in the target area SAR image is extracted using the constrained correction point target search strategy. The constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and an accurate search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
2. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 1, characterized in that: The shadow of the light pole target is enhanced according to the shadow information of the light pole target on the optical image of the target area, including: Grayscale processing is performed on the optical image of the target area taken by the drone, and the bright target elements in the grayscale image are expanded to reduce the features of the narrow dark target elements that are the shadows of the lamp poles in the optical image data. The bright target elements are target elements with brightness greater than the specified brightness value, and the narrow dark target elements are target elements with brightness less than the brightness threshold. By removing narrow dark target elements in the optical image data through morphological erosion, intermediate image data is obtained; The grayscale image of the target area in the aerial photo taken by the UAV is subtracted from the image in the intermediate image data to obtain the narrow dark target in the aerial photo taken by the UAV; According to the sun altitude angle at a specified time in the optical image of the target area taken by UAV aerial photography, Gabor filtering is performed on the acquired narrow dark targets to enhance the shadow of the lamp pole target in the direction of the sun altitude angle.
3. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 1, characterized in that: The target coordinates of the light pole are detected based on the enhanced light pole target shadow, including: Select any lamp pole target in the optical image after the lamp pole target shadow is enhanced as a template, use NCC matching to search for the template in the optical image, and obtain the lamp pole target point set; The density-based clustering algorithm is used to cluster the light pole target point set to obtain the rough coordinates of the light pole target.
4. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 3, characterized in that: NCC matching is used to search for templates in the optical image to obtain the lamp pole target point set, including: The template is associated with the optical image, the NCC value is obtained through image similarity, the NCC value is matched with the specified threshold to obtain the template in the optical image, and the lamp pole target point set is obtained based on the template in the optical image.
5. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 3, characterized in that: The density-based clustering algorithm is used to cluster the light pole target point set to obtain the rough coordinates of the light pole target, including: The sample neighborhood distance threshold is set based on the distance between adjacent lamp poles on the road and the ground sampling distance of the optical image in the urban road lighting specification standard, and the threshold of the number of samples in the neighborhood is set based on the target shadow length of the lamp pole, the target width of the lamp pole and the length of the lamp pole in the template; Randomly select seed points according to the sample neighborhood distance threshold and the sample number threshold in the neighborhood, find the set of all seed points that meet the specified number of samples of the neighborhood distance threshold, connect the sample points that meet the conditions to form cluster categories; The coordinates of the target image points of the light pole in the optical image are determined according to the clustering results, and the rough coordinates of the light pole target are obtained by combining the corresponding geographic coordinates of the optical image.
6. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 1, characterized in that: The light pole target point coordinates are reversed to the radar coordinate system of the SAR image of the corresponding target area, including: The error tolerance of the range Doppler RD model is set, and the light pole target detection results are de-encoded into the SAR image plane coordinate system by using the range Doppler RD model and model iterative solution to obtain the coarse point coordinates of the light pole target on the SAR optical image.
7. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 1, characterized in that: The constrained correction point target search strategy is used to extract the light pole target in the SAR image of the target area, including: The rough point of the light pole target is used as the center to set the search window, and the constrained correction direction of the rough point of the light pole target is obtained by using the random sampling consistency algorithm. The light pole target is searched again in the SAR image under the constrained correction direction to obtain the target point with the strongest backscattering in the search window, and this point is used as the corresponding pixel-level position in the initial search strategy for the light pole target. For the initial search results of the light pole target, the images around the search point are upsampled, and the bilinear interpolation method is used to interpolate the image. The point with the maximum backscattering intensity is obtained by the centroid method, and this point is used as the corresponding sub-pixel level position under the precise search strategy for the light pole target.
8. The method for extracting lamp poles from SAR images based on prediction of optical shadow feature points according to claim 7, characterized in that: The random sampling consistency algorithm is used to obtain the constrained correction direction of the rough point of the light pole target, including: The bilinear transformation model is used to represent the transformation relationship between the image point coordinates after the light pole target point coordinates are inversely encoded into the SAR image radar coordinate system and the image point coordinates corrected under the constrained correction direction. Image points of specified accuracy are extracted using distance tolerance, and the image point coordinate correction and correction mean are obtained. The quadrant where the correction mean is located is used as the overall constraint direction for the initial search, so as to re-search the point target with the strongest backscattering in the specified quadrant using the search window.
9. A SAR image light pole extraction system based on optical shadow feature point prediction, characterized in that: It includes: shadow enhancement module, rough estimation module and target extraction module, among which, The shadow enhancement module is used to obtain the optical image data of the target area taken by the drone, and enhance the shadow of the light pole target according to the shadow information of the light pole target on the optical image of the target area; A rough estimation module is used to detect the target coordinates of the light pole according to the enhanced target shadow of the light pole to obtain the target point coordinates of the light pole; The target extraction module is used to decode the coordinates of the lamp pole target point into the radar coordinate system of the corresponding target area SAR image, and use the constrained correction point target search strategy to extract the lamp pole target in the target area SAR image. The constrained correction point target search strategy includes an initial search strategy for pixel-level search of the lamp pole target and an accurate search strategy for sub-pixel search of the lamp pole target based on the pixel-level search results.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 8 can be implemented.
