Cross wire center positioning method based on interference image fringe background elimination

By reading multi-frame interference images in large aperture static interference spectrometer and performing average processing, eliminating the striped background, and using edge detection technology to accurately locate the cross thread center, the problem of confusion between cross thread and striped background in the interfering image is solved, and improving the problem of cross thread and improving Positioning accuracy and efficiency.

CN118967807AActive Publication Date: 2024-11-15XIAN INST OF OPTICS & PRECISION MECHANICS CHINESE ACAD OF SCI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411014373.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Interferometric image cross threads are easily confused with the striped background, making it difficult to accurately locate the center coordinates of the cross threads, affecting the installation accuracy and efficiency of large-aperture static interference spectrometers.

Method used

By reading multiple frame interference images and averaging them along the frame number dimension, selecting the region of interest for brightness mean calculation and relative radiation correction, eliminating the striped background, using Canny algorithm and Hough transformation for edge detection, extracting the set of straight lines to accurately locate the crosses Wire center.

Benefits of technology

Effectively eliminate the influence of dark striped background in interference images, improve the accuracy and calculation efficiency of the center positioning of the cross thread, and ensure the accuracy and rapidity of cross thread recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967807A_ABST
    Figure CN118967807A_ABST
Patent Text Reader

Abstract

The invention relates to a cross wire center positioning method based on interference image fringe background elimination, which is mainly used for solving the technical problem that a cross wire center coordinate is difficult to accurately position due to the fact that an interference image cross wire is easily confused with a fringe background. According to the method, after the interference of the interference image stripe background is eliminated, the crosshair is identified through edge detection, and then the center of the crosshair is accurately positioned. The potential relation between the interference image fringe background and the cross wire imaging is explored, and the brightness distribution of the interference image is adjusted by using a relative radiation correction method, so that the brightness of different interference dimensions tends to be consistent, the influence of the dark fringe background in the interference image is effectively eliminated, and inaccurate cross wire identification caused by confusion of the interference image and the cross wire image is avoided. And a foundation is laid for subsequent accurate positioning of the center of the cross wire.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an interference image processing method, and in particular to a crosshair center positioning method based on interference image fringe background elimination. Background Art

[0002] Large aperture static interferometric spectral imaging is a static interferometric spectral imaging technology with a spatiotemporal joint modulation mode. The large aperture static interferometric spectrometer developed based on this technology has the characteristics of high stability and high sensitivity. Large aperture static interferometric spectral imaging technology realizes hyperspectral data imaging by transforming target radiation to interferometric data and transforming interferometric data to spectral data. Therefore, the quality of interferometric data is crucial to the final generated hyperspectral data.

[0003] The purpose of the crosshair center positioning of the interference image is to improve the precise adjustment of the z-pointing in the large-aperture static interferometer spectrometer, thereby improving the observation capability and imaging quality of the on-orbit satellite, and maintaining the stability and reliability of the large-aperture static interferometer spectrometer for long-term use on the satellite. The common crosshair center positioning method uses two points connected into a line. Due to certain errors in manual intervention, the positioning accuracy is low, and it cannot be well operated in batches, and the efficiency is low in practical applications.

[0004] In addition, the imaging center point of the zero optical path difference position in the interference image of the large aperture static interference spectrometer theoretically coincides with the crosshair imaging position. However, during the adjustment process, the interference image crosshairs are easily confused with the fringe background, making it difficult to accurately locate the crosshair center coordinates. Summary of the invention

[0005] The purpose of the present invention is to solve the technical problem that the interference image crosshairs are easily confused with the fringe background, resulting in difficulty in accurately locating the crosshair center coordinates, and propose a crosshair center positioning method based on eliminating the interference image fringe background.

[0006] To solve the above technical problems, the technical solutions provided by the present invention are as follows:

[0007] A crosshair center positioning method based on interference image fringe background elimination is special in that it includes the following steps:

[0008] S1, read M frames of original interference images, and perform average calculation along the frame dimension to obtain a stable interference image containing crosshairs. The formula is as follows:

[0009]

[0010] Among them, F n represents the original interference image of the nth frame, and F represents the interference image;

[0011] S2, obtain the crosshair image I with the striped background removed ′ :

[0012] S2.1, select the region of interest I in the interference image, perform average calculation on the region of interest I along the width dimension, and obtain the mean vector m=(m1,m2,…,m i ,…,m h ) T , m i Characterize the brightness level of the i-th row of stripes in the region of interest I:

