Marine ship target matching method based on edge features

Through the improved Canny algorithm and adaptive RANSAC algorithm, the maritime vessel target matching method based on edge features solves the existing technology problems of long operation time and low matching accuracy of maritime vessel image matching in complex environments, and achieves a better High robustness and accuracy.

CN118570511AInactive Publication Date: 2024-08-30NAVAL AVIATION UNIV

Patent Information

Application Number
CN202411059728.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing maritime vessel image matching algorithms have problems such as long computing time and low matching accuracy in complex maritime environments. Especially under the influence of bad weather and sea lines, uneven illumination and fish-scale reflection lead to uneven feature distribution, affecting matching accuracy. and stability.

Method used

A maritime ship target matching method based on edge features is adopted, edge detection is performed through the improved Canny algorithm, morphological filtering and Gaussian filtering are combined, feature points are extracted using the SURF algorithm, and geometric transformation model estimation and mismatch elimination are performed through the adaptive RANSAC algorithm. .

Benefits of technology

It improves ship edge continuity and matching accuracy, significantly improves the robustness and accuracy of ship image matching in complex ocean backgrounds, reduces false matching points, and improves matching accuracy and calculation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570511A
    Figure CN118570511A
Patent Text Reader

Abstract

The invention discloses a maritime ship target matching method based on edge features, and relates to the technical field of maritime ship target image matching, and the maritime ship target matching method based on the edge features comprises the following steps: 1, carrying out the edge detection through an improved Canny algorithm; 2, extracting feature points and descriptors of the feature points on the image after edge detection by using an SURF (Speeded Up Robust Feature) algorithm; 3, finding out a matching pair from the feature descriptors of the two images by using Euclidean distance and nearest neighbor ratio test; 4, estimating geometric transformation between matching points by using an improved adaptive RANSAC algorithm, performing transformation model estimation, separating inner and outer points, purifying a matching result, and eliminating mismatching; and 5, after matching is completed, extracting coordinates of the feature point set, calculating coordinates of an external rectangle, drawing a rectangular frame on the image, selecting the same ship target connected domain, and obtaining a ship detection result ship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of marine vessel target image matching, and in particular to a marine vessel target matching method based on edge features. Background Art

[0002] Marine ship target images include SAR images, optical remote sensing images, infrared images and visible light video images. Among them, the homologous and heterologous matching of visible light and infrared images plays a vital role in marine target detection, which is related to the efficiency and accuracy of marine surveillance and management. In the civilian field, it can monitor the dynamics of ships and prevent illegal fishing, illegal crossing of borders, etc. At the same time, it can also quickly locate the affected areas and objects when a maritime accident occurs, and effectively guide rescue operations. In the military field, it can ensure accurate identification and tracking of targets in complex marine environments, such as bad weather or the presence of marine interference, and improve the alertness and response speed of marine defense.

[0003] The existing technology has the following problems: There are two main types of marine ship image matching: (1) grayscale-based image matching and (2) feature-based image matching. Lowe et al. proposed a scale-invariant feature transform algorithm SIFT (Scale Invariant Feature Transform), which can achieve satisfactory image matching results in most cases. However, the SIFT algorithm has certain limitations, mainly because the calculation process of its descriptor is complex and time-consuming. In particular, when processing images with similar structures, it is easy to generate a large number of mismatched points. To address this problem, Bay et al. proposed a more efficient algorithm based on the SIFT algorithm - speed-up robust features SURF (speed-up robust features). Although the SURF algorithm performs well in terms of matching speed and robustness, the marine ship image is affected by the scene, and its matching accuracy still needs to be further improved. The ship target is affected by the waves and the sea-sky line, which reduces the signal-to-noise ratio of the image. Uneven lighting and fish-scale reflections will cause uneven feature distribution of ship targets in the image, affecting the stability and accuracy of feature extraction. At the same time, the dynamic noise generated by sea waves caused by sea breeze, especially in severe weather conditions, will further aggravate the interference in the image, making ship target matching more difficult. The above problems lead to long calculation time and low matching accuracy of the algorithm. Summary of the invention

