[go: up one dir, main page]

CN115393441B - A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system - Google Patents

A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system Download PDF

Info

Publication number
CN115393441B
CN115393441B CN202211322230.0A CN202211322230A CN115393441B CN 115393441 B CN115393441 B CN 115393441B CN 202211322230 A CN202211322230 A CN 202211322230A CN 115393441 B CN115393441 B CN 115393441B
Authority
CN
China
Prior art keywords
image
spot
expression
scanning
light spot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211322230.0A
Other languages
Chinese (zh)
Other versions
CN115393441A (en
Inventor
董科研
宋延嵩
刘超
张博
吴宏凯
梁宗林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun University of Science and Technology
Original Assignee
Changchun University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changchun University of Science and Technology filed Critical Changchun University of Science and Technology
Priority to CN202211322230.0A priority Critical patent/CN115393441B/en
Publication of CN115393441A publication Critical patent/CN115393441A/en
Application granted granted Critical
Publication of CN115393441B publication Critical patent/CN115393441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及一种基于液晶光闭环系统的光斑高精度提取定位方法,包括以下步骤:S1:对采集到的原始衍射光斑图像进行滤波处理;S2:对处理后的光斑图像通过进行阈值分割并输出图像;S3:对S2中输出的图像进行开运算操作;S4:对开运算操作后的图像进行横向扫描和纵向扫描,寻找目标光斑所在的区域;S5:根据S4中得到的目标光斑所在的区域,提取S2中处理后的图像中的目标光斑饱和平面区域的边缘轮廓线,并对提取的边缘轮廓线进行高斯截线拟合,得出边缘像素点的分布表达式,将表达式作为目标函数进行最小二乘拟合,通过计算求出求的光斑中心坐标,本发明与其它几种提取和定位方法相比较,在保证高精度的前提下,有着更快运算速度。

Figure 202211322230

The invention relates to a high-precision spot extraction and positioning method based on a liquid crystal optical closed-loop system, comprising the following steps: S1: filtering the collected original diffraction spot image; S2: thresholding and outputting the processed spot image Image; S3: carry out opening operation to the image output in S2; S4: carry out horizontal scanning and longitudinal scanning to the image after opening operation, find the area where target spot is located; S5: according to the area where target spot is located obtained in S4 , extract the edge contour line of the target spot saturation plane area in the processed image in S2, and perform Gaussian cross-section fitting on the extracted edge contour line, obtain the distribution expression of the edge pixel points, and use the expression as the objective function Carrying out the least squares fitting, and obtaining the center coordinates of the spot by calculation, compared with other extraction and positioning methods, the present invention has a faster calculation speed under the premise of ensuring high precision.

Figure 202211322230

Description

一种基于液晶光闭环系统的光斑高精度提取定位方法A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system

技术领域technical field

本发明涉及空间激光通信技术领域,具体涉及一种基于液晶光闭环系统的光斑高精度提取定位方法。The invention relates to the technical field of space laser communication, in particular to a method for high-precision extraction and positioning of light spots based on a liquid crystal optical closed-loop system.

背景技术Background technique

典型无线激光通信系统主要包含终端发射、接收系统与APT光束控制系统。在发射端,待发送信号通过编码器编码后发送至调制器,调制电路将编码后的数据转换为相应的电压信号,调制信号经过自动功率控制系统后加载在半导体激光器上,最后激光器发出的已调制光束,该光束经过光学发射天线以极小的束散角发射出去。在接收端,光学接收天线收集自由空间中的信号光,光束经过分束系统后,一部分光束传输至APT系统,另一部分光束传输至信号接收探测器。APT系统以光束位置误差作为反馈实现光束的捕获、对准与跟踪功能;另一方面光信号经过光电检测系统转换成电信号,通过解调电路还原出基带信号,最后经过解码器输出原始信号。在传统的APT系统中,采用利用压电陶瓷驱动快速反射镜(Fast Steering Mirror,FSM)对光束位置进行调整。传统的压电陶瓷驱动方式,这一机械伺服的控制方式带宽只能达到几十到几百赫兹量级。为了解决这一问题科研人员提出了非机械伺服的控制方式,这一方法适应更大的带宽量级,更大振动幅度以及更高的频率范围。A typical wireless laser communication system mainly includes a terminal transmitting and receiving system and an APT beam control system. At the transmitting end, the signal to be sent is encoded by the encoder and then sent to the modulator. The modulation circuit converts the encoded data into a corresponding voltage signal. The modulated signal is loaded on the semiconductor laser after passing through the automatic power control system. A modulated light beam is emitted through an optical transmit antenna with a very small beam spread. At the receiving end, the optical receiving antenna collects the signal light in free space. After the beam passes through the beam splitting system, part of the beam is transmitted to the APT system, and the other part of the beam is transmitted to the signal receiving detector. The APT system uses the beam position error as feedback to realize the capture, alignment and tracking functions of the beam; on the other hand, the optical signal is converted into an electrical signal through the photoelectric detection system, and the baseband signal is restored through the demodulation circuit, and finally the original signal is output through the decoder. In the traditional APT system, the position of the beam is adjusted by using piezoelectric ceramics to drive the Fast Steering Mirror (FSM). In the traditional piezoelectric ceramic drive method, the bandwidth of this mechanical servo control method can only reach the order of tens to hundreds of hertz. In order to solve this problem, researchers have proposed a non-mechanical servo control method, which is suitable for larger bandwidth magnitude, larger vibration amplitude and higher frequency range.

液晶空间光调制器闭环系统就是一种典型的非机械伺服控制系统。液晶空间光调制器具有电控双折射效应,通过改变电压可以使光束发生偏转。液晶空间光调制器所构成系统的简化模型如图1所示。激光经过激光器、起偏器、分光镜,在空间中传播过一段距离后,光束打到液晶空间光调制器上,光束在经过液晶空间光调制器之后,会产生布拉格衍射效应,多个衍射光斑被CCD相机接受后,水平“一字”排布在图像当中。对能量最大的+1级衍射光斑进行提取定位,获得其空间位置;之后将空间位置反馈给伺服系统,使得施加给液晶空间光调制器的电压改变,进而改变光斑位置使其对准无线激光通信系统接收端。CCD相机采集到的衍射光斑图像如图2所示。一系列光斑水平排布在图像中,+1级衍射光斑周围光斑随着距离增大逐渐变小。The closed-loop system of liquid crystal spatial light modulator is a typical non-mechanical servo control system. The liquid crystal spatial light modulator has an electronically controlled birefringence effect, and the beam can be deflected by changing the voltage. The simplified model of the system composed of the liquid crystal spatial light modulator is shown in Figure 1. After the laser beam passes through the laser, polarizer, and beam splitter, and travels a certain distance in space, the beam hits the liquid crystal spatial light modulator. After the beam passes through the liquid crystal spatial light modulator, it will produce Bragg diffraction effect, and multiple diffraction spots After being accepted by the CCD camera, the horizontal "line" is arranged in the image. Extract and locate the +1st-order diffraction spot with the largest energy to obtain its spatial position; then feed back the spatial position to the servo system, so that the voltage applied to the liquid crystal spatial light modulator changes, and then changes the position of the spot to align it with the wireless laser communication system receiver. The diffraction spot image collected by the CCD camera is shown in Figure 2. A series of light spots are arranged horizontally in the image, and the light spots around the +1 order diffraction spot gradually become smaller as the distance increases.

关于从多个光斑中提取某一特定光斑,国内外缺少相关的文献资料。依据液晶空间光调制器闭环系统所需提取光斑的能量特性,可知所需提取的目标光斑具有最大的能量。而最大能量的光斑在CCD采集图像中占有最多的灰度总和以及最大的面积,故常见方法是提取连通域再选择最大连通域的方法以及提取目标边缘轮廓再选择最长轮廓的方法。但是提取最大连通域需要2次遍历标记出图像中各个连通域,然后再进行选取,同时在硬件实现上也具有一定的难度。提取最长边缘轮廓也需要先逐个提取光斑轮廓再经过比较来得出最大光斑。Regarding the extraction of a specific spot from multiple spots, there is a lack of relevant literature at home and abroad. According to the energy characteristics of the extracted light spot required by the closed-loop system of the liquid crystal spatial light modulator, it can be known that the target light spot to be extracted has the maximum energy. The spot with the largest energy occupies the largest sum of gray levels and the largest area in the image captured by the CCD. Therefore, the common methods are to extract the connected domain and then select the largest connected domain, and to extract the target edge contour and then select the longest contour. However, extracting the largest connected domain requires 2 traversals to mark each connected domain in the image, and then select it, and it is also difficult in hardware implementation. Extracting the longest edge profile also requires extracting the spot profiles one by one and then comparing them to obtain the maximum spot.

无线激光通信系统中的光束属于激光,前人对激光光斑的提取提出了很多种方法可供参考。一类是基于灰度值的方法,其中比较有代表性的是灰度质心法、高斯曲面拟合法;另一类是基于边缘的方法,比较常见的是圆拟合法、椭圆拟合法、霍夫变换法及其改进方法。文中激光光斑轮廓存在毛刺和不规则边缘,利用基于边缘的方法计算中心时,在残差项中难免会引入误差点;同时由于激光光斑能量分布符合高斯分布,所以基于灰度值的方法能够很好得契合能量分布特性。其中最能契合高斯分布特性的是高斯曲面拟合法。但是由于激光能量过高,CCD相机拍摄的光斑在中心区存在灰度值饱和的现象,单纯的高斯曲面拟合无法采集足够的样本点会引入误差并且该方法计算量过大会引入更大的延迟时间。The beam in the wireless laser communication system belongs to the laser, and the predecessors have proposed many methods for the extraction of the laser spot for reference. One is the method based on the gray value, among which the gray centroid method and the Gaussian surface fitting method are more representative; the other is the method based on the edge, the more common ones are the circle fitting method, the ellipse fitting method, the Hough Transformation method and its improvement method. In this paper, there are burrs and irregular edges in the laser spot profile. When using the edge-based method to calculate the center, it is inevitable to introduce error points in the residual item; at the same time, because the energy distribution of the laser spot conforms to the Gaussian distribution, the method based on the gray value can be very fast. It fits the energy distribution characteristics well. Among them, the Gaussian surface fitting method can best fit the characteristics of Gaussian distribution. However, because the laser energy is too high, the light spots captured by the CCD camera have a gray value saturation phenomenon in the central area, and the simple Gaussian surface fitting cannot collect enough sample points, which will introduce errors, and the calculation of this method is too large, which will lead to greater delay. time.

发明内容Contents of the invention

因此,本发明要解决的技术问题在于克服现有技术中单纯的高斯曲面拟合无法采集足够的样本点会引入误差并且该方法计算量过大会引入更大的延迟时间的缺陷,从而一种提供基于液晶光闭环系统的光斑高精度提取定位方法。Therefore, the technical problem to be solved by the present invention is to overcome the defect that the simple Gaussian surface fitting in the prior art cannot collect enough sample points, which will introduce errors and the method will introduce a larger delay time if the amount of calculation is too large, so as to provide High-precision extraction and positioning method of light spot based on liquid crystal optical closed-loop system.

一种基于液晶光闭环系统的光斑高精度提取定位方法,包括以下步骤:A method for high-precision extraction and positioning of light spots based on a liquid crystal optical closed-loop system, comprising the following steps:

S1:对CCD采集到的原始衍射光斑图像进行中值滤波处理;S1: Carry out median filter processing to the original diffraction spot image collected by CCD;

S2:对中值滤波处理后的光斑图像通过迭代法进行阈值分割并输出图像;S2: performing threshold segmentation on the spot image processed by the median filter by an iterative method and outputting the image;

S3:对S2中输出的图像进行开运算操作;S3: carry out opening operation to the image output in S2;

S4:对开运算操作后的图像进行横向扫描和纵向扫描,寻找横向和纵向跨度最大的连通区域,即目标光斑所在的区域;S4: horizontal scanning and vertical scanning are carried out to the image after the opening operation, to find the connected region with the largest horizontal and vertical span, that is, the region where the target spot is located;

S5: 根据S4中得到的目标光斑所在的区域,提取S2中中值滤波后的图像中的目标光斑饱和平面区域的边缘轮廓线,并对提取的边缘轮廓线进行高斯截线拟合,边缘像素点的分布表达式为:S5: According to the area where the target spot is located obtained in S4, extract the edge contour line of the target spot saturation plane area in the image after median filtering in S2, and perform Gaussian section line fitting to the extracted edge contour line, edge pixels The point distribution expression is:

Figure 275646DEST_PATH_IMAGE001
Figure 275646DEST_PATH_IMAGE001
;

其中:x和y为像素点在图像中所在的横纵坐标,x0和y0为斯曲面的顶点所在的空间位置,δx和δy为高斯曲面函数的方差,A为幅值;Among them: x and y are the horizontal and vertical coordinates of the pixel in the image, x 0 and y 0 are the spatial positions of the vertices of the Steinian surface, δ x and δ y are the variance of the Gaussian surface function, and A is the amplitude;

将上述表达式作为目标函数进行最小二乘拟合,求出x0和y0,(x0,y0) 即为所求的光斑中心坐标。Use the above expression as the objective function to perform least square fitting to find x 0 and y 0 , and (x 0 , y 0 ) are the center coordinates of the desired spot.

进一步,所述步骤S2中迭代法进行阈值分割具体步骤为:Further, the iterative method in the step S2 performs threshold segmentation and the specific steps are:

S2.1:选取一个初始阈值T0S2.1: select an initial threshold T 0 ;

S2.2:利用阈值T0把图像分割成两部分,两部分的图像灰度分别为R1和R2;S2.2: Utilize the threshold T0 to divide the image into two parts, and the image gray levels of the two parts are R1 and R2 respectively;

S2.3:计算R1的均值和R2的均值,分别记作μ1和μ2S2.3: Calculate the mean value of R1 and the mean value of R2, denoted as μ 1 and μ 2 respectively;

S2.4:选取一个新的阈值T,且

Figure 661628DEST_PATH_IMAGE002
;S2.4: Select a new threshold T, and
Figure 661628DEST_PATH_IMAGE002
;

S2.5:若T与T0差值的绝对值小于预设值,则T为最终阈值,否则令T0=T并重复步骤S2.2-S2.5。S2.5: If the absolute value of the difference between T and T0 is less than the preset value, then T is the final threshold, otherwise set T 0 =T and repeat steps S2.2-S2.5.

进一步,所述步骤S4中对图像横向扫描的具体步骤为:Further, the specific steps of scanning the image horizontally in the step S4 are:

S4.1.1:对图像第一行进行扫描,记录该行像素值为1的点的个数,压入栈中;S4.1.1: Scan the first line of the image, record the number of points with a pixel value of 1 in this line, and push it into the stack;

S4.1.2:遍历所有行,对其它行重复步骤S4.1.1中对第一行扫描的步骤;S4.1.2: traverse all rows, and repeat the step of scanning the first row in step S4.1.1 for other rows;

S4.1.3:逐个读出栈中的元素,并记录读出的顺序;S4.1.3: Read out the elements in the stack one by one, and record the order of reading;

S4.1.4:找到能够连续读出非零值最长的序列,该序列的读出顺序对应主光斑的行位置。S4.1.4: Find the sequence that can continuously read out the longest non-zero value, and the readout sequence of the sequence corresponds to the row position of the main light spot.

进一步,所述步骤S4中对图像纵向扫描的具体步骤为:Further, the specific steps of vertically scanning the image in the step S4 are:

S4.2.1:对图像第一列进行扫描,记录该列像素值为1的点的个数,压入栈中;S4.2.1: Scan the first column of the image, record the number of points with a pixel value of 1 in this column, and push it into the stack;

S4.2.2:遍历所有列,对其它行重复步骤S4.2.1中对第一列扫描的步骤;S4.2.2: traverse all columns, and repeat the step of scanning the first column in step S4.2.1 for other rows;

S4.2.3:逐个读出栈中的元素,并记录读出的顺序;S4.2.3: Read out the elements in the stack one by one, and record the order of reading;

S4.2.4:找到能够连续读出非零值最长的序列,该序列的读出顺序对应主光斑的列位置。S4.2.4: Find the sequence that can continuously read out the longest non-zero value, and the readout sequence of the sequence corresponds to the column position of the main light spot.

进一步,所述初始阈值T0为图像中最大的灰度值和最小的灰度值的均值。Further, the initial threshold T 0 is an average value of the maximum gray value and the minimum gray value in the image.

进一步,所述预设值为0.1。Further, the preset value is 0.1.

一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述方法的步骤。An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of any one of the methods described above when executing the computer program.

一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时上实现上述任一项所述方法的步骤。A computer-readable storage medium is used for storing computer instructions, and when the computer instructions are executed by a processor, the steps of any one of the methods described above are implemented.

本发明技术方案适用于基于液晶空间光闭环系统中的光斑提取,较其它几种提取和定位方法比较,在保证高精度的前提下,有着更快的运算速度,在逻辑上更适合硬件环境的实现。The technical solution of the present invention is suitable for spot extraction in a closed-loop system based on liquid crystal space light. Compared with other extraction and positioning methods, it has a faster calculation speed under the premise of ensuring high precision, and is logically more suitable for hardware environments. accomplish.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the specific embodiments or prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为液晶空间光调制器所构成系统的简化模型图;Fig. 1 is a simplified model diagram of a system composed of a liquid crystal spatial light modulator;

图2为衍射光斑图像;Figure 2 is a diffraction spot image;

图3为光斑提取结果示意图;Figure 3 is a schematic diagram of the spot extraction results;

图4为+1级衍射光斑的能量分布三维图;Figure 4 is a three-dimensional diagram of the energy distribution of the +1 order diffraction spot;

图5为+1级光斑顶峰外围轮廓。Figure 5 is the outline of the peak of the +1-level spot.

具体实施方式Detailed ways

下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, or in a specific orientation. construction and operation, therefore, should not be construed as limiting the invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and should not be construed as indicating or implying relative importance.

在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connected, or integrally connected; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.

此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as there is no conflict with each other.

一种基于液晶光闭环系统的光斑高精度提取定位方法,包括以下步骤:A method for high-precision extraction and positioning of light spots based on a liquid crystal optical closed-loop system, comprising the following steps:

S1:对CCD采集到的原始衍射光斑图像进行中值滤波处理,消除单像素噪点的影响,达到滤波的效果;S1: Perform median filter processing on the original diffraction spot image collected by the CCD to eliminate the influence of single-pixel noise and achieve the effect of filtering;

S2:对中值滤波处理后的光斑图像通过迭代法进行阈值分割并输出图像;S2: performing threshold segmentation on the spot image processed by the median filter by an iterative method and outputting the image;

S3:对S2中输出的图像进行开运算操作;用迭代法得到的光斑图像中,在光斑周围仍存在一系列的毛刺,不利于后续对光斑的准确提取,故本发明在阈值分割后加入了开运算的操作,在不明显改变光斑面积的同时,消除光斑周围的毛刺边缘;S3: open operation is carried out to the image output in S2; In the light spot image that obtains with iterative method, there are still a series of burrs around the light spot, which is unfavorable for subsequent accurate extraction of light spots, so the present invention adds after threshold segmentation The operation of opening operation eliminates the burr edges around the spot without significantly changing the area of the spot;

S4: 本发明中光斑提取的基本思想是利用光斑呈现水平分布,且目标光斑具有最高的能量和最大的面积的特性,故对开运算操作后的图像进行横向扫描和纵向扫描,寻找横向和纵向跨度最大的连通区域,经过两次扫描寻找两个方向跨度最大的坐标范围即是目标光斑所在的位置,光斑提取得到的结果如图3所示;S4: The basic idea of the light spot extraction in the present invention is to use the light spots to present a horizontal distribution, and the target light spot has the characteristics of the highest energy and the largest area, so the image after the opening operation is scanned horizontally and vertically to find the horizontal and vertical For the connected area with the largest span, after two scans, find the coordinate range with the largest span in the two directions, which is the location of the target spot. The result of spot extraction is shown in Figure 3;

本发明所需提取的光斑是激光光斑,理想的激光光斑能量分布呈现高斯分布,但本系统中的衍射光斑在被CCD相机采集后,由于CCD相机的光敏元饱和,光斑中心一带的像素值都显示为最大像素值。如图4所示,从图中可以看到衍射光斑的能量在顶峰处因为饱和而被削去形成一个平面。The spot to be extracted in the present invention is a laser spot, and the ideal laser spot energy distribution presents a Gaussian distribution, but after the diffraction spot in this system is collected by a CCD camera, due to the saturation of the photosensitive element of the CCD camera, the pixel values in the center of the spot are all Displayed as maximum pixel value. As shown in Figure 4, it can be seen from the figure that the energy of the diffraction spot is cut off at the peak to form a plane due to saturation.

图3中光斑可以采用高斯曲面拟合的方法进行定位,光斑能量分布的函数公式如下:The spot in Figure 3 can be positioned using the Gaussian surface fitting method, and the functional formula of the spot energy distribution is as follows:

Figure 503682DEST_PATH_IMAGE003
(1),
Figure 503682DEST_PATH_IMAGE003
(1),

上式中ƒ(x,y)表示光斑的能量,在图像中为像素点的灰度值,x和y为像素点在图像中所在的横纵坐标,x0和y0为斯曲面的顶点所在的空间位置,δx和δy为高斯曲面函数的方差,A为幅值;In the above formula, ƒ(x, y) represents the energy of the spot, which is the gray value of the pixel in the image, x and y are the horizontal and vertical coordinates of the pixel in the image, and x 0 and y 0 are the vertices of the Si surface The spatial position, δx and δy are the variance of the Gaussian surface function, and A is the amplitude;

可是由于样本点的减少精度会低于完整光斑的提取效果,而且高斯曲面拟合法需要带入大量的样本点。为此本发明针对这种情况,提出了高斯截线的拟合方法,在图4顶端平面处的像素值都是255,我们采用的高斯截线法利用的是顶端平面处外围一圈的闭合曲线,闭合曲线上各点的空间位置不同,但是灰度值都是255。这种方法有着较高的精度同时所需拟合的样本点大大减少,同时兼顾了精度和效率两个方面,具体如步骤S5;However, the accuracy of the reduction of sample points will be lower than the extraction effect of the complete spot, and the Gaussian surface fitting method needs to bring in a large number of sample points. For this reason the present invention is aimed at this situation, has proposed the fitting method of Gaussian section line, the pixel value at the top plane place in Fig. Curve, the spatial position of each point on the closed curve is different, but the gray value is 255. This method has high precision and greatly reduces the number of sample points required for fitting, while taking into account both precision and efficiency, specifically as in step S5;

S5: 根据S4中得到的目标光斑所在的区域,提取S2中中值滤波后的图像中的目标光斑饱和平面区域的边缘轮廓线,具体为:对目标光斑所在空间区域进行遍历,找寻与小于255的像素点邻接的像素值为255的像素点,提取到的轮廓如图5所示;S5: According to the area where the target light spot is located in S4, extract the edge contour line of the target light spot saturation plane area in the image after median filtering in S2, specifically: traverse the space area where the target light spot is located, and search for a value less than 255 The adjacent pixel value of the pixel is 255, and the extracted contour is shown in Figure 5;

对提取的边缘轮廓线进行高斯截线拟合,边缘像素点的分布表达式为:Gaussian section line fitting is performed on the extracted edge contour, and the distribution expression of edge pixels is:

Figure 226788DEST_PATH_IMAGE004
(2),
Figure 226788DEST_PATH_IMAGE004
(2),

A、δx、δy、x0和y0是待定参数,将公式(2)作为目标函数进行最小二乘拟合,求出x0和y0,(x0,y0) 即为所求的光斑中心坐标。A, δx, δy, x 0 and y 0 are undetermined parameters, and formula (2) is used as the objective function to perform least square fitting to find x 0 and y 0 , (x 0 , y 0 ) is the desired Spot center coordinates.

为了便于进行运算我们将式(2)以对数形式表达,得到公式(3),具体如下:In order to facilitate the calculation, we express the formula (2) in logarithmic form, and get the formula (3), as follows:

Figure 103477DEST_PATH_IMAGE005
(3),
Figure 103477DEST_PATH_IMAGE005
(3),

公式(3)经过进一步变换可以用二次多项式的形式进行表达,如公式(4)所示。将函数转化为多项式的表达形式有诸多便利,特别是在函数求导数以及偏导数之后所得结果仍旧是多项式的形式,有利于项与项之间的合并,简化运算过程;Formula (3) can be expressed in the form of quadratic polynomial after further transformation, as shown in formula (4). Converting a function into a polynomial form of expression has many advantages, especially after the derivative and partial derivative of the function are obtained, the result is still in the form of a polynomial, which is conducive to the combination of items and simplifies the calculation process;

Figure 253836DEST_PATH_IMAGE006
(4),
Figure 253836DEST_PATH_IMAGE006
(4),

其中a、b、c、d和e的表达形式如下式(5)所示:The expressions of a, b, c, d and e are shown in the following formula (5):

Figure 848765DEST_PATH_IMAGE007
(5),
Figure 848765DEST_PATH_IMAGE007
(5),

a、b、c、d和e即是待求解的未知数,求出之后可以再根据公式(5)求出光斑的中心坐标(x0,y0)。a, b, c, d and e are the unknowns to be solved, and after they are calculated, the center coordinates (x 0 , y 0 ) of the light spot can be calculated according to the formula (5).

利用最小二乘求解,使得残差平方和最小,残差的平方和 表达式如公式(6)所示:The least squares solution is used to minimize the sum of squares of the residual, and the expression of the sum of squares of the residual is shown in formula (6):

Figure 250927DEST_PATH_IMAGE008
(6),
Figure 250927DEST_PATH_IMAGE008
(6),

上式中的求和范围是光斑饱和部分外围的一圈像素点,也就是图5所得的轮廓,x和y 是外围像素点所在的空间位置,作为已知数据进行带入。The summation range in the above formula is a circle of pixels around the saturated part of the light spot, which is the outline obtained in Figure 5. x and y are the spatial positions of the peripheral pixels, which are brought in as known data.

根据最小值条件,对每个变量求偏导并令其为0,再进行移项得到方程组(7),具体如下:According to the minimum value condition, calculate the partial derivative of each variable and make it 0, and then perform the transposition to obtain the equation group (7), as follows:

Figure 982123DEST_PATH_IMAGE009
(7),
Figure 982123DEST_PATH_IMAGE009
(7),

方程组(7)可进一步写成矩阵的表达形式,如公式(8)所示:Equation (7) can be further written in the form of matrix, as shown in formula (8):

Figure 303383DEST_PATH_IMAGE010
(8),
Figure 303383DEST_PATH_IMAGE010
(8),

其中B、K和C的矩阵表达形式分别如式(9)、(10)和(11)所示,具体如下:The matrix expressions of B, K, and C are shown in formulas (9), (10) and (11), respectively, as follows:

Figure 120029DEST_PATH_IMAGE011
(9),
Figure 120029DEST_PATH_IMAGE011
(9),

Figure 184937DEST_PATH_IMAGE012
(10),
Figure 184937DEST_PATH_IMAGE012
(10),

Figure 36219DEST_PATH_IMAGE013
(11),
Figure 36219DEST_PATH_IMAGE013
(11),

利用被截取的边缘像素点的空间坐标和表达式(9)可以求出a、b、c、d和e一系列参数的值,最后根据公式(5)即可求出光斑的中心坐标(x0,y0)。The values of a series of parameters a, b, c, d and e can be obtained by using the spatial coordinates of the intercepted edge pixels and the expression (9), and finally the center coordinates of the spot (x 0 , y 0 ).

所述步骤S2中迭代法进行阈值分割具体步骤为:In the step S2, the iterative method performs threshold segmentation and the specific steps are:

S2.1:选取一个初始阈值T0S2.1: select an initial threshold T 0 ;

S2.2:利用阈值T0把图像分割成两部分,两部分的图像灰度分别为R1和R2;S2.2: Utilize the threshold T 0 to divide the image into two parts, and the image gray levels of the two parts are R1 and R2 respectively;

S2.3:计算R1的均值和R2的均值,分别记作μ1和μ2S2.3: Calculate the mean value of R1 and the mean value of R2, denoted as μ 1 and μ 2 respectively;

S2.4:选取一个新的阈值T,且

Figure 528380DEST_PATH_IMAGE002
;S2.4: Select a new threshold T, and
Figure 528380DEST_PATH_IMAGE002
;

S2.5:若T与T0差值的绝对值小于预设值,则T为最终阈值,否则令T0=T并重复步骤S2.2-S2.5。S2.5: If the absolute value of the difference between T and T 0 is less than the preset value, then T is the final threshold, otherwise set T 0 =T and repeat steps S2.2-S2.5.

所述步骤S4中对图像横向扫描的具体步骤为:The specific steps of horizontally scanning the image in the step S4 are:

S4.1.1:对图像第一行进行扫描,记录该行像素值为1的点的个数,压入栈中;S4.1.1: Scan the first line of the image, record the number of points with a pixel value of 1 in this line, and push it into the stack;

S4.1.2:遍历所有行,对其它行重复步骤S4.1.1中对第一行扫描的步骤;S4.1.2: traverse all rows, and repeat the step of scanning the first row in step S4.1.1 for other rows;

S4.1.3:逐个读出栈中的元素,并记录读出的顺序;S4.1.3: Read out the elements in the stack one by one, and record the order of reading;

S4.1.4:找到能够连续读出非零值最长的序列,该序列的读出顺序对应主光斑的行位置。S4.1.4: Find the sequence that can continuously read out the longest non-zero value, and the readout sequence of the sequence corresponds to the row position of the main light spot.

所述步骤S4中对图像纵向扫描的具体步骤为:The specific steps of vertically scanning the image in the step S4 are:

S4.2.1:对图像第一列进行扫描,记录该列像素值为1的点的个数,压入栈中;S4.2.1: Scan the first column of the image, record the number of points with a pixel value of 1 in this column, and push it into the stack;

S4.2.2:遍历所有列,对其它行重复步骤S4.2.1中对第一列扫描的步骤;S4.2.2: traverse all columns, and repeat the step of scanning the first column in step S4.2.1 for other rows;

S4.2.3:逐个读出栈中的元素,并记录读出的顺序;S4.2.3: Read out the elements in the stack one by one, and record the order of reading;

S4.2.4:找到能够连续读出非零值最长的序列,该序列的读出顺序对应主光斑的列位置。S4.2.4: Find the sequence that can continuously read out the longest non-zero value, and the readout sequence of the sequence corresponds to the column position of the main light spot.

所述初始阈值T0为图像中最大的灰度值和最小的灰度值的均值。The initial threshold T 0 is the mean value of the maximum gray value and the minimum gray value in the image.

所述预设值为0.1。The preset value is 0.1.

本发明还包括一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述方法的步骤。The present invention also includes an electronic device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of any one of the methods described above when executing the computer program.

本发明还包括一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时上述任一项所述方法的步骤。The present invention also includes a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the steps of any one of the methods described above.

本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasablePROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM 可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambusRAM,DR RAM)。应注意,本发明描述的方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。The memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read only memory (read only memory, ROM), programmable read only memory (programmable ROM, PROM), erasable programmable read only memory (erasable PROM, EPROM), electrically erasable Programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM ), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and Direct memory bus random access memory (direct rambusRAM, DR RAM). It should be noted that the memory of the methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disc, SSD)) etc.

