A moving target detection method based on wide-width bilateral scanning images
Through cloud removal and sub-pixel level geometric registration, combined with the grayscale response difference suppression factor, the problem of detection noise and geometric deformation in wide-field and large-field bilateral pendulum images is solved, and high-precision moving target detection is achieved.
Patent Information
- Application Number
- CN202410674480.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing moving target detection methods are difficult to achieve effective detection in wide-field and large-field bilateral pendulum images due to problems such as long imaging intervals, obvious background changes, noise and cloud interference.
By performing cloud discrimination and removal on bilateral forward and reverse scan images, performing sub-pixel level geometric registration, block classification and thin plate spline fitting, combined with the grayscale response difference suppression factor, frame difference operations are performed to extract moving targets.
It effectively reduces the influence of noise and geometric deformation, improves the robustness and accuracy of detection, and achieves high-precision moving target detection in the case of long imaging time intervals and the lack of multi-frame video sequences.
Smart Images

Figure CN118247587B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of space remote sensing technology and image processing, and specifically relates to a moving target detection method based on wide-width double-sided swing scanning images. Background Art
[0002] Moving object detection is an important task in the field of computer vision, which involves the process of identifying and tracking moving objects from image sequences or videos. Moving object detection technology has a wide range of applications in the fields of intelligent monitoring, multimedia applications, etc.
[0003] The core of moving target detection is to extract objects with spatial position changes as foregrounds and distinguish them from the background. For moving target detection, the mainstream methods include frame difference method, background subtraction method, optical flow method, etc. These methods are mainly used for moving target detection in image video sequence frames. The frame difference method is to perform grayscale difference on adjacent frames in the image sequence, and distinguish the background and moving foreground through the difference result by a pre-set threshold, so as to extract the target. This method is suitable for extracting moving targets from adjacent frame sequence images with slow background changes, and is easily affected by background changes and clutter; the background subtraction method is to obtain the latest background image by modeling the background and dynamically updating the background in real time, and use the current frame and the background image to perform difference operations to extract the moving target in the scene. The background subtraction method requires a large number of continuously shot video image sequences to realize background modeling; the optical flow method is to calculate the optical flow size and direction of each pixel point of the adjacent frames at a certain moment, and use the optical flow field equation to distinguish whether the image sequence in the scene is the background or the foreground moving target, and take the more obvious optical flow field area as the foreground in the scene, which requires a continuous image sequence for optical flow field calculation. Therefore, current moving target detection methods all require multi-frame video image sequences shot at high speed, or require slight changes in the image background to achieve moving target detection.
[0004] However, for wide-width and large-field-of-view bilateral scanning images, the imaging interval between adjacent images is long, the background changes of the positive and negative scanning images are obvious, and multi-frame video sequences cannot be provided. Therefore, traditional moving target detection methods are not feasible.
[0005] However, for wide-width and large-field-of-view bilateral swing-scan images, the imaging time interval between adjacent forward and reverse scan images is long, the imaging viewing angle of the same area changes significantly, and the grayscale and geometric differences between the forward and reverse scan images are significant. There is obvious noise in the frame difference result image directly obtained by frame difference, and the presence of moving clouds in the image will interfere with the detection of moving targets. Therefore, due to the interference of noise, clouds and other factors, the traditional frame difference method is difficult to achieve moving target detection.
[0006] Therefore, how to solve the interference of factors such as noise caused by non-uniform grayscale response, inability to achieve geometric alignment due to inconsistent local geometric deformation of wide-width and large-field-of-view bilateral scanning images, and background clutter in frame difference images caused by moving clouds on mobile target detection based on the frame difference method, and to provide a mobile target detection method based on the frame difference method suitable for wide-width and large-field bilateral scanning systems are technical problems that need to be urgently solved by those skilled in the art. Summary of the invention
[0007] The purpose of the present invention is to provide a moving target detection method based on wide-width double-sided swing scanning images in order to solve the problems in the prior art.
[0008] To this end, the above-mentioned purpose of the present invention is achieved through the following technical solutions:
[0009] A moving target detection method based on wide-width double-sided scanning images comprises the following steps:
[0010] S1, a wide-width double-sided swing-scan satellite imager swings back and forth to scan the ground, obtaining continuous double-sided forward and reverse scanning images of the same area;
[0011] S2, perform cloud discrimination on the forward and reverse scan images, and perform cloud detection and removal on the images that are judged to have clouds;
[0012] S3, performing sub-pixel geometric registration of the forward and reverse scan images, dividing and classifying the forward and reverse scan images obtained in step S2 with cloud effects eliminated, classifying the divided small images into sea surface sub-image blocks and land sub-image blocks, registering the land sub-image blocks, and performing image progressive splicing of the registered land sub-image blocks after reverse scanning to obtain the registered image of the reverse scan images;
[0013] S4, performing frame difference on the forward scan image registered in step S3 and the reverse scan image registered in step S3 to obtain a frame difference map of the forward scan image and the reverse scan image;
[0014] S5, performing moving target detection based on the frame difference map and the grayscale response difference suppression factor, and extracting the moving target result from the image.
[0015] While adopting the above technical solutions, the present invention may also adopt or combine the following technical solutions:
[0016] As a preferred technical solution of the present invention: in step S1, a wide-width double-sided sweep satellite imager is used to sweep the ground back and forth to obtain continuous forward and reverse sweep images of the same area. The orbital height of the satellite is H = 505 km, and the imaging width is , the ground resolution is D=30m, the satellite's subsatellite point linear velocity v=7.028km / s, for the bilateral swing imaging mode, the imaging period of a reciprocating scan is T=7.048s, based on the satellite orbit parameters and flight parameters, the imaging width of the overlapping area of a forward and reverse scan along the orbit direction is:
[0017]
[0018] in, is the vertical track width of the overlapped area of forward and reverse scanning, They are respectively the width of the overlapping area along the track on the left and right sides.
[0019] As a preferred technical solution of the present invention: in step S2, image cloud identification is performed, the forward and reverse scan images obtained in step S1 are read, the grayscale distribution is calculated, and a statistical histogram is drawn. When the histogram presents a "U"-shaped distribution, it is determined that the image contains clouds; when the histogram presents an "inverted V"-shaped distribution, it is determined that the image does not contain clouds; if the histogram horizontal coordinate interval is within the grayscale interval of [1200, 1800] and the vertical coordinate has a value, it is determined that there are clouds in the image; if the histogram horizontal coordinate interval is within the grayscale interval of [1200, 1800] and the vertical coordinate has no value, it is determined that there are no clouds in the image.
[0020] As a preferred technical solution of the present invention: in step S2, cloud detection and removal are performed on the image judged to have clouds through threshold segmentation, and the maximum inter-class variance method is used for threshold segmentation. The grayscale pixels of the grayscale histogram of the image are divided into two categories based on a certain threshold, and the inter-class variance of the two categories is calculated. The threshold is adjusted through continuous iteration so that the inter-class variance reaches a minimum value. The threshold corresponding to the minimum value is determined as the optimal threshold. Pixels below the optimal threshold are determined to be clouds, and their grayscale values are set to 0. Pixels above the optimal threshold are determined to be ground objects, and their original grayscale values are retained, thereby performing initial cloud segmentation on the image.
[0021] As a preferred technical solution of the present invention: Step S3 includes the following sub-steps:
[0022] S3.1, image segmentation, segmenting the cloud-free forward scan image and reverse scan image obtained in step S2 into multiple small images;
[0023] S3.2, dividing each small image into a sea surface sub-image block and a land sub-image block, and registering the land sub-image block;
[0024] S3.3, stitching the small images registered after backscanning, using a fade-in and fade-out image stitching method to eliminate image stitching seams, and obtain the registered image of the backscanned image, so that the whole image maintains coherence and consistency.
[0025] As a preferred technical solution of the present invention: Step S3.1 includes determining the block size and the overlapping area, calculating the number of blocks, dividing the image into blocks, and obtaining local block small images with overlapping areas. The size of the image after block division is a (pixel) * a (pixel), and the number of pixels in the overlapping area of adjacent small images is b (pixel). Assuming that the image size is m (pixel) * n (pixel), after block division, the image has M rows of small images and N columns of small images. The calculation formulas of M and N are:
[0026]
[0027] ceil means that the division is rounded up, that is, the edge of the image is less than The area is also saved as a separate thumbnail.
[0028] As a preferred technical solution of the present invention: in step 3.2, a binary classification model is established using a machine learning method to classify the small image into sea surface sub-image blocks and land sub-image blocks.
[0029] First, use the Gaussian function to fit the histogram. The Gaussian fitting function is as follows:
[0030]
[0031] Among them, x is the horizontal coordinate of the grayscale histogram, y is the vertical coordinate of the grayscale distribution histogram, A is the proportional coefficient, μ is the mean value, σ is the standard deviation,
[0032] According to the fitted Gaussian function, the logistic regression classification model is used to classify the small image into scenes to obtain the scene prediction value. The model prediction function is as follows:
[0033]
[0034] Among them, x is the input value of the logistic regression model, that is, the Gaussian function fitting coefficient σ of each input image block, is the predicted value, w,t are the parameters to be solved for the model,
[0035] In order to obtain the model parameters w, t, it is necessary to use cross entropy as the loss function, and use the gradient descent method to minimize the loss function, thereby obtaining the optimal value of the classification model parameters w, t. The loss function form is as follows:
[0036]
[0037] Among them, m is the number of input image blocks in the dataset, y i is the true value of the i-th image, the land sub-image block y takes the value of 1, and the sea sub-image block y takes the value of 0.
[0038] After classifying the image blocks through the logistic regression classification model, the land sub-image blocks are extracted and image registration is performed using thin plate spline transformation. The forward scan image and the reverse scan image of the land scene with cloud effects eliminated are registered. The forward scan image is used as the reference image and the reverse scan image is used as the image to be registered. First, SIFT feature points are extracted from the forward and reverse scan images, and then feature points are matched based on the Euclidean distance. The RANSAC method is used to eliminate mismatches in the feature point matching results to obtain the correctly matched control point pair. and , where n is the number of control point pairs. The extracted control point pairs of the forward and reverse scan images are used, and the thin plate spline transformation is used as the image transformation model. The forward scan image is used as the reference to perform geometric registration on the reverse scan image. By constructing a smooth transformation function , so that the feature points on the image to be registered Through the function Mapped to the reference image and the corresponding feature points on the reference image Full alignment, based on the obtained function , spatially transform each pixel on the reverse scan image, and the thin plate spline function for registration from the forward scan image to the reverse scan image is as follows:
[0039]
[0040] in, Characterize any point on the image to be registered (reverse scan image) and the i-th control point on the image The Euclidean distance, n is the number of control points, Represents the calculated coordinates of the corresponding points, that is:
[0041]
[0042] Among them, U is the radial basis function, and the function form is:
[0043] ,
[0044] is the parameter to be fitted of the x-direction mapping function, is the parameter to be fitted of the mapping function in the y direction, and the first term of the thin plate spline transformation is the affine transformation, that is, is the affine transformation coefficient, and the second term is the non-rigid image model related to the number of control points.
[0045] Substitute the control points on the forward and reverse scanned images into the thin plate spline function to obtain the image transformation equations for the x-coordinate and y-coordinate respectively:
[0046]
[0047] Combined with the three boundary conditions in the x direction:
[0048]
[0049] Three boundary conditions in the y direction:
[0050]
[0051] Finally, the x-direction coefficient of TPS thin plate spline transformation is obtained , and the y-direction coefficient ,
[0052] Based on the calculated thin plate spline transformation function, all pixels of the reverse scan image are transformed to obtain a reverse scan registration image based on the forward scan image;
[0053] As a preferred technical solution of the present invention: in step 3.3, the images of two adjacent regions are spliced, and the spliced image is divided into region 1, region 2 and region 3. The grayscale value of the spliced image is calculated as follows:
[0054]
[0055] Among them, area1 is area 1, area2 is area 2, and area3 is area 3. The pixel position of the stitched image The gray value at The small picture on the left before splicing The gray value at The small picture on the right before splicing The gray value at , t is the distance between the pixel to be calculated and the left seam, and bt is the distance between the pixel to be calculated and the right seam.
[0056] As a preferred technical solution of the present invention: in step S4, the forward scan image and the registered reverse scan image are subjected to frame difference to obtain a frame difference image of the forward and reverse scan images. :
[0057]
[0058] in, is the reverse scan image, This is the image after registration of the backscan image.
[0059] As a preferred technical solution of the present invention: in step S5, the grayscale response difference suppression factor λ is added to the decision condition of moving target detection, and the decision condition of whether the target is contained in the area to be detected is:
[0060]
[0061] in, is the maximum gray value of the pixel in the area to be detected, is the frame difference image after registration, D is the overlapping area of the forward scan image and the back scan image after registration, T is the threshold for judging whether there is a target, λ is the suppression factor of the grayscale response difference between modules, the larger the value of λ is, the stronger the suppression of the grayscale response difference between modules is, the smaller the value of λ is, the weaker the suppression is, N is the total number of pixels in the overlapping area, the pixels that meet the judgment conditions are the moving targets to be detected, and finally the judgment result of the moving target detection is obtained.
[0062] As a preferred technical solution of the present invention: in step S6, the detection result is determined by taking an airplane as an example of mobile target detection, and the detection result is compared with the software for real-time monitoring of airplanes in the air. If an airplane at a corresponding geographical location at a corresponding time can be found, the detection result is correct, otherwise the detection result is wrong.
[0063] Compared with the prior art, the present invention has the following beneficial effects: the present invention proposes a method for detecting moving targets in wide-width and large-field-of-view bilateral scanning images. Before registration, cloud detection is first performed on the forward and reverse scanning images, and these moving clouds are extracted and removed, thereby reducing their influence on the target detection in the frame difference image. In view of the local nonlinear geometric deformation existing in the wide-width bilateral scanning images, the present invention proposes a method based on local block thin plate spline fitting, which blocks the image based on scene characteristics, removes uniform sea surface scene image blocks, and independently performs thin plate spline fitting on land scene image blocks to achieve registration based on thin plate spline fitting for local areas, effectively eliminating local geometric deformation, and improving the algorithm efficiency of the traditional thin plate spline fitting method through image blocking. Finally, a grayscale response difference suppression factor is introduced, which helps to balance the grayscale differences in different areas, so that the registered image is more consistent in grayscale, thereby eliminating the noise caused by uneven grayscale response. The present invention discloses a method for detecting moving targets using wide-width and large-field-of-view bilateral swing-scan images, which combines the flexibility of local processing with the consistency of the global model. At the same time, by eliminating uniform sea surface scene image blocks through scene segmentation, the amount of data actually calculated is reduced, and the algorithm efficiency of the traditional thin plate spline fitting method is improved. This method can achieve higher-precision image registration and effectively solve the challenges brought about by local nonlinear geometric deformation of wide-width bilateral swing-scan images.
[0064] The present invention discloses a moving target detection method based on wide-width bilateral swinging images. While maintaining the imaging advantages of wide-width imaging capability and high-resolution image acquisition of wide-width bilateral swinging images, cloud extraction and removal, sub-pixel geometric alignment based on thin plate spline fitting and introduction of a grayscale response difference suppression factor are utilized to improve the robustness and accuracy of the moving target detection method based on wide-width bilateral swinging images in the face of challenges such as long imaging time intervals, background changes and lack of multi-frame video sequences. In addition, the use of wide-width bilateral images effectively improves the efficiency of moving target detection compared with narrow-width images. The invention has great application prospects in the fields of space remote sensing technology and image processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a flow chart of a moving target detection method based on wide-width double-sided swing scanning images of the present invention;
[0066] Figure 2 It is a schematic diagram of the overlapping area of a forward and reverse scanning imaging in the track direction in the present invention;
[0067] Figure 3 This is a schematic diagram of grayscale histogram distribution of a remote sensing image with clouds according to the present invention;
[0068] Figure 4 Schematic diagram of grayscale histogram distribution of cloud-free remote sensing image of the present invention;
[0069] Figure 5 Schematic diagram of the image segmentation strategy in step S3 of the present invention;
[0070] Figure 6 This is a schematic diagram of image registration using thin plate spline transformation in the present invention;
[0071] Figure 7 This is a schematic diagram of the overlapping areas of the images of area 1, area 2, and area 3 in the present invention. DETAILED DESCRIPTION
[0072] The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
[0073] Example 1
[0074] The present invention provides a moving target detection method based on wide-width double-sided scanning images, and a moving target detection method based on double-sided scanning images, such as Figure 1 As shown, the following steps are included:
[0075] S1, obtain continuous bilateral scanning images of the same area.
[0076] Through the reciprocating sweep imaging of the ground by the wide-width double-sided sweep satellite imager, continuous forward and reverse sweep images of the same area can be obtained. The orbit altitude of the satellite is H = 505km, and the imaging width is , the ground resolution is D = 30m, the satellite's subsatellite point linear velocity v = 7.028km / s, for the bilateral swing imaging mode, the imaging period of a reciprocating scan is T = 7.048s. Based on the satellite orbit parameters and flight parameters, the overlap area of a forward and reverse scan along the orbit direction is as follows Figure 2 As shown in the middle trapezoidal area.
[0077] The imaging width of the overlapping area is:
[0078]
[0079] in, is the vertical track width of the overlapped area of forward and reverse scanning, are the widths of the overlapping area along the track on the left and right sides respectively. It is calculated that the widths along the track are 60km and 8km respectively. Figure 1 As shown, the overlap area of the forward and reverse scanning imaging is relatively large, and rapid detection of moving targets can be achieved in the relatively large overlap area.
[0080] S2, cloud detection and removal in continuous forward and reverse scanning images.
[0081] Since clouds move in a short period of time, they interfere with the detection of moving targets, so cloud detection and removal are required.
[0082] S2.1, Image cloud identification.
[0083] Draw a statistical histogram for the forward and reverse scan images obtained in the first step, and plot the number of pixels corresponding to the grayscale value of each pixel in the image. When the image contains clouds, the histogram is roughly "U"-shaped, that is, it contains two peaks, and the grayscale values of the histogram are mainly distributed in [1200, 2400]. Figure 3 When there is no cloud in the histogram, the histogram roughly presents an "inverted V" distribution, that is, the histogram contains only one peak, and the grayscale values are mainly distributed in [1800, 2400]. Figure 4 Take the example of . According to whether the horizontal coordinate of the histogram has a value in the grayscale interval [1200,1800], the image is divided into a cloud image and a cloudless image. If the vertical coordinate has a value in the coordinate interval [1200,1800], the image is classified as a cloud image. If there is no value in the coordinate interval [1200,1800], the image is classified as a cloudless image.
[0084] S2.2,Threshold segmentation and cloud extraction.
[0085] Through threshold segmentation, cloud detection and removal are performed on the forward and reverse scanning thermal infrared images with cloud detection results. Thermal infrared images reflect the surface temperature of objects. The higher the surface temperature, the brighter the grayscale value of the corresponding image. Since the cloud layer is located in the high-altitude atmosphere, the temperature is significantly lower than the surface land and water bodies. This characteristic is used for threshold segmentation. The maximum inter-class variance method is used for threshold segmentation. Based on a certain threshold, the grayscale pixels of the grayscale histogram of the image are divided into two categories, and the inter-class variance of the two categories is calculated. Through continuous iteration, the inter-class variance reaches a minimum value, thereby obtaining the threshold. Pixels below the threshold are considered to be clouds, and pixels above the threshold are considered to be ground objects. The image is initially segmented for clouds, and the grayscale values of all pixels in cloud scenes are set to 0.
[0086] S3, high-precision registration of forward and reverse scan images.
[0087] S3.1 Image segmentation.
[0088] Image registration is performed on the forward scan image and the reverse scan image to eliminate the cloud effect. Considering the large size of the image, it is difficult to establish a global transformation model. The image is divided into blocks to obtain local block images with overlapping areas. The size of the image after block division is a (pixel) * a (pixel), and the number of pixels in the overlapping area of adjacent small images is b (pixel). The block diagram is shown in the figure. Figure 5 As shown. Assuming the image size is m(pixel)*n(pixel), after partitioning, the image has M rows of small images and N columns of small images. The calculation formulas for M and N are:
[0089]
[0090] ceil means that the division is rounded up, that is, the edge of the image is less than The area is also saved as a separate thumbnail.
[0091] S3.2 Thin plate spline registration of block images.
[0092] A binary classification model is established using machine learning methods to classify the small images into sea surface sub-image blocks and land sub-image blocks.
[0093] First, use the Gaussian function to fit the histogram. The Gaussian fitting function is as follows:
[0094]
[0095] Among them, x is the horizontal coordinate of the grayscale histogram, y is the vertical coordinate of the grayscale distribution histogram, A is the proportional coefficient, μ is the mean value, σ is the standard deviation,
[0096] According to the fitted Gaussian function, the logistic regression classification model is used to classify the small image into scenes to obtain the scene prediction value. The model prediction function is as follows:
[0097]
[0098] Among them, x is the input value of the logistic regression model, that is, the Gaussian function fitting coefficient σ of each input image block, is the predicted value, w,t are the parameters to be solved for the model,
[0099] In order to obtain the model parameters w, t, it is necessary to use cross entropy as the loss function, and use the gradient descent method to minimize the loss function, thereby obtaining the optimal value of the classification model parameters w, t. The loss function form is as follows:
[0100]
[0101] Among them, m is the number of input image blocks in the dataset, y i is the true value of the i-th image, the land sub-image block y takes the value of 1, and the sea sub-image block y takes the value of 0.
[0102] After classifying the image blocks through the logistic regression classification model, the land sub-image blocks are extracted and image registration is performed using thin plate spline transformation. The forward scan image and the reverse scan image of the land scene with cloud effects eliminated are registered. The forward scan image is used as the reference image and the reverse scan image is used as the image to be registered. First, SIFT feature points are extracted from the forward and reverse scan images, and then feature points are matched based on the Euclidean distance. The RANSAC method is used to eliminate mismatches in the feature point matching results to obtain the correctly matched control point pair. and , where n is the number of control point pairs. Using the extracted control point pairs of the forward and reverse scan images, the thin plate spline transformation is used as the image transformation model, and the forward scan image is used as the reference to perform geometric registration on the reverse scan image. By constructing a smooth transformation function , so that the feature points on the image to be registered Through the function Mapped to the reference image and the corresponding feature points on the reference image Perfect alignment, such as Figure 6 As shown. Based on the obtained function , perform spatial transformation on each pixel on the reverse scan image. The form of the thin plate spline function for registration from the forward scan image to the reverse scan image is as follows:
[0103]
[0104] in, Characterize any point on the image to be registered (reverse scan image) and the i-th control point on the image The Euclidean distance, n is the number of control points, Represents the calculated coordinates of the corresponding points, that is:
[0105]
[0106] Among them, U is the radial basis function, and the function form is:
[0107] ,
[0108] is the parameter to be fitted of the x-direction mapping function, is the parameter to be fitted of the mapping function in the y direction. The first term of the thin plate spline transformation is the affine transformation, that is, is the affine transformation coefficient, and the second term is the non-rigid image model related to the number of control points.
[0109] Substitute the control points on the forward and reverse scanned images into the thin plate spline function to obtain the image transformation equations for the x-coordinate and y-coordinate respectively:
[0110]
[0111] Combined with the three boundary conditions in the x direction:
[0112]
[0113] Three boundary conditions in the y direction:
[0114]
[0115] Finally, the x-direction coefficient of TPS thin plate spline transformation is obtained , and the y-direction coefficient .
[0116] Based on the calculated thin plate spline transformation function, all pixels of the back-scanned image are transformed to obtain a back-scanned registration image based on the forward-scanned image.
[0117] S3.3 Image stitching.
[0118] The images registered after backscanning are stitched using a fade-in and fade-out image stitching method to eliminate the image stitching seams. The images of two adjacent areas are stitched and the stitched images are divided into area 1 (area1), area 2 (area2), and area 3 (area3). The grayscale value of the stitched image is calculated as follows:
[0119]
[0120] Among them, area 1, area 2, and area 3 are as follows Figure 7 As shown. The pixel position of the stitched image The gray value at The small picture on the left before splicing The gray value at The small picture on the right before splicing The gray value at , t is the distance between the pixel to be calculated and the left stitching seam, and bt is the distance between the pixel to be calculated and the right stitching seam. The registered image of the backscan image is obtained by splicing the small images registered after backscanning.
[0121] S4, obtaining the frame difference image of the forward and reverse scans.
[0122] Perform frame difference between the forward scan image and the registered reverse scan image to obtain the frame difference map of the forward and reverse scan images. :
[0123]
[0124] in, is the reverse scan image, This is the image after registration of the backscan image.
[0125] As a preferred technical solution of the present invention: in step S5, the grayscale response difference suppression factor λ is added to the decision condition of moving target detection, and the decision condition of whether the target is contained in the area to be detected is:
[0126] S5. Moving target detection based on frame difference image.
[0127] Theoretically, the grayscale value of the pixel in the non-target area of the frame difference image is 0, and all areas with non-zero grayscale in the frame difference image are moving targets. However, due to the non-uniformity of the response between modules, there are differences in the grayscale values between modules, that is, the grayscale response of the forward scan image and the reverse scan image is uneven, and the grayscale value of the pixel in the non-target area of the frame difference image is not 0, which is easy to interfere with target detection. To address this problem, the grayscale response difference suppression factor λ is added to the decision condition of mobile target detection. The decision condition for whether the target is contained in the area to be detected is (λ is obtained through experience):
[0128]
[0129] in, is the frame difference image after registration, D is the overlapping area of the forward scan image and the reverse scan image after registration, T is the threshold for judging whether there is a target, λ is the suppression factor of the grayscale response difference between modules, the larger the value of λ, the stronger the suppression of the grayscale response difference between modules, the smaller the value of λ, the weaker the suppression, and N is the total number of pixels in the overlapping area. The pixels that meet the judgment conditions are the moving targets to be detected. Finally, the judgment result of the moving target detection is obtained.
[0130] Among them, T and λ are obtained through multi-scene image training. 100 scenes with moving targets are selected for forward and reverse scans for registration and frame difference. By selecting different thresholds T and suppression factors λ, the targets are selected. Finally, the corresponding threshold and suppression factor with the lowest target missed detection rate are selected as the optimal parameter values.
[0131] The present invention discloses a moving target detection method based on wide-width bilateral swing-scan images, which eliminates the influence of cloud occlusion in single-frame images by using an improved cloud detection and removal algorithm, corrects the nonlinear deformation existing in local areas by image segmentation and sub-image registration, and adopts a thin plate spline fitting method, thereby solving the image geometric deformation caused by the different imaging modes of forward and reverse scanning images for bilateral swing-scan images, effectively correcting the non-rigid geometric deformation of the entire scene image, and realizing high-precision geometric registration for large-field swing-scan images with complex imaging models and complex geometric deformations, thereby providing sub-pixel-level geometrically registered images for subsequent frame difference and moving target detection.
[0132] The above-mentioned specific implementation methods are used to explain the present invention and are only preferred embodiments of the present invention, rather than limiting the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit of the present invention and the protection scope of the claims shall fall within the protection scope of the present invention.
Claims
1. A moving target detection method based on wide-width bilateral scanning images, comprising the following steps: S1, a wide-width double-sided swing-scan satellite imager swings back and forth to scan the ground, obtaining continuous double-sided forward and reverse scanning images of the same area; S2, perform cloud discrimination on the forward and reverse scan images, and perform cloud detection and removal on the images that are judged to have clouds; S3, performing sub-pixel geometric registration of the forward and reverse scan images, dividing and classifying the forward and reverse scan images obtained in step S2 with cloud effects eliminated, classifying the divided small images into sea surface sub-image blocks and land sub-image blocks, registering the land sub-image blocks, and performing image progressive splicing of the registered land sub-image blocks after reverse scanning to obtain the registered image of the reverse scan images; S4, performing frame difference on the forward scan image and the reverse scan image registered in step S3 to obtain a frame difference map of the forward scan image and the reverse scan image; S5, performing moving target detection based on the frame difference map and the grayscale response difference suppression factor, and extracting the moving target result from the image; Step S3 includes the following sub-steps: S3.1, image segmentation, segmenting the cloud-free forward scan image and reverse scan image obtained in step S2 into multiple small images; S3.2, each small image is divided into a sea surface sub-image block and a land sub-image block, and the land sub-image block is registered; S3.3, the small images registered after backscanning are stitched, and the image stitching method of fading in and out is used to stitch them to eliminate the image stitching seams, so as to obtain the registered image of the backscanned image, and the whole image maintains coherence and consistency. In step 3.2, a binary classification model is established using machine learning methods to classify the small images into sea surface sub-image blocks and land sub-image blocks. First, use the Gaussian function to fit the histogram. The Gaussian fitting function is as follows: Among them, x is the horizontal coordinate of the grayscale histogram, y is the vertical coordinate of the grayscale distribution histogram, A is the proportional coefficient, μ is the mean value, σ is the standard deviation, According to the fitted Gaussian function, the logistic regression classification model is used to classify the small image into scenes to obtain the scene prediction value. The model prediction function is as follows: Among them, x is the input value of the logistic regression model, that is, the Gaussian function fitting coefficient σ of each input image block, f w,t (x) is the predicted value, w, t are the parameters to be solved for the model, In order to obtain the model parameters w, t, it is necessary to use cross entropy as the loss function, and use the gradient descent method to minimize the loss function, thereby obtaining the optimal values of the classification model parameters w, t. The loss function form is as follows: Among them, m is the number of input image blocks in the dataset, y i is the true value of the i-th image, the land sub-image block y takes the value of 1, and the sea sub-image block y takes the value of 0. After classifying the image blocks through the logistic regression classification model, the land sub-image blocks are extracted and image registration is performed using thin plate spline transformation. The forward scan image and the reverse scan image of the land scene with cloud effects eliminated are image registered. The forward scan image is used as the reference image and the reverse scan image is used as the image to be registered. First, SIFT feature points are extracted from the forward and reverse scan images, and then feature points are matched based on the Euclidean distance. The RANSAC method is used to eliminate mismatches in the feature point matching results to obtain the correctly matched control point pair P(x i ,y i ) and N(x i ′,y i ′)(i=1,2,...,n), where n is the number of control point pairs. The extracted control point pairs of the forward and reverse scan images are used, and the thin plate spline transformation is used as the image transformation model. The forward scan image is used as the reference to perform geometric registration on the reverse scan image. By constructing a smooth transformation function f(x,y), the feature point N(x i ′,y i ′) is mapped to the reference image through the function f(x,y) and is compared with the corresponding feature point P(x i ,y i ) are completely aligned, and based on the obtained function f(x, y), each pixel on the reverse scan image is spatially transformed. The form of the thin plate spline function for registration from the forward scan image to the reverse scan image is as follows: Among them, r i Represents the relationship between any point (x, y) on the image to be registered and the i-th control point (x i ,y i ), n is the number of control points, (x′, y′) represents the calculated coordinates of the corresponding points, that is: Among them, U is the radial basis function, and the function form is: a 1x ,a 2x ,a 3x ,w 1x ,w 2x ,...,w nx is the parameter to be fitted of the x-direction mapping function, a 1y ,a 2y ,a 3y ,w 1y ,w 2y ,...,w ny is the parameter to be fitted of the mapping function in the y direction. The first term of the thin plate spline transformation is the affine transformation, that is, a 1x ,a 2x ,a 3x a 1y ,a 2y ,a 3y is the affine transformation coefficient, the second term is the non-rigid image model related to the number of control points, Substitute the control points on the forward and reverse scanned images into the thin plate spline function to obtain the image transformation equations for the x-coordinate and y-coordinate respectively: Combined with the three boundary conditions in the x direction: Three boundary conditions in the y direction: Finally, the x-direction coefficient a of the TPS thin plate spline transformation is obtained 1x ,a 2x ,a 3x ,w 1x ,w 2x ,...,w nx , and the y-direction coefficient a 1y ,a 2y ,a 3y ,w 1y ,w 2y ,...,w ny , Based on the calculated thin plate spline transformation function, all pixels of the back-scanned image are transformed to obtain a back-scanned registration image based on the forward-scanned image.
2. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: In step S1, the orbit height of the wide-width bilateral swing-scan satellite imager is H=505km, the imaging width is w×h=300km×60km, the ground resolution is D=30m, the flying subsatellite point linear velocity v=7.028km / s, and in the bilateral swing-scan imaging, the imaging period of a reciprocating scan is T=7.048s. Based on the satellite orbit parameters and flight parameters, the imaging width of the overlapping area of a forward and reverse scan imaging along the orbit direction is: w′=w a=h Wherein, w′ is the vertical track width of the overlapped area of the forward and reverse scans, and a and b are the track widths of the overlapped area on the left and right sides, respectively.
3. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: In step S2, the image cloud is identified by reading the forward and reverse scan images obtained in step S1, calculating the grayscale distribution, and drawing a statistical histogram. When the histogram presents a "U"-shaped distribution, it is determined that the image contains clouds. When the histogram presents an "inverted V"-shaped distribution, it is determined that the image does not contain clouds. If the horizontal coordinate interval of the histogram is within the grayscale interval of [1200, 1800] and the vertical coordinate has a value, it is determined that there are clouds in the image. If the horizontal coordinate interval of the histogram is within the grayscale interval of [1200, 1800] and the vertical coordinate has no value, it is determined that there are no clouds in the image.
4. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 2, characterized in that: In step S2, cloud detection and removal are performed on the image judged to have clouds through threshold segmentation, and the maximum inter-class variance method is used for threshold segmentation. The grayscale pixels of the grayscale histogram of the image are divided into two categories based on a certain threshold, and the inter-class variance of the two categories is calculated. The threshold is adjusted through continuous iteration so that the inter-class variance reaches a minimum value. The threshold corresponding to the minimum value is determined as the optimal threshold. Pixels below the optimal threshold are determined to be clouds, and their grayscale values are set to 0. Pixels above the optimal threshold are determined to be ground objects, and their original grayscale values are retained, thereby performing initial cloud segmentation on the image.
5. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: Step S3.1 includes determining the block size and overlapping area, calculating the number of blocks, dividing the image into blocks, and obtaining local block images with overlapping areas. The size of the image after block division is a (pixel) * a (pixel), and the number of pixels in the overlapping area of adjacent small images is b (pixel). Assuming that the image size is m (pixel) * n (pixel), after block division, the image has M rows of small images and N columns of small images. The calculation formulas for M and N are: ceil means rounding up the division, that is, the area on the edge of the image that is smaller than a×a is also saved as a separate small image.
6. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: In step 3.3, the images of two adjacent regions are spliced, and the spliced image is divided into region 1, region 2 and region 3. The grayscale value of the spliced image is calculated as follows: Where area1 is area 1, area2 is area 2, and area3 is area 3. I′(x, y) is the grayscale value of the image at the pixel position (x, y) after stitching, I1(x, y) is the grayscale value of the left small image at (x, y) before stitching, I2(x, y) is the grayscale value of the right small image at (x, y) before stitching, t is the distance between the pixel to be calculated and the left stitching seam, and bt is the distance between the pixel to be calculated and the right stitching seam.
7. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: In step S4, the forward scan image and the registered reverse scan image are subjected to frame difference to obtain a frame difference image I of the forward and reverse scan images. diff : I diff =I P -I N ′ Among them, I P is the reverse scan image, I N ′ is the image after registration of the back scan image.
8. The moving target detection method based on wide-width double-sided scanning images as claimed in claim 1, characterized in that: In step S5, the grayscale response difference suppression factor λ is added to the decision condition of moving target detection, and the decision condition of whether the target is contained in the area to be detected is: Among them, Max (x,y) is the maximum gray value of the pixel in the area to be detected, I diff is the frame difference image after registration, D is the overlapping area of the forward scan image and the back scan image after registration, T is the threshold for judging whether there is a target, λ is the suppression factor of the grayscale response difference between modules, the larger the value of λ is, the stronger the suppression of the grayscale response difference between modules is, the smaller the value of λ is, the weaker the suppression is, N is the total number of pixels in the overlapping area, the pixels that meet the judgment conditions are the moving targets to be detected, and finally the judgment result of the moving target detection is obtained.