[0004] The present invention provides a marine vessel target matching method based on edge features to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: The method for matching marine vessel targets based on edge features comprises the following steps: Step 1: Improved Canny algorithm for edge detection; Step 2: Use the SURF algorithm to extract feature points and their descriptors on the image after edge detection; Step 3: Find matching pairs from the feature descriptors of the two images using Euclidean distance and nearest neighbor ratio test; Step 4: Use the improved adaptive RANSAC algorithm to estimate the geometric transformation between matching points, perform transformation model estimation, separate internal and external points, purify the matching results, and eliminate false matches; Step 5: After the matching is completed, the coordinates of the feature point set are extracted, the coordinates of the circumscribed rectangle are calculated, and a rectangular box is drawn on the image to select the connected domain of the same ship target to obtain the ship detection result.

[0006] A further improvement of the technical solution of the present invention is that the improved Canny algorithm introduces morphological filtering, and improves the accuracy and robustness of edge detection by combining the preprocessing steps of morphological filtering and Gaussian filtering. The structural features of the image are processed by composite morphological filtering of opening and closing operations, while Gaussian filtering smoothes the overall appearance of the image. The two work together to optimize the edge continuity of the ship and eliminate irrelevant noise points.

[0007] A further improvement of the technical solution of the present invention is that the improved Canny algorithm uses the Otsu threshold method to perform adaptive threshold setting to adapt to the complex lighting conditions and contrast in the marine environment, thereby extracting clearer and more significant ship edges.

[0008] A further improvement of the technical solution of the present invention is that in the post-processing stage of the improved Canny algorithm, morphological dilation is used to further enhance the edge of the ship and connect the broken edges that will be caused by the threshold setting.

[0009] The further improvement of the technical solution of the present invention is that the improved RANSAC algorithm optimizes the process of distinguishing inliers and outliers by dynamically adjusting the "MaxDistance" threshold, that is, adaptively adjusting according to the standard deviation of the Euclidean distance between feature points. Assuming that there are two groups of matching points, which are located in two groups of images respectively, and Represents the position of two matching points in the two images, the Euclidean distance between the two feature points for: (1).

[0010] The further improvement of the technical solution of the present invention is: the improved RANSAC algorithm is used to calculate the distance set of all matching point pairs. , and its standard deviation is ,in, is the average value of the distance set D, n is the total number of matching point pairs, is the distance between each pair of matching points. Using the standard deviation, we dynamically adjust the "MaxDistance". , where k is an adjustment factor, which is selected according to experimental data and specific application scenarios, and its value range is 0.1 to 1. In this process, only when the distance between matching point pairs is less than or equal to "MaxDistance", these point pairs are considered as potential inliers.

[0011] A further improvement of the technical solution of the present invention is that the improved RANSAC algorithm selects a small adaptive coefficient k in image registration scenarios with low noise levels, reduces the "MaxDistance" parameter, and makes the internal point selection mechanism more stringent, thereby correspondingly reducing the risk of false matching. On the contrary, if the noise level increases significantly, a large adaptive coefficient k is selected to ensure that the algorithm does not ignore valid matches due to overly strict internal point selection.

[0012] The further improvement of the technical solution of the present invention is that when the matching points show a high degree of geometric consistency, the improved RANSAC algorithm will reduce the k value to improve the accuracy of internal point recognition. If the matching point set contains a large number of outliers or mismatches, increasing the k value ensures the robustness of the algorithm. In short, the adjustment of the k value needs to comprehensively consider the noise level, the spatial geometric consistency of the matching points, and the proportion of abnormal matches, so as to ensure the accuracy of feature matching while optimizing the adaptability and robustness of the algorithm to various types of data variability. The parameters of this application are .