在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.

应注意,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the processor in the embodiment of the present application may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software. The above-mentioned processors may be general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

本发明适用于基于液晶空间光闭环系统中的光斑提取,较其它几种提取和定位方法比较,在保证高精度的前提下,有着更快的运算速度。The invention is suitable for spot extraction in a closed-loop system based on liquid crystal space light. Compared with other extraction and positioning methods, the invention has faster calculation speed under the premise of ensuring high precision.

显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Apparently, the above-mentioned embodiments are only examples for clear description, rather than limiting the implementation. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. And the obvious changes or changes derived therefrom are still within the scope of protection of the present invention.

Claims (8)

1. A light spot high-precision extraction positioning method based on a liquid crystal light closed-loop system is characterized by comprising the following steps:
s1, performing median filtering processing on an original diffraction spot image acquired by a CCD (charge coupled device);
s2, performing threshold segmentation on the light spot image subjected to median filtering by an iteration method and outputting the image;
s3, performing open operation on the image output in the S2;
s4, performing transverse scanning and longitudinal scanning on the image subjected to the opening operation, and searching a connected region with the largest transverse and longitudinal spans, namely a region where the target light spot is located;
s5, according to the area where the target light spot is obtained in the S4, extracting an edge contour line of a target light spot saturated plane area in the image subjected to median filtering in the S2, specifically: traversing the spatial region where the target light spot is located, finding out the pixel point with the pixel value of 255 adjacent to the pixel point smaller than 255, and performing Gaussian sectional fitting on the extracted edge contour line, wherein the distribution expression of the edge pixel point is as follows:
Figure FDA0003990548280000011
wherein: x and y are the horizontal and vertical coordinates of the pixel points in the image, x 0 And y 0 Is the spatial position of the vertex of the sigmoid, delta x And delta y Is the variance of the Gaussian surface function, and A is the amplitude;
A、δx、δy、x 0 and y 0 For undetermined parameters, performing least square fitting by taking a distribution expression of edge pixel points as a target function to obtain x 0 And y 0 ,x 0 ,y 0 The coordinate of the light spot center is obtained;
expressing the distribution expression of the edge pixel points in a logarithmic mode, wherein the logarithmic expression is as follows:
Figure FDA0003990548280000021
expressing the logarithmic expression in the form of a quadratic polynomial, wherein the quadratic polynomial is specifically as follows:
ln 255 =ax 2 +by 2 +cx+by+e,
wherein the expressions of a, b, c, d and e are specifically as follows:
Figure FDA0003990548280000022
a. b, c, d and e are unknowns to be solved, and then the central coordinate x of the light spot is solved according to the expression of a, b, c, d and e 0 ,y 0
And solving by using least squares to minimize the sum of squares of the residuals, wherein the expression of the sum of squares of the residuals is as follows:
Q=∑(ax 2 +by 2 +cx+dy+e-ln 255 ) 2
the summation range in the residual square sum expression is a circle of pixel points at the periphery of the saturated part of the light spot, and x and y are the spatial positions of the peripheral pixel points and are taken as known data to be brought in;
according to the minimum condition, calculating the partial derivative of each variable and making the partial derivative be 0, and then performing item shifting to obtain an equation set, wherein the equation set is as follows:
Figure FDA0003990548280000031
writing the equation set into an expression form of a matrix, wherein the matrix is specifically as follows:
BK=C
BK=C,
wherein the matrix expressions of B, K and C are respectively as follows:
Figure FDA0003990548280000032
Figure FDA0003990548280000033
Figure FDA0003990548280000041
the values of parameters a, B, c, d and e are solved by using the intercepted space coordinates of the edge pixel points and the matrix expression of B, and finally the central coordinate x of the light spot is solved according to the expressions of a, B, c, d and e 0 ,y 0
2. The method according to claim 1, wherein the iterative threshold segmentation in step S2 specifically comprises the steps of:
s2.1 selecting an initial threshold T 0
S2.2 Using threshold T 0 Dividing an image into two parts, wherein the gray scales of the two parts are R1 and R2 respectively;
s2.3 calculating the mean value of R1 and R2, respectively denoted as mu 1 And mu 2
S2.4, selecting a new threshold value T, and
Figure FDA0003990548280000042
s2.5 if T and T 0 If the absolute value of the difference is smaller than the preset value, T is the final threshold value, otherwise T is enabled 0 T and repeat steps S2.2-S2.5.
3. The method according to claim 1, wherein the step S4 of scanning the image laterally comprises the following specific steps:
s4.1.1: scanning a first line of the image, recording the number of points with pixel values of 1 in the line, and pressing the points into a stack;
s4.1.2: traversing all the rows, and repeating the step of scanning the first row in the step S4.1.1 for other rows;
s4.1.3: reading elements in the stack one by one, and recording the reading sequence;
s4.1.4: the sequence with the longest non-zero values that can be read out continuously is found, and the reading order of the sequence corresponds to the row position of the main spot.
4. The method according to claim 1, wherein the step S4 of longitudinally scanning the image comprises the following specific steps:
s4.2.1: scanning a first column of the image, recording the number of points with the pixel value of 1 in the column, and pressing the points into a stack;
s4.2.2: traversing all columns, repeating the step of scanning the first column in step S4.2.1 for other rows;
s4.2.3: reading elements in the stack one by one, and recording the reading sequence;
s4.2.4: the longest sequence of non-zero values that can be read out continuously is found, the read-out order of the sequence corresponding to the column position of the main spot.
5. Method according to claim 2, characterized in that said initial threshold T is 0 Is the average of the maximum and minimum gray values in the image.
6. The method according to claim 2, characterized in that said preset value is 0.1.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, performs the steps of the method according to any of claims 1-6.
8. A computer-readable storage medium storing computer instructions, which when executed by a processor implement the steps of the method of any one of claims 1 to 6.
CN202211322230.0A 2022-10-27 2022-10-27 A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system Active CN115393441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211322230.0A CN115393441B (en) 2022-10-27 2022-10-27 A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211322230.0A CN115393441B (en) 2022-10-27 2022-10-27 A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system

