To enhance the real-time performance and accuracy of star point centroid extraction, an improved run-length encoding algorithm based on field programmable gate array(FPGA) was proposed for fast star point extraction. The algorithm combines the characteristics of star point targets with the parallel processing structure of field programmable gate array, addressing the shortcomings of the traditional run-length encoding algorithm that requires setting equivalence tables for label merging and multiple rounds of polling for run-length encoding during extraction. It only requires scanning the image once, and after a delay of several clock cycles, the centroid coordinate of the star point can be extracted. Finally, the algorithm is tested and validated on an field programmable gate array of a star sensor. With a clock frequency of 50 MHz and an input image resolution of 1 280×1 024 pixels, the algorithm takes about 2 us to extract the centroid of the star point, and the position is completely accurate. Compared to the nearly 19 ms consumed by centroid extraction using an Advanced RISC Machine(ARM), the improved algorithm demonstrates significant advantages and holds notable engineering application value.
ZhangLiu, HeJin-hang, LiuHe, et al. Star map recognition algorithm based on equal area ring and companion star angle[J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(3):821-827.
HanJin-liang. Research on star point matching and end-to-end recognition technology for dynamic star maps[D]. Changchun: Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences, 2022.
WeiXin-guo, ZhangGuang-jun, JiangJie. Research on star subdivision localization method of star map image in star sensor[J]. Journal of Beijing University of Aeronautics and Astronautics, 2003(9): 812-815.
WeiXin. Research on star map recognition algorithm of high precision star sensor[D]. Xi'an: Xi'an Institute of Optics and Precision Mechanics, Chinese Academy of Sciences, 2021.
YuWen-bo, JiangJie. Fast multi-channel star centroid extraction method with low storage resource overhead[J]. Journal of Beijing University of Aeronautics and Astronautics, 2018, 44(12): 2586-2594.
HaoXue-tao, JiangJie, ZhangGuang-jun. CMOS star sensor image driver and real-time star location algorithm[J]. Journal of Beijing University of Aeronautics and Astronautics, 2005,31(4): 381-384.
WangJing. Segmentation labeling algorithm and implementation in connected domain of binary image[J]. Infrared and Laser Engineering, 2010, 39(4): 761-765.
AzizabadiM, BehradA, Ghaznavi-GhoushchiM B. VLSI implementation of star detection and centroid calculation algorithms for star tracking applications[J]. Journal of Real-time Image Processing, 2014, 9(1): 127-140.
LiBao-hua, ZengQing-shuang, ZhangTong-shuang. An obtaining star locations method with FPGA for star sensor[J]. Navigation Positioning and Timing, 2015, 2(1): 46-51.
FanQiao-yun, ZhangGuang-jun. Spot centroiding algorithm for discrete noise image and its hardware implementation[J]. Optics and Precision Engineering, 2011, 19(12): 2992-2998.
Shu-wenTi. Research on star map preprocessing and star point extraction technology based on star sensor[D]. Harbin: College of Intelligent Systems Science and Engineering, Harbin Engineering University, 2020.