[0013] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art: 1. The present invention provides a method for matching marine ship targets based on edge features. The Canny algorithm for image preprocessing is improved, and the composite operation of opening / closing operation in morphological filtering is introduced to optimize the edge continuity of the ship and eliminate irrelevant noise points. The Otsu threshold method is used for adaptive threshold setting to extract clearer and more significant ship edges. Based on the edge information of the ship target, the SURF algorithm is used to extract feature points and perform feature matching. The traditional random sampling consistency algorithm is improved, and a dynamic adjustment threshold optimization algorithm is adopted to realize an adaptive RANSAC algorithm to eliminate erroneous matching points in the matching results and improve the matching accuracy. 2. The present invention provides a method for matching marine ship targets based on edge features, which successfully achieves two levels of adaptability: first, dynamically adjust the threshold of the Canny algorithm to optimize edge detection; second, in the feature point matching stage, dynamically set the "MaxDistance" parameter in the RANSAC algorithm by calculating the Euclidean distance between matching points and determining the standard deviation based on this. This parameter is set based on the statistical characteristics of the matching point distance and is adjusted at a fixed ratio of the standard deviation (such as 0.4 times in the experiment of this article), so as to achieve the purpose of automatically adapting to complex sea surface image scenes; 3. The present invention provides a method for matching marine vessel targets based on edge features. Through mutual cooperation, the target vessel can be successfully identified without interference from other vessels in complex scenes such as the same vessel appearing in different frames and different perspectives of the same sensor and the same vessel target collected by different sensors. This method can better meet the needs of marine vessel image matching, effectively eliminate incorrect matching points while retaining correct matching points, and significantly improve the robustness and accuracy of vessel image matching under complex ocean backgrounds. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 The flow chart of the target matching of marine vessels of the present invention; Figure 2 It is a flow chart of the improved Canny algorithm of the present invention; Figure 3 Comparison diagram of the Canny algorithm before and after the improvement of the present invention: (a) visible light ship image, (b) visible light ship image edge extraction by traditional algorithm, (c) visible light ship image edge extraction by improved algorithm, (d) visible light ship image feature point extraction by traditional algorithm, (e) visible light ship image feature point extraction by improved algorithm; Figure 4 The data of the present invention is a feature point matching diagram: (a) reference image, (b) target image, (c) feature point matching without using adaptive RANSAC, (d) feature point matching with adaptive RANSAC; Figure 5 The data of the present invention is a framed target ship diagram: (a) a reference image frames a target ship, (b) a target image frames a target ship; Figure 6 The data of the present invention are two feature point matching diagrams: (a) reference image, (b) target image, (c) feature point matching without using adaptive RANSAC, (d) feature point matching with adaptive RANSAC; Figure 7 The data 2 of the present invention is a diagram of a target ship being framed: (a) a reference image is used to frame a target ship, and (b) a target image is used to frame a target ship; Figure 8Three feature point matching diagrams of the data of the present invention: (a) reference image, (b) target image, (c) feature point matching without using adaptive RANSAC, (d) feature point matching with adaptive RANSAC; Fig. 9 The data of the present invention is a three-dimensional framed target ship diagram: (a) a reference image frames a target ship, (b) a target image frames a target ship; Fig.10 Four feature point matching diagrams of the data of the present invention: (a) reference image, (b) target image, (c) feature point matching without using adaptive RANSAC, (d) feature point matching with adaptive RANSAC; Fig.11 The data of the present invention is a four-dimensional image of a target ship: (a) a reference image frames a target ship, (b) a target image frames a target ship; Fig.12 The five feature point matching diagrams of the data of the present invention are: (a) reference image, (b) target image, (c) feature point matching without using adaptive RANSAC, (d) feature point matching with adaptive RANSAC; Fig.13 Figure 5 of the data of the present invention for framing a target ship: (a) a reference image framing a target ship, and (b) a target image framing a target ship. DETAILED DESCRIPTION

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