[0013]

[0014] Where h represents the number of rows in the region of interest I, w represents the number of columns in the region of interest I, and p (i,j) represents the pixel value of the i-th row and j-th column in the region of interest I;

[0015] S2.2, average the mean vector m to get the global mean m all , determine the overall brightness level of the region of interest I, the formula is as follows:

[0016]

[0017] S2.3, using the relative radiation correction method to eliminate the striped background of the region of interest I, to obtain the crosshair image I ′ , the formula is as follows:

[0018]

[0019] S3, crosshair image I ′ The crosshair center is detected by edge detection to obtain the edge binary map BW, and the straight line set L constituting the crosshairs is extracted from the edge binary map BW. The straight line set L is accurately positioned to obtain the centroid coordinates and the centroid coordinates of the crosshair center, thereby completing the positioning of the crosshair center.

[0020] Furthermore, step S3 specifically includes:

[0021] S3.1, using the Canny algorithm to image the crosshairs I ′ Perform edge detection to obtain the edge binary map BW. The formula is as follows:

[0022] BW=Canny(I ′ );

[0023] S3.2, using Hough transform, extract the set of straight lines L constituting the crosshairs from the edge binary image BW, the formula is as follows:

[0024] L = Hough (BW);

[0025] S3.3, calculate the centroid c of the crosshairs based on the extracted straight line set L (x,y) and the centroid b (x,y) , the formula is as follows:

[0026]

[0027] Wherein, f(L) represents the function for calculating the centroid of the crosshairs, N represents the number of crosshair intersecting pixels, g(L) represents the function for calculating the centroid of the crosshairs, H represents the height of the area enclosed by the N crosshair intersecting pixels, and W represents the width of the area enclosed by the N crosshair intersecting pixels.

[0028] Furthermore, in step S2.1, a region of interest I is selected in the interference image, specifically:

[0029] In the interference image, the sub-region containing the crosshairs is selected as the region of interest I, and the coordinate offset of the region of interest I is recorded. The coordinate offset is the upper left corner coordinate offset of the region of interest I; the upper left corner coordinate offset is used as the coordinate origin of the region of interest I, and the formula is as follows:

[0030] I = roi(F);

[0031] Among them, roi() is the location function of the region of interest.

[0032] Furthermore, the method further comprises step S4:

[0033] S4, according to the coordinate offset of the region of interest I, relocate the centroid and centroid positions calculated in step S3.3 to the interference image, which are c ′ (x,y) and b ′ (x,y) , the formula is as follows:

[0034] c ′ (x,y) =c (x,y) +offset;

[0035] b ′ (x,y) =b (x,y) +offset.

[0036] Furthermore, in step S2.1, a sub-region centered on the crosshairs is selected in the interference image as the region of interest I.

[0037] Furthermore, in step S3.1, the Canny algorithm is used to perform crosshair image F ′ Perform single-line double-edge detection, in step 3.3, N=4.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] 1. The present invention explores the potential connection between the interference image fringe background and crosshair imaging, and uses the relative radiation correction method to adjust the brightness distribution of the interference image, so that the brightness of different interference dimensions tends to be consistent, effectively eliminating the influence of the dark fringe background in the interference image, avoiding confusion between it and the crosshair image and causing inaccurate crosshair recognition, and laying a solid foundation for the subsequent precise positioning of the crosshair center.

[0040] 2. In the present invention, the crosshair image I ′ When performing edge detection, the interference image crosshair recognition is expanded to single-line double-edge detection to further improve the accuracy of the interference image crosshair center positioning.

[0041] 3. The present invention selects a region of interest in the interference image, and can focus only on a specific part of the interference image, and specifically analyze and calculate the region of interest, thereby avoiding redundant calculations and improving calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of an embodiment of a method for locating the center of a crosshair based on interference image fringe background elimination according to the present invention;

[0043] Figure 2 It is a schematic diagram of reading and averaging interference images frame by frame in an embodiment of a crosshair center positioning method based on interference image fringe background elimination of the present invention;

[0044] Figure 3 A schematic diagram of eliminating the fringe background of an area of ​​interest in an embodiment of a crosshair center positioning method based on interference image fringe background elimination of the present invention;

[0045] Figure 4 The present invention is a processing flow chart of the crosshair center positioning of the interference image in an embodiment of the crosshair center positioning method based on interference image fringe background elimination. DETAILED DESCRIPTION

