A method for image stabilization of ground-based telescopes based on kernel correlation filtering
The method based on kernel correlation filtering and weighted centroid algorithm solves the problem of complexity and insufficient applicability of ground-based telescope image stabilization methods, achieves improved image stability and reduced cost, and is suitable for most telescope principles and environments.
Patent Information
- Application Number
- CN202410760756.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The existing image stabilization methods for ground-based telescopes have complex structures, high design and modification costs, high technical and knowledge requirements, and cannot be applied to telescopes with different principles and application environments, making it difficult to effectively solve the image jitter problem.
A ground-based telescope image stabilization method based on kernel correlation filtering is adopted. The kernel correlation filter algorithm extracts feature areas and the weighted centroid algorithm calculates centroid coordinates to achieve image cropping and image stabilization. It does not rely on mechanical structures and electronic components. It has strong applicability and is easy to use. Applicable to most principles and application environments.
It reduces the economic cost, simplifies the application process, is suitable for most ground-based telescopes, improves image stability, significantly reduces the jitter of the target in the image, and is suitable for old equipment without modification.
Smart Images

Figure CN118334063B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ground-based telescope image processing, and specifically provides a ground-based telescope image stabilization method based on kernel correlation filtering. Background Art
[0002] There are many guidance methods for ground-based telescopes, such as theoretical orbit guidance, external guidance, and miss distance closed-loop guidance. When using a telescope to track a target, the azimuth and elevation values of the guidance source for the telescope will fluctuate within a certain error range of the target's actual trajectory, causing the target to shake significantly in the image. Whether the target is stable in the image depends on whether the telescope's guidance trajectory is smooth and accurate. When using external guidance, the accuracy of the telescope's guidance trajectory is related to factors such as the tracking accuracy of the main guidance device and network jitter. When using miss distance closed-loop guidance, the accuracy of miss distance extraction will affect the guidance stability. In addition to image jitter caused by telescope guidance factors, weather factors such as atmospheric disturbances are also important causes of image jitter.
[0003] The existing image stabilization methods for ground-based telescopes are relatively complex in structure, with high design and modification costs, and require high technical and knowledge levels of the modification implementation units. In addition, due to different design principles and application scenarios, some telescopes cannot be applied to the existing image stabilization methods. Therefore, the image stabilization methods for ground-based telescopes need to be improved. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a ground-based telescope image stabilization method based on kernel correlation filtering, which does not rely on the mechanical structure of the equipment, has low requirements on computers, and does not need to consider factors such as the principles of ground-based telescopes and the application environment. It has strong applicability, simple application, and adopts an open source algorithm, which is mature and stable.
[0005] The present invention provides a ground-based telescope image stabilization method based on kernel correlation filtering, comprising:
[0006] S1: Set the crop size of the cropped image as follows: The width of the cropped image is , the cropped image height size is ;
[0007] S2: Get the first frame image, select the target area and the feature area corresponding to the target area of the first frame image, if the selection fails, select the target area and the feature area corresponding to the target area of the next frame image until the selection is successful, and the successfully selected image is called the first frame image. frame image; according to The characteristic area of the frame image is obtained by the kernel correlation filtering algorithm. Feature model corresponding to the feature area of the frame image;
[0008] For the first frame to the The frame image is cropped in the center to obtain a cropped image of a preset size and output it to a display module;
[0009] S3: Get the Frame image, according to The feature model of the feature area in the frame image is obtained through the kernel correlation filtering algorithm. The target area of the frame image and the feature area corresponding to the target area; the kernel correlation filtering algorithm The feature model of the feature area of the frame image is updated to The feature model of the feature area of the frame image, where Indicates the image frame sequence number, and Value greater than ;
[0010] S4: Calculate the weighted centroid algorithm The centroid coordinates of the feature area of the frame image are The centroid coordinates of the feature area of the frame image are relative to the The offset of the centroid coordinates of the feature area of the frame image is calculated The starting position coordinates of the cropping area of the frame image are based on the The starting position coordinates of the cropping area of the frame image are The frame image is cropped to obtain a cropped image of a preset size and output it to the display module.
[0011] Preferably, the cropping method for center cropping is as follows:
[0012] ;
[0013] ;
[0014] in, Indicates the number of pixel columns cropped from the left side of the image. Indicates the number of pixel columns cropped from the right side of the image. , Indicates the number of pixel rows cropped from the top of the image, Indicates the number of pixel rows cropped from the bottom of the image, .
[0015] Preferably, the weighted centroid algorithm is used to The centroid coordinates of the feature area of the frame image are calculated as follows:
[0016] ;
[0017] ;
[0018] in, Indicates The centroid position coordinates of the feature area of the frame image, Indicates The set of all pixels in the feature area of the frame image, Representing a collection The coordinates of any pixel within Indicates In the frame image The grayscale value of the pixel at position.
[0019] Preferably, calculate The theoretical value of the starting position coordinates of the cropping area of the frame image is calculated as follows:
[0020] ;
[0021] ;
[0022] in, Indicates The theoretical value of the starting position coordinates of the cropping area of the frame image. Indicates The starting position coordinates of the cropping area of the frame image, Indicates The centroid position coordinates of the feature area of the frame image.
[0023] Preferably, it also includes The theoretical value of the starting position coordinates of the cropping area of the frame image Perform cropping out-of-bounds judgment and determine the first The starting position coordinates of the cropping area of the frame image are:
[0024] ;
[0025] ;
[0026] in, Indicates The starting position coordinates of the cropping area of the frame image, Indicates The image width of the frame image, Indicates Image height of the frame image.
[0027] Compared with the prior art, the present invention can achieve the following beneficial effects:
[0028] The existing ground-based telescope image stabilization method has a relatively complex structure and cannot be applied to all ground-based telescopes with different principles and application environments. In addition, if it is to be applied to existing equipment, it requires a high level of knowledge from the operator.
[0029] The method of the present invention adopts a kernel correlation filtering algorithm to extract feature regions, and adopts a weighted centroid algorithm to calculate the centroid of feature regions. Both algorithms adopted are open source algorithms, which are mature, stable, and easy to apply. Users can develop and deploy them in a shorter time. At the same time, the method of the present invention does not rely on any mechanical structure and electronic components, and can be directly added to old equipment without the need to modify or replace the old equipment, thereby greatly reducing economic costs. The method is suitable for ground-based telescopes of most principles and application environments, and has good versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flow chart of a method of the present invention provided according to an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of the size of image cropping using the method of the present invention provided according to an embodiment of the present invention;
[0032] Figure 3 It is a test diagram for verifying the method of the present invention provided according to an embodiment of the present invention;
[0033] Figure 4 is a target jitter curve diagram before applying the method of the present invention to image stabilization according to an embodiment of the present invention;
[0034] Figure 5 is a target jitter curve diagram after image stabilization using the method of the present invention provided in an embodiment of the present invention; DETAILED DESCRIPTION
[0035] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same modules are represented by the same reference numerals. In the case of the same reference numerals, their names and functions are also the same. Therefore, the detailed description thereof will not be repeated.
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.
[0037] When using a ground-based telescope to track the motion trajectory of a target, multiple frames of images can be obtained, such as Figure 1 As shown, the present invention provides a ground-based telescope image stabilization method based on kernel correlation filtering, the specific contents are as follows:
[0038] S1: When using a ground-based telescope to track the motion trajectory of a target, multiple frames of images will be obtained. In order to solve the problem of image target jitter, the obtained multiple frames of images need to be cropped. The user sets the size of the cropped image according to the cropping requirements. In this embodiment of the present invention, Indicates the width size of the cropped image. Indicates the height size of the cropped image, such as Figure 2 As shown in FIG. 1 , the above-mentioned cropped image refers to the image remaining after cropping the image obtained by the ground-based telescope, that is, Figure 2 The middle area is located in the middle of the image.
[0039] S2: After obtaining the first frame image, the target area of the first frame image and the feature area corresponding to the target area need to be selected. The target area is the area containing the target image and needs to be cropped. The feature area is a sub-image of the target area. A part of the target area with obvious features can be selected as the feature area. The feature area can be used as a referential image of the target area. When the tracked target is very small, the target area will also be marked very small accordingly. At this time, the target area and its corresponding feature area can be the same image. After selecting the target area and its corresponding feature area, the feature model of the feature area in the first frame image is obtained based on the feature area through the kernel correlation filtering algorithm. The target area of the first frame image and its corresponding feature area can be selected by manual recognition method, and then the feature model of the feature area of the first frame image is obtained based on the selected feature area of the first frame image through the kernel correlation filtering algorithm. This feature model can be used as the basis for selecting the target area and its corresponding feature area of the second frame image. It should be noted here that if the manual selection of the target area and its feature area for the first frame fails, the same selection operation is performed on the next frame image until a certain frame image is successfully selected. In the embodiment of the present invention, this frame image is referred to as the first frame image. Frame image. The first frame image to the The frame images are cropped using the center cropping method, such as Figure 2 As shown, the specific cropping dimensions for center cropping are as follows:
[0040] ;
[0041] ;
[0042] in, Indicates the number of pixel columns cropped from the left side of the image. Indicates the number of pixel columns cropped from the right side of the image. , Indicates the number of pixel rows cropped from the top of the image, Indicates the number of pixel rows cropped from the bottom of the image, After the cropping is completed, the corresponding cropped image is output to the display module.
[0043] In the actual cutting process, and The value of is not only related to the jitter amplitude of the target in the field of view, but also to the guidance accuracy of the ground-based telescope and the field of view of the imaging system. If the target jitter amplitude is small, then and The value of should also be small. If the target jitter amplitude is large, then and The value of should also be larger; if and If the value is too small, the image stabilization effect will not be obvious. and If the value of is too large, it will cause serious loss of field of view. After summarizing a large amount of experimental data, it is usually and When the value of satisfies the following formula, the optimal cropped image can be obtained:
[0044] ;
[0045] ;
[0046] in, Indicates the width of the image obtained by the ground-based telescope. Indicates the height size of the image obtained by the ground-based telescope. The width size of the above cropped image and crop image height size The value of is a fixed value, and there is and If true, then we can use the size of the target in the image and , Determine the optimal value range of , and , The final value of .
[0047] S3: Except for the front In addition to the frame image, any other frame image obtained by the ground-based telescope is referred to as the first frame image in the embodiment of the present invention. frame image, the corresponding cropped image is called Frame cropped image, Indicates the frame number sequence number of the image and Value greater than , then The frame image is The previous frame of the frame image, The frame image is The frame image after the frame image.
[0048] The images acquired by the ground-based telescope are continuous images, so the target areas in two adjacent frames are closest, and the corresponding feature areas are also closest. After the frame image, according to the The feature model of the feature area corresponding to the target area in the frame image is extracted through the kernel correlation filtering algorithm. The target area of the frame image and the feature area corresponding to the target area, and the The feature model in the frame image is updated to The feature model of the frame image is updated and trained to extract the first When the target area and feature area of the frame image are detected, the feature model based on it is the most accurate. The kernel correlation filtering algorithm is an open source algorithm, and its specific processing process and principle are common existing technologies.
[0049] S4: Extract After the feature area of the frame image is obtained, the weighted centroid algorithm is used to calculate the The centroid coordinates of the feature area of the frame image are calculated as follows:
[0050] ;
[0051] ;
[0052] in, Indicates The centroid position coordinates of the feature area of the frame image, Indicates The set of all pixels in the feature area of the frame image, Representing a collection The coordinates of any pixel within Indicates In the frame image The grayscale value of the pixel at position.
[0053] The starting coordinates of the clipping area are calculated based on the centroid coordinates, and then how to clip is determined. The theoretical calculation formula for the starting coordinates of the clipping area is as follows:
[0054] ;
[0055] ;
[0056] in, Indicates The theoretical value of the starting position coordinates of the cropping area of the frame image. Indicates The starting position coordinates of the cropping area of the frame image, Indicates The centroid position coordinates of the feature area of the frame image.
[0057] like Figure 2 As shown, the embodiment of the present invention uses Indicates the starting position coordinates of the clipping area. Can the specific value of be the theoretical value of the starting position coordinates? , it is also necessary to perform a clipping out-of-bounds judgment, and determine the first The starting position coordinates of the cropping area of the frame image are:
[0058] ;
[0059] ;
[0060] According to the above judgment method, the starting position coordinates of the clipping area can be clearly determined. The final value of Figure 2 As shown, the starting position coordinates are clear After taking the value of Width of the frame image and the width dimension of the cropped image , the number of cropped pixel columns can be calculated and The value of The height of the frame image and the height dimension of the cropped image , the number of cropped pixel rows can be calculated and , and then perform the Frame image cropping to obtain the first The frame is cropped and output to the display module.
[0061] In the actual image stabilization process, the data obtained by the ground-based telescope is a continuous video containing multiple frames of images. Image cropping is performed synchronously while acquiring the video, and the cropped image is output to the display module to achieve real-time image stabilization. However, not all frames of images need to be stabilized. Users can start stabilization from a certain frame of image according to actual needs.
[0062] It is known that all cropped images can be completely displayed in the display module. The embodiment of the present invention fixes the centroid coordinates of the feature area at the same position of the display module while ensuring that the cropped image is displayed as a whole in the display module. When the centroid position coordinates are fixed at the same position of the display module, the corresponding feature area is fixed at the same position of the display module, and then the target area is fixed at the same position of the display module, thereby achieving an image stabilization effect.
[0063] In order to verify the effectiveness of the cutting method of the present invention, the following verification experiments were also carried out:
[0064] Use ground-based telescopes to track civil aircraft in flight and obtain multiple frames of images, such as Figure 3 As shown in the figure, the image area corresponding to the aircraft is the target area, and the area in the frame is the feature area corresponding to the target area. The method of the present invention is verified by using this target area and its corresponding feature area. Figure 4 As shown in the figure, with the number of image frames obtained by the ground-based telescope as the horizontal axis, the jitter amplitude of the multiple frames of images obtained by the ground-based telescope in succession is relatively large on a single axis (azimuth or elevation), with the maximum being as high as 40 pixels. Figure 5 As shown, with the number of image frames obtained by the ground-based telescope as the horizontal coordinate, after the method of the present invention is used for image stabilization, the jitter amplitude of the single axis (azimuth or pitch) is significantly reduced with the number of frames, and the maximum jitter amplitude is about 2 pixels. It can be seen that the image stabilization effect of the method of the present invention is obvious.
[0065] The method of the present invention adopts a kernel correlation filtering algorithm to extract the target area and its corresponding feature area, and adopts a weighted centroid algorithm to calculate the centroid of the feature area. The above algorithm is mature, stable, easy to apply, and easier to be installed on old equipment.
[0066] Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. Those skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0067] The above specific implementations of the present invention do not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for ground-based telescope image stabilization based on kernel correlation filtering, characterized in that: The steps include: S1: Set the crop size of the cropped image as follows: The width of the cropped image is , the cropped image height size is ; S2: Get the first frame image, select the target area and the feature area corresponding to the target area of the first frame image, if the selection fails, select the target area and the feature area corresponding to the target area of the next frame image until the selection is successful, and the successfully selected image is called the first frame image. frame image; according to The characteristic area of the frame image is obtained by the kernel correlation filtering algorithm. Feature model corresponding to the feature area of the frame image; For the first frame to the The frame image is cropped in the center to obtain a cropped image of a preset size and output it to a display module; S3: Get the Frame image, according to The feature model of the feature area in the frame image is obtained by the kernel correlation filtering algorithm. The target area of the frame image and the feature area corresponding to the target area; the kernel correlation filtering algorithm The feature model of the feature area of the frame image is updated to The feature model of the feature area of the frame image, where Indicates the image frame sequence number, and Value greater than ; S4: Calculate the first The centroid coordinates of the feature area of the frame image are The centroid coordinates of the feature area of the frame image are relative to the The offset of the centroid coordinates of the feature area of the frame image is calculated The starting position coordinates of the cropping area of the frame image are determined according to the The starting position coordinates of the cropping area of the frame image are The frame image is cropped to obtain a cropped image of a preset size and output it to the display module.
2. The method for ground-based telescope image stabilization based on kernel correlation filtering according to claim 1, characterized in that: The cropping method of the center cropping is as follows: ; ; in, Indicates the number of pixel columns cropped from the left side of the image. Indicates the number of pixel columns cropped from the right side of the image. , Indicates the number of pixel rows cropped from the top of the image, Indicates the number of pixel rows cropped from the bottom of the image, .
3. The ground-based telescope image stabilization method based on kernel correlation filtering according to claim 1, characterized in that: The weighted centroid algorithm is used to The centroid coordinates of the feature area of the frame image are calculated as follows: ; ; in, Indicates The centroid position coordinates of the feature area of the frame image, Indicates The set of all pixels in the feature area of the frame image, Representing a collection The coordinates of any pixel within Indicates In the frame image The grayscale value of the pixel at position.
4. The method for ground-based telescope image stabilization based on kernel correlation filtering according to claim 1, characterized in that: Calculate the The theoretical value of the starting position coordinates of the cropping area of the frame image is calculated as follows: ; ; in, Indicates The theoretical value of the starting position coordinates of the cropping area of the frame image. Indicates The starting position coordinates of the cropping area of the frame image, Indicates The centroid position coordinates of the feature area of the frame image.
5. The method for ground-based telescope image stabilization based on kernel correlation filtering according to claim 4, characterized in that: Also includes the The theoretical value of the starting position coordinates of the cropping area of the frame image Perform cropping out-of-bounds judgment and determine the first The starting position coordinates of the cropping area of the frame image are: ; ; in, Indicates The starting position coordinates of the cropping area of the frame image, Indicates The image width of the frame image, Indicates Image height of the frame image.
Citation Information
Patent Citations
Target tracking method based on correlation of space-time-domain edge and color feature
CN103065331A
Circular target real-time tracking method based on images
CN103778645A