Publications (2)

Publication Number Publication Date
CN115393441A CN115393441A (en) 2022-11-25
CN115393441B true CN115393441B (en) 2023-01-20

Family

ID=84128778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211322230.0A Active CN115393441B (en) 2022-10-27 2022-10-27 A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system

Country Status (1)

Country Link
CN (1) CN115393441B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315011B (en) * 2023-11-30 2024-04-02 吉林珩辉光电科技有限公司 Method and device for positioning light spot center in atmospheric turbulence

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915973A (en) * 2015-06-30 2015-09-16 南京大学 Method for solving center of regular circle in image
CN107796323A (en) * 2017-11-06 2018-03-13 东南大学 A kind of micro- change detecting system of bridge based on hot spot vision signal intellectual analysis
CN110246115A (en) * 2019-04-23 2019-09-17 西安理工大学 A kind of detection method of far-field laser light spot image
CN112270703A (en) * 2020-09-29 2021-01-26 广东工业大学 A sub-pixel-level centroid extraction method for spot images for positioning systems
CN113935948A (en) * 2021-09-10 2022-01-14 南京邮电大学 Grating image target positioning optimization and wavelength characteristic analysis method and device
CN114565565A (en) * 2022-02-11 2022-05-31 山西支点科技有限公司 Method for positioning sub-pixels in center of vision measurement target

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9208394B2 (en) * 2005-09-05 2015-12-08 Alpvision S.A. Authentication of an article of manufacture using an image of the microstructure of it surface
CN104318235B (en) * 2014-10-24 2017-06-16 南京大学 A kind of spot center extracting method and device based on intensity profile modeling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915973A (en) * 2015-06-30 2015-09-16 南京大学 Method for solving center of regular circle in image
CN107796323A (en) * 2017-11-06 2018-03-13 东南大学 A kind of micro- change detecting system of bridge based on hot spot vision signal intellectual analysis
CN110246115A (en) * 2019-04-23 2019-09-17 西安理工大学 A kind of detection method of far-field laser light spot image
CN112270703A (en) * 2020-09-29 2021-01-26 广东工业大学 A sub-pixel-level centroid extraction method for spot images for positioning systems
CN113935948A (en) * 2021-09-10 2022-01-14 南京邮电大学 Grating image target positioning optimization and wavelength characteristic analysis method and device
CN114565565A (en) * 2022-02-11 2022-05-31 山西支点科技有限公司 Method for positioning sub-pixels in center of vision measurement target