[0016] Example 1 like Figure 1 As shown, the present invention provides a method for matching marine vessel targets based on edge features, and the method for matching marine vessel targets based on edge features comprises the following steps: Step 1: Improved Canny algorithm for edge detection; Step 2: Use the SURF algorithm to extract feature points and their descriptors on the image after edge detection; Step 3: Find matching pairs from the feature descriptors of the two images using Euclidean distance and nearest neighbor ratio test; Step 4: Use the improved adaptive RANSAC algorithm to estimate the geometric transformation between matching points, perform transformation model estimation, separate internal and external points, purify the matching results, and eliminate false matches; Step 5: After the matching is completed, the coordinates of the feature point set are extracted, the coordinates of the circumscribed rectangle are calculated, and a rectangular box is drawn on the image to select the connected domain of the same ship target to obtain the ship detection result.

[0017] In this embodiment, the Canny algorithm for image preprocessing is improved, and the composite operation of opening / closing operation in morphological filtering is introduced to optimize the edge continuity of the ship and eliminate irrelevant noise points. The Otsu threshold method is used for adaptive threshold setting to extract clearer and more significant ship edges. Based on the edge information of the ship target, the SURF algorithm is used to extract feature points for feature matching. The traditional random sampling consistency algorithm is improved, and a dynamically adjusted threshold optimization algorithm is used to implement an adaptive RANSAC algorithm to eliminate erroneous matching points in the matching results and improve the matching accuracy.

[0018] Example 2 like Figure 2-3 As shown, on the basis of Example 1, the present invention provides a technical solution: preferably, the improved Canny algorithm introduces morphological filtering, and improves the accuracy and robustness of edge detection by combining the preprocessing steps of morphological filtering and Gaussian filtering. The improved Canny algorithm processes the structural features of the image through a composite morphological filtering of opening and closing operations, while the Gaussian filtering smoothes the overall appearance of the image. The two work together to optimize the edge continuity of the ship and eliminate irrelevant noise points. Subsequently, an adaptive threshold is set using the Otsu threshold method to adapt to the complex lighting conditions and contrast in the marine environment, and a clearer and more significant ship edge is extracted. In the post-processing stage of the improved Canny algorithm, morphological dilation is used to further enhance the ship edge and connect the broken edges that will be caused by the threshold setting.

[0019] In this embodiment, Figure 3 The paper shows a comparison of the edge effects of the original visible light image and the traditional Canny algorithm and the improved algorithm. The traditional algorithm sets thresholds of 0.1 and 0.3 to distinguish weak edges from strong edges. Although the traditional Canny algorithm has introduced a multi-stage process to enhance the robustness to noise, it still shows certain limitations in processing images of high-noise scenes of sea ships. The traditional Canny algorithm identifies background noise as a valid edge, resulting in a large number of erroneous detections of irrelevant edges. After edge extraction, the image contains many feature points of non-ship targets when performing SURF feature point extraction. In comparison, the improved algorithm has achieved remarkable results in reducing non-target edges, making the edge extraction of ships more refined and accurate. The feature points extracted by the improved algorithm are mainly concentrated on the target ship, which significantly optimizes the effectiveness of the feature points. This improved Canny algorithm provides more stable and reliable input data for subsequent feature point extraction and target matching steps.

[0020] Example 3 On the basis of Example 1, the present invention provides a technical solution: preferably, by dynamically adjusting the "MaxDistance" threshold, that is, adaptively adjusting according to the standard deviation of the Euclidean distance between feature points, to optimize the process of distinguishing inliers and outliers, assuming that there are two groups of matching points, which are located in two groups of images respectively, and Represents the position of two matching points in the two images, the Euclidean distance between the two feature points for: (1);

