An image preprocessing method for space target observation
By performing background removal, dark field correction, flat field correction, and image registration on the space target observation images, the preprocessing problem before image restoration was solved, achieving high-quality image preprocessing and sub-pixel level registration, ensuring the accuracy and clarity of image restoration.
Patent Information
- Application Number
- CN202410718563.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-05
AI Technical Summary
In space target observation, image restoration technology requires image preprocessing to remove interference information and perform registration, but existing technologies have failed to effectively achieve this process.
A method for preprocessing multiple frames of images is adopted, which involves background removal, dark field removal, flat field removal, and multiplication of bad pixels for correction, combined with image registration based on cross-correlation coefficients, positive definiteness processing, and recentering to calculate the sky background value.
It effectively removes image noise, suppresses background, achieves subpixel-level image registration, provides accurate image information, and supports subsequent image restoration.
Smart Images

Figure CN118314060B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image restoration, and in particular to an image preprocessing method for space target observation. Background Art
[0002] Large-aperture ground-based photoelectric telescopes are important equipment for space target observation. With further image restoration technology (such as multi-frame blind deconvolution), high-resolution images close to the diffraction limit can be obtained. However, before image restoration, the image needs to be preprocessed for the space target observation task to remove possible background and other interference information, and to perform registration operations on multiple frames of images. If the image is not preprocessed, the image restoration technology will fail. Summary of the invention
[0003] The purpose of the present invention is to provide an image preprocessing method for space target observation, which can realize the preprocessing of multiple frames of images, effectively improve the quality of images, and provide more accurate information for image restoration technology. The specific technical solution is as follows:
[0004] An image preprocessing method for space target observation, comprising:
[0005] Step A1: Observe the original image of the space target Perform background removal, dark field removal, flat field removal and bad pixel multiplication correction to obtain the corrected image sequence ;
[0006] Step A2: Using a method based on the operation of mutual correlation coefficients to calculate the image sequence Image registration is performed on multiple frames of images in, where express The Frame image, get the registered image ;
[0007] Step A3: image registered in step A2 All zero-valued or negative-valued pixels in the image are positively quantized to obtain the positively quantized image sequence. ;
[0008] Step A4: image sequence Re-center and obtain the image sequence at the center after re-centering ;
[0009] Step A5: Based on the image sequence Calculate sky background value , used for image restoration.
[0010] Optionally, in step A1, the original image The total background is obtained by averaging multiple background images in ; Use formula (1) to complete background correction and obtain the background-removed image :
[0011] (1);
[0012] In the background removal image In the process, the total dark field is obtained by taking the average value of multiple frames of dark field images. , use formula (2) to complete the dark field correction and obtain the dark field image :
[0013] (2);
[0014] In the dark field image In this paper, the background of multiple flat-field images is removed and the average value is taken, and then normalized to obtain the total flat-field image. , use formula (3) to complete the flat field correction and obtain the flat field image :
[0015] (3);
[0016] Use equation (4) to remove the flat field image Multiply the bad pixel image , get the corrected image sequence :
[0017] (4).
[0018] Optionally, in step A2, the following steps are included:
[0019] Step A2.1: Image sequence The first frame of the image As a benchmark, calculate With Frame Image The cross-correlation matrix , expressed by formula (5) :
[0020] (5);
[0021] In formula (5), is the two-dimensional coordinate variable after the cross-correlation operation; for The average value of for The average value of The position of the maximum value is and The offset between
[0022] Step A2.2: Obtain the final offset ;
[0023] Step A2.3: Use a phase-transformation-based method to transform Perform image translation to achieve As the benchmark image registration, the image registration is completed using formula (6):
[0024] (6);
[0025] In formula (6), yes Fourier transform of is the frequency domain coordinate, is an imaginary unit; is the Fourier transform of the registered image. After the inverse Fourier transform, the registered image is obtained. ; express The number of pixels in the direction, express The number of pixels in the direction.
[0026] Optionally, in step A2.2, the final offset is obtained The process includes;
[0027] Step A2.2.1: Use the local mean method to and Downsampling times;
[0028] Step A2.2.2: According to formula (5), calculate the downsampling and The optimal offset of
[0029] Step A2.2.3: Use the nearest neighbor interpolation method to downsample times and Upsample by a factor of 2, As the center, the offset is solved again according to formula (5) , the total deviation becomes ;
[0030] Step A2.2.4, repeat the above upsampling process until the original image is sampled. and The final offset .
[0031] Optionally, if the offset solved in step A2.2.3 If the precision is greater than the preset precision, sub-pixel image registration is adopted;
[0032] When solving the offset of sub-pixel accuracy, first and Upsample by a specified multiple and then solve the optimal offset according to equation (5).
[0033] Optionally, the process of performing positive definiteness processing in step A3 includes:
[0034] For the image registered in step A2 For zero-valued or negative-valued pixels that appear in the image, a neighborhood is selected in the surrounding area, and the average brightness of the neighborhood is calculated to replace the original zero-valued or negative-valued pixels; if the average brightness in the neighborhood is also equal to or less than zero, the neighborhood range is expanded until an area with an average brightness greater than zero is found, and the positive-defined image sequence is obtained. .
[0035] Optionally, the re-centering process in step A4 includes:
[0036] Generate an image sequence For registration templates of the same size, set the elements in the set area of the registration template center to 1, and set the elements outside the set area to 0; calculate the mutual correlation coefficient matrix with the registration template according to formula (5), and find the position corresponding to the maximum value in the matrix According to formula (6), Move to the position aligned with the registration template, that is, the image Centrally located;
[0037] When the offset If the precision is greater than the preset precision, sub-pixel image registration is adopted;
[0038] When solving the offset of sub-pixel accuracy, first and Upsample by a specified multiple, and then solve the optimal offset according to formula (5) to obtain the image sequence located at the center after re-centering .
[0039] Optionally, in step A5, according to the image sequence Calculate sky background value The process includes:
[0040] Select image sequence A frame image in , assuming its pixel number is , use formula (7) to calculate the average brightness , use formula (8) to calculate its standard deviation ;
[0041] (7);
[0042] (8);
[0043] According to the average brightness and standard deviation Use Chauville criterion or Laida criterion to calculate the sky background value .
[0044] Optionally, calculate the sky background value using the Chauville criterion The process includes: using formula (9) to calculate the initial sky background value, substituting the initial sky background value into the Chauvinist calculation formula shown in formula (10) to find the valid pixels that meet formula (10), and calculating the new brightness average value and standard deviation according to the brightness values of the valid pixels;
[0045] Substitute the new brightness average and standard deviation into formula (9) to calculate the new sky background value; Substitute the new sky background value into formula (10) to find the valid pixels that satisfy formula (10);
[0046] (9);
[0047] (10);
[0048] In formula (9), , is the median brightness value of all pixels;
[0049] In formula (10), , which represents the Chauveille coefficient;
[0050] Repeat the above process, use equations (9) and (10) to iteratively filter out valid pixels that meet the conditions, and calculate the brightness of all valid pixels based on the average brightness and standard deviation. Calculate sky background value ;
[0051] The conditions for stopping the iteration using equations (9) and (10) are one of the following: reaching the maximum number of iterations; or, The number of effective pixels is less than the minimum pixel number requirement; or, All pixels in satisfy the Chauvelet criterion or the pixels filtered out last time still satisfy the Chauvelet criterion after the updated parameters.
[0052] Optional, if the sky background value calculated using the Chauville criterion When it is less than 0, the Laida criterion shown in formula (11) is used to calculate the sky background value ;
[0053] (11);
[0054] Formula (11) is used to iteratively select valid pixels that satisfy formula (11). The average brightness of all valid pixels is the sky background value under the Laida criterion. ;
[0055] The condition for stopping the iteration using formula (11) is one of the following conditions: reaching the maximum number of iterations; or, the number of valid pixels screened out is less than the minimum number of pixels required.
[0056] The application of the technical solution of the present invention has at least the following beneficial effects:
[0057] The present invention provides an image preprocessing method for space target observation, which uses step A1 to obtain a corrected image sequence. , use step A2 to get the registered image , use step A3 to get the positive image sequence , using step A4 to obtain the image sequence located at the center after re-centering , use step A5 to calculate the sky background value , that is, the present invention combines steps A1-A5 to complete the original image of the space target observation Preprocessing multiple frames of images in can effectively remove image noise, suppress image background, quickly achieve sub-pixel registration, provide sky background value, provide effective images and related information for subsequent image restoration, and ensure the accuracy and clarity of image restoration.
[0058] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0060] Figure 1 is a flow chart of an image preprocessing method for space target observation in an embodiment of the present invention;
[0061] Figure 2 The first frame of the original image Schematic diagram;
[0062] Figure 3 The second frame of the original image Schematic diagram;
[0063] Figure 4 The third frame of the original image Schematic diagram;
[0064] Figure 5 The fourth frame of the original image Schematic diagram. DETAILED DESCRIPTION
[0065] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0066] Example:
[0067] See also Figure 1 , an image preprocessing method for space target observation, comprising:
[0068] Step A1: Observe the original image of the space target Perform background removal, dark field removal, flat field removal and bad pixel multiplication correction to obtain the corrected image sequence ; Among them, the original image It is a degraded image that is affected by factors such as atmosphere and noise during the imaging process when observing space targets using a large-aperture telescope; the original image Including multiple frames, such as Figure 2-Figure 5 The first frame image shown , the second frame image , the third frame image And the fourth frame image ;
[0069] Step A2: Using a method based on the operation of mutual correlation coefficients to calculate the image sequence Image registration is performed on multiple frames of images in, where express The Frame image, get the registered image .
[0070] In step A1, the original image The total background is obtained by averaging multiple background images in ; Use formula (1) to complete background correction and obtain the background-removed image :
[0071] (1);
[0072] In the background removal image In the process, the total dark field is obtained by taking the average value of multiple frames of dark field images. , use formula (2) to complete the dark field correction and obtain the dark field image :
[0073] (2);
[0074] In the dark field image In this paper, the background of multiple flat-field images is removed and the average value is taken, and then normalized to obtain the total flat-field image. , use formula (3) to complete the flat field correction and obtain the flat field image :
[0075] (3);
[0076] Use equation (4) to remove the flat field image Multiply the bad pixel image , used to correct bad pixels generated by defective photosensitive pixels and obtain a corrected image sequence :
[0077] (4).
[0078] In step A2, it includes:
[0079] Step A2.1: Image sequence The first frame of the image As a benchmark, calculate With Frame Image The cross-correlation matrix , expressed by formula (5) :
[0080] (5);
[0081] In formula (5), is the two-dimensional coordinate variable after the cross-correlation operation; for The average value of for The average value of The position of the maximum value is and The offset between
[0082] Step A2.2: To improve the image registration speed, an iterative solution method that approximates the optimal offset value is adopted to obtain the final offset value. ;
[0083] Step A2.3: Use a phase-transformation-based method to transform Perform image translation to achieve Based on the registration of the benchmark, the image registration is completed using formula (6):
[0084] (6);
[0085] In formula (6), yes Fourier transform of is the frequency domain coordinate, is an imaginary unit; is the Fourier transform of the registered image. After the inverse Fourier transform, the registered image is obtained. ; express The number of pixels in the direction, express The number of pixels in the direction.
[0086] In step A2.2, the final offset is obtained The process includes;
[0087] Step A2.2.1: Use the local mean method to and Downsampling times (assuming the original image has 256x256 pixels, Set to 64);
[0088] Step A2.2.2: According to formula (5), calculate the downsampling and The optimal offset of
[0089] Step A2.2.3: Use the nearest neighbor interpolation method to downsample times and Upsample by a factor of 2, As the center, the offset is solved again according to formula (5) , the total deviation becomes ;
[0090] Step A2.2.4, repeat the above upsampling process until the original image is sampled. and The final offset .
[0091] If the offset solved in step A2.2.3 If the precision is greater than the preset precision, sub-pixel image registration is adopted;
[0092] When solving the offset of sub-pixel accuracy, first and Upsample by a specified multiple (usually an integer multiple of 2), and then solve the optimal offset according to equation (5).
[0093] The image preprocessing method for space target observation further includes step A3, wherein the image after the registration in step A2 is All zero-valued or negative-valued pixels in the image are positively quantized to obtain the positively quantized image sequence. Specifically, for the image registered in step A2 For zero or negative pixels that appear in the image, a certain neighborhood size is selected in the surrounding area, such as a 3×3 or 5×5 neighborhood, and their brightness average is calculated to replace the original zero or negative pixels. If the brightness average in the neighborhood is also equal to or less than zero, the neighborhood range is expanded until an area with a brightness average greater than zero is found, and the positively quantized image sequence is obtained. .
[0094] The image preprocessing method for space target observation further includes step A4, using the image registration method in step A2 to register the image sequence. Re-center and obtain the image sequence at the center after re-centering Specifically, generate a sequence of images For registration templates of the same size, set the elements in a certain area (such as 3×3 or 5×5) in the center of the registration template to 1, and set the elements outside the area to 0. Calculate the mutual correlation coefficient matrix with the registration template according to formula (5), and find the position corresponding to the maximum value in the matrix According to formula (6), Move to the position aligned with the registration template, that is, the image Located in the center; Same as step A2, when the offset If the precision is greater than the preset precision, sub-pixel image registration is adopted;
[0095] When solving the offset of sub-pixel accuracy, first and Upsample by a specified multiple (usually an integer multiple of 2), and then solve the optimal offset according to formula (5) to obtain the image sequence at the center after re-centering .
[0096] The image preprocessing method for space target observation further includes step A5, according to the image sequence Calculate sky background value , used for image restoration;
[0097] Specifically, select the image sequence A frame image in , assuming its pixel number is , use formula (7) to calculate the average brightness , use formula (8) to calculate its standard deviation ;
[0098] (7);
[0099] (8);
[0100] According to the average brightness and standard deviation Use Chauville criterion or Laida criterion to calculate the sky background value .
[0101] Calculate sky background value using Chauville criterion The process includes: using formula (9) to calculate the initial sky background value, substituting the initial sky background value into the Chauvinist calculation formula shown in formula (10) to find the valid pixels that meet formula (10), and calculating the new brightness average value and standard deviation according to the brightness values of the valid pixels;
[0102] Substitute the new brightness average and standard deviation into formula (9) to calculate the new sky background value; Substitute the new sky background value into formula (10) to find the valid pixels that satisfy formula (10);
[0103] (9);
[0104] (10);
[0105] In formula (9), , is the median brightness value of all pixels;
[0106] In formula (10), , which represents the Chauveille coefficient;
[0107] Repeat the above process, use equations (9) and (10) to iteratively filter out valid pixels that meet the conditions, and calculate the brightness of all valid pixels based on the average brightness and standard deviation. Calculate sky background value ;
[0108] The conditions for stopping the iteration using equations (9) and (10) are one of the following: reaching the maximum number of iterations; or, The number of effective pixels is less than the minimum pixel number requirement; or, All pixels in satisfy the Chauvelet criterion or the pixels filtered out last time still satisfy the Chauvelet criterion after the updated parameters.
[0109] If the sky background value calculated using the Chauville criterion When it is less than 0, the Laida criterion shown in formula (11) is used to calculate the sky background value ;
[0110] (11);
[0111] Formula (11) is used to iteratively select valid pixels that satisfy formula (11). The average brightness of all valid pixels is the sky background value under the Laida criterion. ;
[0112] The condition for stopping the iteration using formula (11) is one of the following conditions: reaching the maximum number of iterations; or, the number of valid pixels screened out is less than the minimum number of pixels required.
[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An image preprocessing method for space target observation, characterized in that: include: Step A1, removing background, removing dark field, removing flat field and multiplying bad pixels are performed on the original image R (x, y) observed by the space target to obtain a corrected image sequence g (x, y), where the value range of x is 1-M, and the value range of y is 1-N; M represents the number of pixels in the x direction, and N represents the number of pixels in the y direction; Step A2: Use a method based on the operation of mutual correlation coefficients to perform image registration on multiple frames of the image sequence g(x, y), where g i (x,y) represents the i-th frame image in g(x,y), and the registered image is obtained Step A3: image registered in step A2 All zero-valued or negative-valued pixels in the image are positively quantized to obtain the positively quantized image sequence. Step A4: image sequence Re-center and obtain the image sequence at the center after re-centering The re-centering process in step A4 includes: Generate an image sequence For registration templates of the same size, set the elements in the set area of the registration template center to 1, and set the elements outside the set area to 0; calculate the mutual correlation coefficient matrix with the registration template according to formula (5), and find the position corresponding to the maximum value in the matrix (ξ * ,η * ), according to formula (6) Move to the position aligned with the registration template, that is, the image Centrally located; Step A5: Based on the image sequence Calculate the sky background value sky for image restoration; In step A2, it includes: Step A2.
1. Calculate the final offset (ξ * ,η * ); In step A2.1, the final offset (ξ * ,η * ) process includes: Step A2.1.1, taking the first frame image g1(x,y) in the image sequence g(x,y) as the reference, compare g1(x,y) with the i-th frame image g i (x,y) downsampled by β times; Step A2.1.2: According to the downsampled g1(x,y) and g i (x, y), and use formula (5) to calculate the mutual correlation coefficient matrix: In formula (5), (ξ,η) is the two-dimensional coordinate variable after the cross-correlation operation; is the average value of g1(x,y); g i The average value of (x+ξ,y+η); Step A2.1.3: Based on the calculated cross-correlation matrix ρ i (ξ,η), find the horizontal and vertical coordinates corresponding to its maximum value as the first offset, recorded as (ξ1,η1); Step A2.1.4: Use the nearest neighbor interpolation method to downsample g1(x, y) and g i (x,y) is upsampled by 2 times and centered at (ξ1,η1), and we get g i (x+ξ1, y+η1), and solve the offset (ξ2,η2) again according to equation (5). At this time, the total offset becomes (ξ1+ξ2,η1+η2); Step A2.1.5, repeat the above upsampling process until the original image is sampled, and obtain g1(x, y) and g i The final offset (ξ) of (x,y) * ,η * ); Step A2.2: Use a phase-based transformation method to convert g i (x, y) is used to translate the image, and image registration based on g1(x, y) is realized. The image registration is completed using formula (6): In formula (6), G i (u, v) is g i Fourier transform of (x,y); (u,v) are the frequency domain coordinates, j is the imaginary unit; is the Fourier transform of the registered image. After the inverse Fourier transform, the registered image is obtained.
2. The image preprocessing method for space target observation according to claim 1, characterized in that: In step A1, the total background B(x, y) is obtained by averaging multiple frames of background images in the original image R(x, y); the background removal correction is completed using formula (1) to obtain the background-removed image S1(x, y): S1(x,y)=R(x,y)-B(x,y) (1); In the background-removed image S1(x, y), the total dark field D(x, y) is obtained by taking the average value of multiple frames of dark field images, and the dark field removal correction is completed using formula (2) to obtain the dark field-removed image S2(x, y): S2(x,y)=S1(x,y)-D(x,y) (2); In the dark field removal image S2(x, y), the background removal of multiple frames of flat field images is averaged and then normalized to obtain the total flat field F(x, y). The flat field removal correction is completed using formula (3) to obtain the flat field removal image S3(x, y): S3(x,y)=S2(x,y) / F(x,y) (3); Formula (4) is used to multiply the flat field image S3(x, y) by the bad pixel image Bad(x, y) to obtain the corrected image sequence g(x, y): g(x,y)=S3(x,y)×Bad(x,y) (4).
3. The image preprocessing method for space target observation according to claim 2, characterized in that: If the offset (ξ2,η2) solved in step A2.1.4 is greater than the preset accuracy, sub-pixel image registration is used; When solving the offset of sub-pixel accuracy, first replace g1(x,y) with g i (x, y) is upsampled by a specified multiple, and then the optimal offset is solved according to formula (5).
4. The image preprocessing method for space target observation according to claim 3, characterized in that: The process of performing positive definiteness processing in step A3 includes: For the image registered in step A2 For zero-valued or negative-valued pixels that appear in the image, a neighborhood is selected in the surrounding area, and the average brightness of the neighborhood is calculated to replace the original zero-valued or negative-valued pixels; if the average brightness in the neighborhood is also equal to or less than zero, the neighborhood range is expanded until an area with an average brightness greater than zero is found, and the positive-defined image sequence is obtained.
5. The image preprocessing method for space target observation according to claim 4, characterized in that: In step A5, according to the image sequence The process of calculating the sky background value sky includes: Select image sequence For a frame image in , assuming that the number of pixels is M×N, use formula (7) to calculate its average brightness μ, and use formula (8) to calculate its standard deviation σ; The sky background value sky is calculated based on the brightness mean μ and standard deviation σ using the Chauville criterion or the Laida criterion.
6. The image preprocessing method for space target observation according to claim 5, characterized in that: The process of calculating the sky background value sky by using the Chauvinist criterion includes: using formula (9) to calculate the initial sky background value, substituting the initial sky background value into the Chauvinist calculation formula shown in formula (10) to find the valid pixels that meet formula (10), and calculating the new brightness average value and standard deviation according to the brightness values of the valid pixels; Substitute the new brightness average and standard deviation into formula (9) to calculate the new sky background value; Substitute the new sky background value into formula (10) to find the valid pixels that satisfy formula (10); In formula (9), m is the median of all pixel brightness values; In formula (10), z c =(-0.1042×n+1.1695)×log 10 n+0.8895m, which represents the Chauvelet coefficient, n=M×N; Repeat the above process, use equations (9) and (10) to iteratively screen out valid pixels that meet the conditions, and calculate the sky background value sky based on the brightness average and standard deviation σ of all valid pixels; The conditions for stopping the iteration using equations (9) and (10) are one of the following: reaching the maximum number of iterations; or, The number of effective pixels is less than the minimum pixel number requirement; or, All pixels in satisfy the Chauvelet criterion or the pixels filtered out last time still satisfy the Chauvelet criterion after the updated parameters.
7. The image preprocessing method for space target observation according to claim 6, characterized in that: If the sky background value sky calculated by the Chauville criterion is less than 0, the Laida criterion shown in formula (11) is used to iteratively select valid pixels that meet formula (11). The average brightness of all valid pixels is the sky background value sky under the Laida criterion. The condition for stopping the iteration using formula (11) is one of the following conditions: reaching the maximum number of iterations; or, the number of valid pixels screened out is less than the minimum number of pixels required.
Citation Information
Patent Citations
Infrared video aerial weak moving target detecting and tracking method
CN109978851A
Multi-frame image rapid reconstruction method on microsatellite platform
CN112927177A
Method for detecting and tracking space debris target of space-based wide-area monitoring image
CN117876736A
Extended interior methods and systems for spectral, optical, and photoacoustic imaging
US20110282181A1
Real-time temporal filtering and super-resolution of depth image sequences
WO2016193393A1