[0046] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0047] The present invention proposes a crosshair center positioning method based on interference image fringe background elimination, explores the potential connection between interference image fringe background and crosshair imaging, and eliminates the interference of dark fringe background by adjusting the image brightness distribution. Figure 1 As shown, the specific steps include:

[0048] S1, read M frames of original interference images and average them along the frame dimension to reduce the noise of the original interference image and obtain a stable interference image containing crosshairs;

[0049] The data of the original interference image consists of a frame header and each frame data, such as Figure 2 As shown, each frame of data is read cyclically and averaged according to the following formula to obtain the interference image:

[0050]

[0051] Among them, F n represents the original interference image of the nth frame, and F represents the interference image;

[0052] S2, such as Figure 3 As shown, eliminating the striped background of the region of interest I specifically includes the following steps:

[0053] S2.1, in order to improve the calculation efficiency, the sub-region containing the crosshairs is selected as the region of interest I in the interference image, and the coordinate offset of the region of interest I is recorded. The coordinate offset refers to the upper left corner coordinate offset of the region of interest I in the interference image; the upper left corner coordinate offset is taken as the coordinate origin of the region of interest I;

[0054] In this embodiment, the sub-region centered on the crosshairs is selected as the region of interest I, and the formula is as follows:

[0055] I = roi(F);

[0056] Among them, roi() is the position function of the region of interest;

[0057] The average calculation is performed on the region of interest I along the width dimension to obtain the mean vector m of different stripe backgrounds in the region of interest I = (m1, m2, ..., m i ,…,m h ) T , m i Characterize the brightness level of the i-th row of stripes in the region of interest I:

[0058]

[0059] Where h represents the number of rows in the region of interest I, w represents the number of columns in the region of interest I, and p (i,j) represents the pixel value of the i-th row and j-th column in the region of interest I;

[0060] S2.2, further average the mean vector m to obtain the global mean m of the region of interest I all , determine the overall brightness level of the region of interest I, the formula is as follows:

[0061]

[0062] S2.3, using the relative radiation correction method to eliminate the striped background of the region of interest I, to obtain a clear crosshair image I ′ , the formula is as follows:

[0063]

[0064] S3, such as Figure 4 As shown, for the crosshair image I ′ The crosshair center in the image is precisely located to obtain the centroid coordinates and centroid coordinates of the crosshair center; specifically, the following steps are included:

[0065] S3.1, using the Canny algorithm to image the crosshairs I ′ Perform edge detection. In this embodiment, single-line double-edge detection is set to obtain an edge binary image BW. The formula is as follows:

[0066] BW=Canny(I ′ );

[0067] The Canny algorithm is widely used in the field of computer vision and can reduce image noise while maintaining accurate edge positioning. The specific steps of the Canny algorithm are:

[0068] (1) Gaussian filter for noise filtering;

[0069] (2) The Sobel operator calculates the image gradient and determines the edge direction and intensity;

[0070] (3) Apply non-maximum suppression in the gradient direction and retain the point with the largest gradient in that direction;

[0071] (4) Double threshold method distinguishes strong edges, weak edges and non-edges;

[0072] (5) Connect strong edges and weak edges to form a complete edge;

[0073] S3.2, using Hough transform, extract the set of straight lines L constituting the crosshairs from the edge binary image BW, the formula is as follows:

[0074] L = Hough (BW);

[0075] Hough transform is an image processing technique used to detect geometric shapes (such as straight lines, circles, etc.) in images. The basic principle is:

[0076] (1) Convert the pixels in the image into a parameter space (Hough space) to represent the geometric shape; for example, for detecting a straight line, a point in the parameter space represents a straight line;

[0077] (2) For edge points in the image, according to different parameterized descriptions (such as line equations), the point is mapped to multiple candidate geometric shapes in the parameter space, and votes are accumulated on the parameter values ​​corresponding to these candidate shapes;

[0078] (3) Find local maxima of the accumulated voting values ​​in the parameter space, which correspond to the geometric shapes of the image.

[0079] S3.3, calculate the centroid c of the crosshairs based on the extracted straight line set L (x,y) (i.e. geometric center) and centroid b (x,y) , the formula is as follows:

[0080]

[0081]

[0082] Wherein, f(L) represents a function for calculating the centroid of the crosshairs, and N represents the number of crosshair intersecting pixels. Since crosshair recognition is a single-line double-edge detection, N=4.

[0083] g(L) represents a function for calculating the centroid of the crosshairs. The centroid position is obtained by weighted calculation of the area enclosed by the above four intersection points. H represents the height of the enclosed area, and W represents the width of the enclosed area.

[0084] S4, according to the coordinate offset of the region of interest I, relocate the centroid and centroid positions calculated in step S3.3 to the interference image, which are c ′ (x,y) and b ′ (x,y) , the formula is as follows:

[0085] c ′ (x,y) =c (x,y) +offset;

[0086] b ′ (x,y) =b (x,y) +offset.

Claims

1. A crosshair center positioning method based on interference image fringe background elimination, characterized in that: The following steps are involved: S1, read M frames of original interference images, and perform average calculation along the frame dimension to obtain a stable interference image containing crosshairs. The formula is as follows: Among them, F n represents the original interference image of the nth frame, and F represents the interference image; S2, obtain the crosshair image I′ with the stripe background removed: S2.1, select the region of interest I in the interference image, perform average calculation on the region of interest I along the width dimension, and obtain the mean vector m=(m1,m2,…,m i ,…,m h ) T , m i Characterize the brightness level of the i-th row of stripes in the region of interest I: Where h represents the number of rows in the region of interest I, w represents the number of columns in the region of interest I, and p (i,j) represents the pixel value of the i-th row and j-th column in the region of interest I; S2.2, average the mean vector m to get the global mean m all , determine the overall brightness level of the region of interest I, the formula is as follows: S2.3, use the relative radiation correction method to eliminate the stripe background of the region of interest I and obtain the crosshair image I′, the formula is as follows: S3, edge detection is performed on the center of the crosshair in the crosshair image I′ to obtain an edge binary map BW, a set of straight lines L constituting the crosshairs is extracted from the edge binary map BW, and the center of the crosshairs is accurately positioned according to the set of straight lines L to obtain the centroid coordinates and the centroid coordinates of the center of the crosshairs, thereby completing the positioning of the center of the crosshairs.

2. The crosshair center positioning method based on interference image fringe background elimination according to claim 1, characterized in that: Step S3 specifically includes: S3.1, use the Canny algorithm to perform edge detection on the crosshair image I′ to obtain the edge binary image BW, the formula is as follows: BW = Canny(I'); S3.2, using Hough transform, extract the set of straight lines L constituting the crosshairs from the edge binary image BW, the formula is as follows: L = Hough (BW); S3.3, calculate the centroid c of the crosshairs based on the extracted straight line set L (x,y) and the centroid b (x,y) , the formula is as follows: Wherein, f(L) represents the function for calculating the centroid of the crosshairs, N represents the number of crosshair intersecting pixels, g(L) represents the function for calculating the centroid of the crosshairs, H represents the height of the area enclosed by the N crosshair intersecting pixels, and W represents the width of the area enclosed by the N crosshair intersecting pixels.

3. The crosshair center positioning method based on interference image fringe background elimination according to claim 1, characterized in that: In step S2.1, a region of interest I is selected in the interference image, specifically: In the interference image, the sub-region containing the crosshairs is selected as the region of interest I, and the coordinate offset of the region of interest I is recorded. The coordinate offset is the upper left corner coordinate offset of the region of interest I; the upper left corner coordinate offset is used as the coordinate origin of the region of interest I, and the formula is as follows: I = roi(F); Among them, roi() is the location function of the region of interest.

4. The crosshair center positioning method based on interference image fringe background elimination according to claim 3 is characterized in that: The step S4 is also included: S4, according to the coordinate offset of the region of interest I, relocate the centroid and centroid positions calculated in step S3.3 to the interference image, which are c′ (x,y) and b′ (x,y) , the formula is as follows: c′ (x,y) =c (x,y) +offset; b′ (x,y) =b (x,y) +offset。 5. The crosshair center positioning method based on interference image fringe background elimination according to claim 4, characterized in that: In step S2.1, a sub-region centered on the crosshairs is selected in the interference image as a region of interest I.

6. The crosshair center positioning method based on interference image fringe background elimination according to claim 5, characterized in that: In step S3.1, the Canny algorithm is used to perform single-line double-edge detection on the crosshair image F′. In step 3.3, N=4.

Citation Information

Patent Citations

  • Hetero-type expanded goal high-accuracy positioning method with generalized Hough transposition

    CN103136525A

  • Method and device for detecting distance between laser spot center and visible light cross wire center

    CN116817767A

  • Cross mark detection device, method, and program

    JP2011221747A