[0021] For all matching point pairs, the distance set , and its standard deviation is ,in, is the average value of the distance set D, n is the total number of matching point pairs, is the distance between each pair of matching points. Using the standard deviation, we dynamically adjust the "MaxDistance". , where k is an adjustment factor, which is selected according to experimental data and specific application scenarios, and its value range is 0.1 to 1. In this process, only when the distance between matching point pairs is less than or equal to "MaxDistance", these point pairs are considered as potential inliers.

[0022] In image registration scenarios with low noise levels, a small adaptive coefficient k is selected and the "MaxDistance" parameter is reduced, resulting in a stricter inlier selection mechanism, which correspondingly reduces the risk of false matches. On the contrary, if the noise level increases significantly, a large adaptive coefficient k is selected to ensure that the algorithm does not ignore valid matches due to overly strict inlier selection.

[0023] When the matching points show a high degree of geometric consistency, reducing the k value will help improve the accuracy of internal point recognition. If the matching point set contains a large number of outliers or mismatches, increasing the k value ensures the robustness of the algorithm. In short, the adjustment of the k value needs to comprehensively consider the noise level, the spatial geometric consistency of the matching points, and the proportion of abnormal matches, so as to ensure the accuracy of feature matching while optimizing the adaptability and robustness of the algorithm to various data variability. The parameters of this application are .

[0024] Example 4 Based on Example 1, the present invention provides a technical solution: Preferably, the present application uses visible light and infrared acquisition equipment of the Naval Aviation University for data acquisition, and the infrared and visible light cameras are fixed on the same rotating platform for shooting, and 360-degree video images are collected in all directions. The experimental data set is derived from different frames in the video sequence, and the collected data generally consists of two parts: the sea surface and the ship. Representative images of single or multiple ship targets containing small waves are selected for experiments.

[0025] This application conducts experiments to verify the comparison of the matching algorithm proposed in the article with the traditional algorithm. The experiment includes the matching of the same source image and the heterogeneous image of the ship at sea. The traditional method is the traditional Canny edge extraction followed by the SURF feature point extraction and description, and then combined with the traditional RANSAC algorithm. In order to quantitatively describe the performance of the algorithm of this application, the experimental results evaluate the algorithm from four aspects: matching accuracy CMR, matching time, initial matching pairs and number of inliers. Among them, the matching accuracy CMR calculation formula is as shown in formula (2). The larger the CMR value, the better the matching effect. The number of initial matching pairs is the number of initial matching pairs obtained when the SURF algorithm is used for feature point matching. The number of inliers refers to the number of matching pairs identified as inliers after robust matching using the RANSAC algorithm: (2); In the formula is the number of internal points, and P is the number of initial matching pairs.

[0026] The first data set contains two images from the same visible light sensor, with different numbers of ships shown in the image frames captured every few seconds.

[0027] Figure 4 As can be seen from the comparison of (c) in the figure, the traditional matching algorithm without adaptive RANSAC has obvious wrong matching point pairs, which are affected by other ships. The matching effect diagram of the algorithm in this paper is as follows: Figure 4 As shown in (d), there are no mismatched point pairs.

[0028] Table 1 shows that the matching time of the proposed algorithm is lower than that of the traditional algorithm, and the matching accuracy is significantly higher than that of the traditional algorithm. The proposed algorithm uses Canny edge images for SURF feature extraction and matching. Compared with the traditional Canny edge images, the feature points obtained by SURF feature extraction are more representative, making the matching process more precise and accurate. Since the adaptive RANSAC algorithm effectively excludes more outliers in the initial screening stage, the number of data points that need to be processed in the subsequent iteration process is significantly reduced, thereby directly reducing the computational burden. In contrast, the traditional RANSAC algorithm requires more iterations to accumulate enough internal points to support the construction of a stable model, especially when there are more noise and outliers in the data. Therefore, the adaptive RANSAC algorithm not only has a shorter running time, but also outperforms the traditional RANSAC algorithm in terms of correct matching rate.

[0029] The second data set contains two images from the same infrared sensor, with frames captured a few seconds apart showing different numbers of ships.

[0030] The matching results of the second set of data are similar to those of the first set. Figure 6 It is obvious from the comparison of (c) in the figure that the matching algorithm without adaptive RANSAC also has mismatched pairs in this case, due to Figure 6 (b) Interference by another vessel, resulting in Figure 6 The single ship target in (a) is incorrectly matched to Figure 6 The two ships in (b) of the image have obvious wrong matching points. When there is overlap between the ships in the target image of data 2, the traditional matching algorithm will misjudge some external points as internal points, resulting in wrong matching. The improved adaptive RANSAC algorithm dynamically adjusts the threshold value according to the standard deviation of the Euclidean distance between the feature points to optimize the process of distinguishing internal and external points. Therefore, the adaptive RANSAC algorithm, as shown in Table 1, not only has a shorter running time, but also outperforms the traditional RANSAC algorithm in terms of correct matching rate.

[0031] Figure 4 , Figure 6 The results show that the algorithm proposed in this paper is not only applicable to the matching of visible light homologous images, but also to the matching of infrared homologous images. It can effectively identify and correctly match the target ship in the image, proving its adaptability and robustness to both visible light and infrared sensor data. In addition, the data in Table 1 show that the algorithm in this paper can still maintain a high matching accuracy rate when facing interference and potential mismatching challenges in the image, further verifying its feasibility and efficiency in practical applications.

[0032] The third set of data consists of images of the same ship collected by a visible light sensor. The ship rotates around a fixed point, thereby obtaining images of the ship in various postures and perspectives. The direction of the stern facing the visible light collection device is set as 0 degrees, and two images of the ship target at 30 degrees and 60 degrees are selected, respectively. Figure 8 (a) and Figure 8 As shown in (b) in .

[0033] Data from three sources Figure 8 (c) and Figure 8 It is obvious from the comparison of (d) in the figure that the traditional matching algorithm without adaptive RANSAC also has mismatched pairs in this case, and mistakenly matches a small number of waves with the target. When the background noise of the sea surface appears, the fixed threshold of the traditional matching algorithm cannot effectively distinguish the correct inliers from the wrong outliers. Moreover, in the presence of noise and outliers, more iterations are required to accumulate enough inliers to support the establishment of a stable model. The adaptive RANSAC algorithm effectively excludes outliers in the initial screening stage, thereby significantly reducing the number of data points processed in subsequent iterations, directly reducing the computational burden. Therefore, the comparison of the two algorithms in Data 2 is shown in Table 1. The algorithm in this paper not only has a shorter running time, but also outperforms the traditional algorithm in terms of correct matching rate. The traditional algorithm extracts a large number of feature matching pairs, but the number of inliers is small; although the improved algorithm extracts fewer feature matching pairs, it is more used for inlier matching. The traditional Canny algorithm will mistakenly identify the wave background as a valid edge, resulting in a large number of incorrect detections of irrelevant edges. After edge extraction, the image contains many SURF feature points of non-ship targets. In contrast, the improved Canny algorithm proposed in this paper has achieved remarkable results in reducing non-target edges, making the edge extraction of ships more refined and accurate. The feature points extracted by the algorithm in this paper are mainly concentrated on the target ship, which significantly optimizes the effectiveness of the feature points.

[0034] In the fourth set of data, the infrared and visible light cameras were fixed on the same platform for shooting. However, due to the differences in focal length and image capture capabilities between visible light and infrared sensors, the sizes of ship targets they captured were inconsistent. In addition, infrared imaging systems usually have lower resolution and contrast, so that the images captured by infrared sensors are usually not as clear as visible light images in terms of edge features. The edge features of ship targets in the infrared images obtained from the experimental data are relatively blurred and difficult to accurately identify. These factors increase the difficulty of subsequent image processing and feature matching.