Also Published As

Publication number Publication date
CN115393441A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN111462225B (en) Centroid identification and positioning method of infrared light spot image
TWI691911B (en) Two-dimensional bar code analysis method and device
CN115393441B (en) A high-precision extraction and positioning method of light spots based on liquid crystal optical closed-loop system
CN101614877A (en) Imaging system with lens and deblurring equalizer with enhanced light gathering efficiency
JP2000031390A (en) CMOS integrated circuit chip
WO2021062776A1 (en) Parameter calibration method and apparatus, and device
CN113269775B (en) Defect detection method and device based on multi-scale feature fusion SSD
CN115393440A (en) A method for locating the beacon spot center of an optical transceiver, storage medium and electronic equipment
CN112304573A (en) Method and system for simultaneously measuring lens distortion and MTF indexes
CN115390082A (en) A global positioning method and system based on virtual descriptor
CN113839711A (en) Peak detection method based on dynamic threshold distance centroid algorithm
KR20230085093A (en) Charged particle beam system, method of operating a charged particle beam system, method of recording a plurality of images and computer programs for executing the methods
CN103959306A (en) Dynamic line detection system for a processor with limited internal memory
CN115655263A (en) Star extraction method based on attitude information
SE454919B (en) APPLICATION FOR POINT-BY-POINT SCANING OF AN OBJECT
CN106682672B (en) Method and device for acquiring hyperspectral image feature descriptor
CN110503086B (en) A system and method for locating target centroid based on parity position
CN102801962A (en) Online object image information obtaining device and method for Internet of things
CN118055219A (en) Automatic testing method and system for camera module, electronic equipment and storage medium
CN116818284A (en) Calculation method and device for laser spot size
CN115908526A (en) Rut length calculation method based on three-dimensional reconstruction of road rut diseases
CN110879136A (en) A kind of optical system distortion measurement method and equipment
CN115235625A (en) A spectral confocal echo position calibration method, device, medium and computer equipment
CN116642940A (en) Noise identification method, device and electronic equipment for spatial mass spectrogram
CN115235626A (en) A method, device, computer equipment and medium for acquiring a spectral image of a light source

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant