- 1Business School, Henan University of Science and Technology, Luoyang, China
- 2College of Intelligent Engineering, Zhengzhou University of Aeronautics, Zhengzhou, China
- 3Basic Experiment and Training Center, Tianjin Sino-German University of Applied Technology, Tianjin, China
The energy distribution of the far-field spot is uneven, and the background is complex. Therefore, the identification of far-field points and the positioning of the centre are difficult. This article proposes an algorithm for multi-scale Gaussian cyclic convolution for locating the centre of far-field spots. First, wavelet denoising is performed on the image of multiple far-field spots, and the images of adjacent frames are subtracted. Then, the absolute values of the differences are added. Due to the large size of the far-field spot, the Gaussian distribution of the laser energy is not obvious. Therefore, a multi-scale Gaussian convolution kernel is used to perform circular convolution on these images. To preserve low-scale Gaussian features, features are spliced between two convolutions. In this article, we also design multi-angle combination filters to filter the enhanced Gaussian distribution features. Finally, curved polynomials are fitted to the reconstructed Gaussian energy distribution to obtain the maximum value; at this point, the position where the maximum value lies is the centre of the far-field spot. The experiments showed that this method has better robustness.
1 Introduction
The classic laser spot centre positioning methods include the Hough transform method [1], the circular fitting method [2], and the grey-scale centroid [3]. The aforementioned methods have some shortcomings in terms of positioning accuracy, computational complexity, and robustness. The Hough transform method requires a large amount of computation. The circular fitting method requires high integrity of far-field spots. The grey-scale centroid method is susceptible to the uniformity of the digital number (DN) value. Therefore, there is a need to devise more advanced algorithms for laser spot centre localisation.
To be specific, Zhou et al. used iterative thresholding for coarse localisation, followed by interpolation, to achieve the positioning of sub-pixels in the centre of the spot [4]. Liu et al. proposed a curve-fitting algorithm that was introduced to improve the positioning accuracy of the laser spot centre based on the centroid method, but the algorithm is only suitable for images that conform to the Gaussian distribution. Liu, Z. R., et al. proposed laser spot centre localisation accuracy, but the algorithm is only suitable for the case where the grey scale of the spot image conforms to a Gaussian distribution [5]. Zhang et al. proposed an algorithm for laser spot localisation based on a weighted interpolation algorithm; the principle is to use weighted processing for spot positioning, which not only improves the accuracy and stability of the positioning but also provides accurate positioning to the edge of the spot. However, the algorithm is computationally complex and susceptible to saturated image elements within the speckle [6]. Thomas et al. propose a simple approach for the estimation of the circular arc centre and its radius [7], which can be used for laser spot centring. The aforementioned algorithm relies on the image of the ideal spots.
In our study, we found that the far-field spot has a weak Gaussian distribution at multiple scales but not at other locations in the image [8]. To enhance this feature, a multi-scale convolution kernel is used to perform cyclic convolution on the image. Then, features are spliced between two convolutions. The presence of low-scale Gaussian features results in the high-scale convolutions. Finally, the binomials of the results are fitted to the Gaussian distribution; at this point, the position where the global maximum value lies is the coordinate of the centre point.
2 Theoretical analysis
2.1 Model for the energy distribution of laser beams
The energy distribution of laser beams has multiple stable modes, including fundamental and higher-order modes. The fundamental mode is the ideal Gaussian beam, which is usually represented as a plane wave, denoted by
FIGURE 1. Light intensity distribution of an ideal Gaussian beam. (A) Spatial distribution of laser light intensity. (B) Gaussian normal distribution model.
In the formula,
Due to the long distance of the far-field spot, the following effects can occur.
2.1.1 Light spot drift
Due to the long distance of the far-field spot, there is an effect on the beam propagation, resulting in a certain change in the direction of propagation and a consequent change in the position of the spot. The effect on the beam is manifested in several ways, and the spot drift effect refers to the change in the spatial position of the spot. Furthermore, with time, the spot drift exhibits a certain superposition effect, which is the beam expansion. The effects of this phenomenon must be taken into account in applications such as optical tracking systems and targeted designs should be created.
2.1.2 Beam extension
Based on the previous analysis, it is clear that the superposition effect of spot drift over time creates a beam expansion. This results in a beam drift phenomenon, which means that the beam after passing through the medium has changed, resulting in an increase in the spot size trend. When beam expansion occurs, the spot size increases and the light intensity at the centre is reduced [10].
2.1.3 Intensity fluctuations of the laser
The transmission of the laser light over long distances is subjected to laser undulation, which is the random undulation of the laser. Affected by the light beam, scattering and other phenomena occur in the medium, resulting in continuous changes in the intensity of the receiving surface. This is known as the intensity fluctuations of the laser [11].
The aforementioned effects weaken the Gaussian characteristics of the laser spot, as shown in Figure 2.
2.2 Image pre-processing
2.2.1 Wavelet denoising
In this article, wavelet denoising is used to denoise the captured images to eliminate the effect of noise on positioning accuracy [12]. We believe that suppressing the high-frequency noise of the speckle helps resolve the inhomogeneity of the far-field spot and improve the accuracy of speckle image segmentation [13, 14]. The process can be expressed as shown in Figure 3. After image wavelet decomposition, the image noise is reflected in the high-frequency components, and the absolute value of the wavelet coefficient is small; however, the part with uniform laser energy is reflected in the high-frequency component, and the wavelet coefficient is large [15]. According to the idea of wavelet threshold denoising proposed by Johnstone, when the wavelet coefficient is less than a certain threshold, it is considered to be mainly noise components, and the part larger than the threshold is retained.
2.2.2 Background removal
Background removal is required for far-field spot images after wavelet denoising. Figure 4 represents the background removal process. Two adjacent frame images are subtracted, and the absolute value is calculated. Due to the frequency of the laser, there are four cases of adjacent frames: no laser spot in both frames; a laser spot in both preceding and following frames; a laser spot in the preceding frame and no laser spot in the following frame; and no laser spot in the preceding frame and a laser spot in the following frame. In the first and second cases, image subtraction results in zero, while in the third and fourth cases, image subtraction of the laser spot energy can be retained; however, the former has positive laser spot pixels and the latter has negative laser spot pixels. Finally, the spot pixels are unified to obtain a positive value by calculating the absolute value.
2.3 Gaussian kernel
Due to the Gaussian nature of the laser, a two-dimensional Gaussian kernel needs to be selected to convolve the image. A one-dimensional Gaussian kernel can be obtained by solving the following equation.
The one-dimensional Gaussian kernel function is defined by
where
A two-dimensional Gaussian can then be derived as follows:
The value of
Figure 5 shows images of Gaussian kernels of different sizes according to the function.
FIGURE 5. Gaussian kernels of different sizes. (A) shows the Gaussian kernel generated by ksize/2, (B) shows the Gaussian kernel generated by ksize/4, (C) shows the Gaussian kernel generated by ksize/6, (D) shows the Gaussian kernel generated by ksize/8, (E) shows the Gaussian kernel generated by ksize/10, and (F) shows the Gaussian kernel generated by the function, which is the Gaussian kernel that best meets the algorithm’s needs.
2.4 Multi-scale Gaussian cyclic convolution
Deeper features in images rely heavily on convolution for extraction [16, 17]. The laser spot features in the pre-processed image are submerged in the background, which are still not extracted and localised, so a multi-scale Gaussian convolution is designed to suppress the background features and highlight the laser spot features. The structure diagram is as follows:
In this article, the Gaussian characteristics of the laser are combined with the choice of using multiple Gaussian convolution kernels of different sizes, i.e., weight matrices, to obtain the convolution feature results at different scales, and then all the feature results are normalised to finally extract the Gaussian features of the light spot image.
Figure 6 shows the effect of the image after multi-scale circular convolution. From the figure, it can be seen that the original image has no obvious spot features; the spot features are enhanced by 3 times of circular convolution, but the difference in the surrounding background is small; the Gaussian features in the spot area are more obvious by 6 times of circular convolution; and the difference between the Gaussian features of the spot and the surrounding Gaussian distribution can be clearly observed by 8 times of circular convolution and above. More detail of the source image is retained in the high-frequency features [18]. The multi-scale cyclic convolution method can effectively enhance the Gaussian characteristics of the spot and improve its distinctness.
FIGURE 6. Multi-scale Gaussian convolution before and after comparison and its histogram. Plot (A) represents the result of looping the convolution 1 time, plot (B) represents the result of looping 3 times, plot (C) represents the result of looping 5 times 5 times, and plot (D) represents the result of looping 7 times.
Gaussian features in the spot region are significantly improved after multi-scale cyclic convolution, and the background detail information in the darker regions of the spot image is improved, but the search for locating the centre of the spot requires the removal of information such as background detail that interferes with the experimental results. To solve this problem, a multi-angle-based combination filter is proposed to extract contour information and that information is subtracted from each iteration of the cycle. The rotation matrix
If
In order to uniformly filter the spot background while extracting contour and detail information from the image, i.e., if the response of the background region (i.e., non-contour and detail information) after stencil filtering is zero, the filter kernel function
where a is the weight and b belongs to the neighbourhood.
Figure 7 shows the images and feature histograms before and after the multi-angle-based filter combined with multi-scale circular convolution processing. The comparison shows that the spot features are more pronounced after processing than before processing.
The contrast of the laser spot image is significantly improved by comparison with the multi-angle-based combination filter. The background of the image is filtered out, while the Gaussian characteristics of the laser spot are enhanced.
3 Verification of the accuracy of the central positioning algorithm
3.1 Selection of evaluation indicators
Commonly evaluated metrics for laser spot-centring algorithms are repeatability verification and accuracy verification. Repeatability means that the spot is photographed and measured several times in the same position with a stable far-field spot, and the individual measurements are analysed in comparison with the maximum difference between the average values of the measurements. Accuracy is the difference between the measured value of the laser position coordinates and the true value [20]. In practice, however, it is not possible to know the definitive true value of the laser position coordinates, so straightness is used to evaluate the accuracy of the positioning algorithm. When the laser beam moves along a certain straight line, the movement of the spot centre coordinates must be a straight line, and the straightness of the fitted line is chosen as the evaluation index. The smaller the straightness, the better the accuracy of the positioning algorithm.
3.2 Repetitive experimental results
Eight randomly selected far-field spot images with different noises added were taken at the same location, and the spot centre should remain the same. The effect of the spot after the algorithm is shown in Figure 8.
FIGURE 8. Corresponding light spot effect after adding different noise images and algorithm processing, (A–F) images with speckle noise added for (0.02, 0.04, 0.06, 0.08, 0.1, 0.12 noise parameters, respectively).
The coordinates of the spot centres calculated by several positioning algorithms are shown in Table 1.
The comparison results show that the standard deviation of the algorithm proposed in this paper is smaller, and its stability and accuracy are higher than those of other classical algorithms.
3.3 Accuracy experiment results
The far-field spot image is panned to obtain five frames, and the same level of noise is added. As only horizontal panning is performed, the spot centre coordinates should only change on the y-axis. The results of the far-field spot panning and positioning are shown in Figure 9.
When moving in the horizontal direction, the centre of the extracted spot must also be a straight line in the vertical direction, and the straightness of this line is used as a criterion to evaluate the accuracy of the localisation algorithm. Figure 9 shows the straightness results for several localisation algorithms at different step sizes.
FIGURE 9. Far-field spot translation and positioning results. The (A–E) image represents the image after moving 20, 40, 60, 80, 100 units to the X-axis respectively.
The results of each algorithm were linearly fitted, and the results of the fit are shown in Figure 10A. The three coloured lines in the figure indicate the fitting results for several algorithms in the horizontal direction. Figure 10B shows the fit results for several algorithms in the horizontal direction.
FIGURE 10. Centre coordinate connections calculated by several algorithms. (A) represents a graph of the effect of several light-point localisation algorithms after panning the image, (B) represents a line graph of the variation of several light-point localisation algorithms on the Y-axis after panning the image.
From the aforementioned data, it is intuitively clear that our method is the best fit, meaning that each coordinate is very close to the trajectory of the motion, which matches the trajectory of the laser. The Hough transform method is the second most effective method, with coordinates that are essentially identical to the trajectory of the motion, and the residual sum of squares in the circular fitting method transformation is the largest.
4 Conclusion
The main research in this paper is an algorithm based on multi-scale Gaussian convolution for locating the centre of the far-field spot. To improve the accuracy of the segmentation, several methods are proposed in this paper. First, wavelet denoising is performed on images of multiple far-field spots, and the images of adjacent frames are subtracted. Second, due to the large size of the far-field spots, the Gaussian distribution of the laser energy is not obvious, so a multi-scale Gaussian convolution kernel is used to perform circular convolution on the denoised images. We also designed a multi-angle-based combination filter to filter the enhanced Gaussian distribution features. Finally, a bending polynomial is fitted to the reconstructed Gaussian energy distribution to obtain the maximum value; i.e., the location where the maximum value lies is the centre of the far-field point. In this article, three classical algorithms are chosen for comparison, and the proposed algorithm is more stable and accurate than the other three classical algorithms. Thus, the algorithm in this paper demonstrates that a laser point centre localisation algorithm based on multi-scale Gaussian convolution can be applied to the detection of far-field spot centres.
Data availability statement
The raw data supporting the conclusion of this article will be made available by the authors, without undue reservation.
Author contributions
XM proposed the idea and wrote the original manuscript. XM and HS performed the simulation work. HS helped collect the data. ZL helped in revising the original manuscript. JH and ZL supervised the research work and helped complete the experiment. All authors contributed to the article and approved the submitted version.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Yang YQ, Shi R. An algorithm to improve the accuracy of laser spot centre positioning by Hough transform[J]. J Opt (1999) 19(12): 6. doi:10.3321/j.issn:0253-2239.1999.12.013
2. Wu ZK, Li GQ, Wang WT, Ma C. Laser spot center detection based on improved circle fitting algorithm. Laser & Infrared (2016) 46(3):346–50. doi:10.3969/j.issn.1001-5078.2016.03.021
3. Xi JH, Bao H. Laser stripe center extraction algorithm based on improved centroid method. Fire Control & Command Control (2019) 44(5):149–53. doi:10.3969/j.issn.1002-0640.2019.05.032
4. Zhou HF, Ailing G. Research on sub-pixel localization of CCD spot centres in images. Metrology Tech (2007) (11) 21–3. doi:10.3969/j.issn.1000-0771.2007.11.007
5. Liu ZR, Wang ZQ, Liu SJ, Shen CW. Research on algorithm for accurate positioning of laser spot centre[J]. Comput Simul (2011) 28(5): 399–401. doi:10.3969/j.issn.1006-9348.2011.05.097
6. Zhang J. Research on the measurement accuracy of different laser spot center location. In: Proceedings Volume 11052, Third International Conference on Photonics and Optical Engineering; 110520K; 2019 Jan 24 (2019). doi:10.1117/12.2521709
7. Thomassamuel M, Chany T. A simple approach for the estimation of circular arc center and its radius. Comp Vis Graphics Image Process (1989) 45:362–70. doi:10.1016/0734-189x(89)90088-1
8. Liu K, Zhiping J, Fang H. Laser spot effective area detection technology[J]. Comput Modernization (2011) 8(10):70–3. doi:10.3969/j.issn.1006-2475.2011.10.020
9. Bai Z, Zhao Z, Tian M, Jin D, Pang Y, Li S, et al. A comprehensive review on the development and applications of narrow-linewidth lasers. Microwave Opt Tech Lett (2022) 64(12):2244–55. doi:10.1002/mop.33046
10. Andrews LC, Al-Habash MA, Hopen CY, Phillips RL. Theory of optical scintillation: Gaussian-Beam wave model. Waves Random Media (2001) 11:271–91. doi:10.1080/13616670109409785
11. Yang C, Goguen J. The Mars exploration rovers descent image motion estimation system. IEEE Intell Syst (2004) 3(19):13–21. doi:10.1109/MIS.2004.18
12. Tosellia I, Andrews LC, Phillips RL, Ferrero L. Angle of arrival fluctuations for free space laser beam propagation through non Kolmogorov turbulence. SPIE (2007) 6551:65510E-1–65510E-12. doi:10.1117/12.719033
13. Chen H, Bai Z, Yang X, Ding J, Qi Y, Yan B, et al. Enhanced stimulated Brillouin scattering utilizing Raman conversion in diamond. Appl Phys Lett (2022) 120(18):181103. doi:10.1063/5.0087092
14. Bai Z, Williams RJ, Kitzler O, Sarang S, Spence DJ, Wang Y, et al. Diamond Brillouin laser in the visible. APL Photon (2020) 5(3):031301. doi:10.1063/1.5134907
15. Guo XC, Ma PG, Pang DD, Sun J, Jin Q, Wei H. Research on laser center positioning under CV model segmentation[J]. Front Phys (2022): 104–5. doi:10.3389/fphy.2022.1021950
16. Luo W, Xue Q, Zhang Y, Shen J, Cao X. Enhancing sketch-based image retrieval by CNN semantic Re-ranking. IEEE Trans Cybernetics (2019) 50(7):3330–42. doi:10.1109/TCYB.2019.2894498
17. Tu Z, Xie W, Dauwels J. Semantic cues enhanced multi-modality multi-stream CNN for action recognition[J]. IEEE Trans Circuits Syst Video Tech (2018) 29(99):1423–37. doi:10.1109/TCSVT.2018.2830102
18. Zhang ZH, Wu X, Xu T. Combining multi-scale decomposition and octave convolution for infrared and visible image fusion[J]. Chin J Image Graphics (2023) 28(1):181. doi:10.11834/jig.220517
19. Lu HX, Liu ZB, Zhang J. Infrared image enhancement combining multiscale circular convolution and multiclustering space[J]. J Elect (2022)(2) 419. doi:10.12263/DZXB.2021017
Keywords: wavelet denoising, multi-scale, circular convolution, combination filters, far-field spot
Citation: Mi X, Sun H, Liu Z and Han J (2023) Research on far-field spot search and centre location algorithms. Front. Phys. 11:1230203. doi: 10.3389/fphy.2023.1230203
Received: 28 May 2023; Accepted: 07 July 2023;
Published: 24 July 2023.
Edited by:
Bofeng Zhu, Nanyang Technological University, SingaporeReviewed by:
Dongdong Pang, Beijing Institute of Technology, ChinaLiu Yuan, Nanjing University of Science and Technology, China
Copyright © 2023 Mi, Sun, Liu and Han. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Xiaohong Mi, aG9uZ3hpYW9taUAxNjMuY29t; JinYu Han, NDA3MjYyODU0QHFxLmNvbQ==