[0035] Data from Fig.10 (c) and Fig.10It can be clearly seen from the comparison of (d) in Figure 1 that the improved algorithm has obvious advantages in the correctness of ship feature matching, while the traditional matching algorithm fails to effectively eliminate the wrong matching pairs in this case. The data results in Table 1 show that the proposed algorithm not only has a shorter running time, but also outperforms the traditional algorithm in the correct matching rate. The initial matching pairs and the number of internal points of the heterogeneous image in Data 4 are lower than those of the homologous images, i.e., Data 1, 2, and 3. This is because the homologous images are taken by the same camera device, and the acquired images have high consistency in terms of illumination, color, resolution, and noise. However, the imaging mechanisms of infrared and visible light sensors are different, and there are significant differences in edge features. The edge features of visible light images depend on the surface texture and color changes of the object, while the infrared image captures the thermal radiation emitted by the object, and its edge features are related to the temperature distribution. Even for the same ship target, the images acquired by the two sensors show completely different edge responses, so the feature point sets extracted in the two edge images are also different. Therefore, the initial matching pairs and the number of internal points of the heterogeneous image in Data 4 are lower than those of the homologous images, i.e., Data 1, 2, and 3.

[0036] In the fifth set of data, due to the differences in focal length and imaging capabilities between visible light and infrared sensors, the visible light images collected in this set of data only captured one ship, while the infrared images captured two, including the ship in the visible light image.

[0037] Data from Fig.12 (c) and Fig.10 It can be clearly seen from the comparison of (d) in the figure that the traditional matching algorithm has more false matches, and the adaptive RANSAC algorithm eliminates some false matches. Although the adaptive RANSAC algorithm has obvious advantages in the correctness of ship image matching, the algorithm has certain limitations and does not completely eliminate false matches. Through multiple iterations, the adaptive RANSAC algorithm evaluates the models generated by different random subsets to eliminate accidental correct or false matches caused by randomness or feature point extraction errors. However, when the number of falsely matched feature points is large or their distribution is misleading, RANSAC has difficulty in accurately distinguishing between inliers, i.e., correct matches, and outliers, i.e., false matches. When the two ships in the infrared image have similar structural features, the feature points will be mistakenly matched to a single ship in the visible light image. When dealing with heterogeneous image matching where the infrared image contains multiple targets, more advanced image processing strategies are needed.

[0038] The data in Table 1 show that the improved algorithm extracts more internal points for matching than the traditional algorithm, has a faster matching time and a higher matching accuracy. The adaptive mechanism of this application can dynamically adjust parameters, which is particularly important for processing heterogeneous data: Table 1 Quantitative analysis of algorithms ; Table 1 is a comparison table of matching time, matching accuracy, initial matching pairs and number of inliers of the traditional algorithm and the improved algorithm. It can be seen from the table that the improved algorithm has greatly improved matching accuracy and algorithm running time in four situations: when the number of ship targets is different in homologous image matching, when the target ship perspectives of the homologous image are different, and when the number of ships in heterologous image matching is the same or different. In heterologous image matching, i.e., data four and data five, the number of inliers extracted by the algorithm in this paper is significantly reduced compared with homologous image matching, i.e., data one, two and three. Therefore, to improve the number of inliers in heterologous image matching, it is still necessary to solve these problems from the aspects of optimizing feature extraction algorithms, matching strategies and geometric transformation models of heterologous image data. By using convolutional neural networks to extract features and match, the causes of low inliers can be gradually identified and solved, and the correct matching rate and matching time can be increased.

[0039] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.

Claims

1. A method for matching marine vessel targets based on edge features, characterized in that: The marine vessel target matching method based on edge features comprises the following steps: Step 1: Improved Canny algorithm for edge detection; Step 2: Use the SURF algorithm to extract feature points and their descriptors on the image after edge detection; Step 3: Find matching pairs from the feature descriptors of the two images using Euclidean distance and nearest neighbor ratio test; Step 4: Use the improved adaptive RANSAC algorithm to estimate the geometric transformation between matching points, perform transformation model estimation, separate internal and external points, purify the matching results, and eliminate false matches; Step 5: After the matching is completed, the coordinates of the feature point set are extracted, the coordinates of the circumscribed rectangle are calculated, and a rectangular box is drawn on the image to select the connected domain of the same ship target to obtain the ship detection result.

2. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: The improved Canny algorithm introduces morphological filtering, which processes the structural features of the image through opening and closing operations, effectively eliminates sea surface noise, and avoids the introduction of additional noise interference. Subsequently, Gaussian filtering smoothes the overall appearance of the image, thereby optimizing the edge continuity of the ship and eliminating irrelevant noise points. By combining the preprocessing steps of morphological filtering and Gaussian filtering, the accuracy and robustness of edge detection are improved. The structural features of the image are processed by a composite morphological filtering of opening and closing operations, while Gaussian filtering smoothes the overall appearance of the image. The two work together to optimize the edge continuity of the ship and eliminate irrelevant noise points.

3. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: The improved Canny algorithm uses the Otsu threshold method for adaptive threshold setting to adapt to the complex lighting conditions and contrast in the ocean environment and extract clearer and more significant ship edges.

4. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: In the post-processing stage of the modified Canny algorithm, morphological dilation is used to further enhance the edges of the boats and to connect the broken edges that would otherwise be created by thresholding.

5. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: The improved RANSAC algorithm optimizes the process of distinguishing inliers and outliers by dynamically adjusting the "MaxDistance" threshold, that is, adaptively adjusting according to the standard deviation of the Euclidean distance between feature points. Assuming there are two sets of matching points, one is located in the two sets of matching points of the two sets of images. and Represents the position of two matching points in the two images, the Euclidean distance between the two feature points for: (1)。 6. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: Improved RANSAC algorithm for the distance set of all matching point pairs , and its standard deviation is ,in, is the average value of the distance set D, n is the total number of matching point pairs, is the distance between each pair of matching points. Using the standard deviation, we dynamically adjust "MaxDistance". , where k is an adjustment factor, which is selected based on experimental data and specific application scenarios, and its value range is 0.1 to 1. In this process, only when the distance between matching point pairs is less than or equal to "MaxDistance", these point pairs are considered as potential inliers.

7. The method for matching marine vessel targets based on edge features according to claim 1, characterized in that: In image registration scenarios with low noise levels, the improved RANSAC algorithm selects a small adaptive coefficient k and reduces the "MaxDistance" parameter, resulting in a stricter inlier selection mechanism, which correspondingly reduces the risk of false matches. On the contrary, if the noise level increases significantly, a large adaptive coefficient k is selected to ensure that the algorithm does not ignore valid matches due to overly strict inlier selection.

8. The method for matching marine vessels based on edge features according to claim 1, characterized in that: Improved RANSAC algorithm When the matching points show a high degree of geometric consistency, reducing the k value will help improve the accuracy of internal point recognition. If the matching point set contains a large number of outliers or mismatches, increasing the k value ensures the robustness of the algorithm. In short, the adjustment of the k value needs to comprehensively consider the noise level, the spatial geometric consistency of the matching points, and the proportion of abnormal matches, so as to ensure the accuracy of feature matching while optimizing the adaptability and robustness of the algorithm to various types of data variability. This application parameter .

Citation Information

Patent Citations

  • An end-to-end detection and identification method for a sea surface ship in a satellite-borne SAR image

    CN109766811A

  • Multi-temporal SAR ship target tracking method and system, equipment and medium

    CN113869119A

  • Methods and systems for detecting vessels

    GB202109319D0

  • Training method and training apparatus for rotating-ship target detection model, and storage medium

    WO2023116631A1

Cited By

  • Wide-area video monitoring double-spectrum ship small target registration method

    CN120235920A