[go: up one dir, main page]

CN110141800B - A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method - Google Patents

A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method Download PDF

Info

Publication number
CN110141800B
CN110141800B CN201910391616.9A CN201910391616A CN110141800B CN 110141800 B CN110141800 B CN 110141800B CN 201910391616 A CN201910391616 A CN 201910391616A CN 110141800 B CN110141800 B CN 110141800B
Authority
CN
China
Prior art keywords
optical distance
distance ruler
projector
accelerator
camera
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
CN201910391616.9A
Other languages
Chinese (zh)
Other versions
CN110141800A (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.)
Beijing Leitai Tengfei Medical Technology Co ltd
Original Assignee
Suzhou Linatech Medical Science And Technology Co ltd
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 Suzhou Linatech Medical Science And Technology Co ltd filed Critical Suzhou Linatech Medical Science And Technology Co ltd
Priority to CN201910391616.9A priority Critical patent/CN110141800B/en
Publication of CN110141800A publication Critical patent/CN110141800A/en
Priority to PCT/CN2019/116980 priority patent/WO2020228274A1/en
Application granted granted Critical
Publication of CN110141800B publication Critical patent/CN110141800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N5/00Radiation therapy
    • A61N5/10X-ray therapy; Gamma-ray therapy; Particle-irradiation therapy
    • A61N5/1048Monitoring, verifying, controlling systems and methods
    • A61N5/1049Monitoring, verifying, controlling systems and methods for verifying the position of the patient with respect to the radiation beam
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N5/00Radiation therapy
    • A61N5/10X-ray therapy; Gamma-ray therapy; Particle-irradiation therapy
    • A61N5/1048Monitoring, verifying, controlling systems and methods
    • A61N5/1049Monitoring, verifying, controlling systems and methods for verifying the position of the patient with respect to the radiation beam
    • A61N2005/1056Monitoring, verifying, controlling systems and methods for verifying the position of the patient with respect to the radiation beam by projecting a visible image of the treatment field

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Pathology (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明提供一种加速器光距尺设备、标定方法及光距尺生成方法,涉及医疗器械技术领域,该加速器光距尺设备包括投影仪、相机、光距尺标定板及光程指示器,投影仪用于投影结构光模式序列图案和光距尺图案,相机用于采集投影仪所投影的结构光模式序列图案和光距尺标定板的图片,光距尺标定板用于标定投影仪和相机以及验证光距尺的精度,光程指示器用于指示光距尺的刻度。本发明的加速器光距尺设备可以通过结构光的方法对相机和投影仪进行标定,以获得标定参数;另外,还可以进一步利用所获取的标定参数生成光距尺图案。本发明所提出加速器光距尺设备安装方便,其标定方法的标定精度高,并且简化了光距尺标定过程。

Figure 201910391616

The invention provides an accelerator optical distance ruler equipment, a calibration method and an optical distance ruler generation method, and relates to the technical field of medical equipment. The accelerator optical distance ruler equipment comprises a projector, a camera, an optical distance ruler calibration plate and an optical distance indicator. The instrument is used to project the structured light pattern sequence pattern and the light distance ruler pattern. The camera is used to capture the structured light pattern sequence pattern projected by the projector and the pictures of the light distance ruler calibration plate. The light distance ruler calibration plate is used to calibrate the projector and camera and verify The accuracy of the optical distance ruler, the optical distance indicator is used to indicate the scale of the optical distance ruler. The accelerator optical distance ruler device of the present invention can calibrate the camera and the projector by the method of structured light to obtain calibration parameters; in addition, the obtained calibration parameters can be further used to generate an optical distance ruler pattern. The accelerator optical distance ruler device provided by the invention is easy to install, the calibration method has high calibration accuracy, and simplifies the optical distance ruler calibration process.

Figure 201910391616

Description

一种加速器光距尺设备、标定方法及光距尺生成方法A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method

技术领域technical field

本发明涉及医疗器械技术领域,具体涉及一种加速器光距尺设备、标定方法及光距尺生成方法。The invention relates to the technical field of medical devices, in particular to an accelerator optical distance ruler device, a calibration method and a method for generating an optical distance ruler.

背景技术Background technique

光距尺设备是一种通过可见光对比例尺进行投影的方式来指示距离的装置,其广泛应用于医用直线加速器上。加速器光距尺设备可以将带有刻度的可见光比例尺投影到患者身上,指示患者皮肤到辐射源的距离、以及指示加速器的等中心位置。加速器光距尺设备是医用直线加速器中不可或缺的重要部分。The optical distance ruler is a device that indicates the distance by projecting visible light on the scale, which is widely used in medical linear accelerators. The Accelerator Light Distance Scale device projects a graduated visible light scale onto the patient, indicating the distance from the patient's skin to the radiation source, as well as the isocenter position of the accelerator. Accelerator optical distance ruler equipment is an indispensable part of medical linear accelerators.

目前大部分直线加速器上的光距尺由光源、光学镜片或有机玻璃薄膜、以及光程指示器三部分组成,其原理是利用光源照在镜片/薄膜上显示刻度,并利用位于机头的光程指示器指示刻度。At present, the optical distance ruler on most linear accelerators is composed of three parts: a light source, an optical lens or a plexiglass film, and an optical distance indicator. The range indicator indicates the scale.

然而,现有的基于玻璃薄膜的光距尺存在诸多缺点,例如,薄膜上的刻度制作难度高、刻度的精度不高;安装比较困难,安装位置不好时对光距尺精度影响比较大;标定过程比较繁琐;光距尺后期的维护和维修比较困难;等等。这些缺点限制了该类型的光距尺的进一步应用。However, the existing optical distance ruler based on glass film has many shortcomings, for example, the scale on the film is difficult to manufacture, and the accuracy of the scale is not high; the installation is difficult, and the installation position is not good, the impact on the accuracy of the optical distance ruler is relatively large; The calibration process is cumbersome; the maintenance and repair of the optical distance ruler in the later stage is more difficult; and so on. These shortcomings limit the further application of this type of optical distance ruler.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于,针对上述现有技术中的不足,提供一种加速器光距尺设备、标定方法及光距尺生成方法,以解决加速器上的光距尺标定精度不高以及光距尺标定过程复杂的问题。The object of the present invention is to, in view of the deficiencies in the above-mentioned prior art, provide a kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method, in order to solve the problem that the calibration accuracy of the optical distance ruler on the accelerator is not high and the calibration of the optical distance ruler complex process.

为实现上述目的,本发明实施例采用的技术方案如下:To achieve the above purpose, the technical solutions adopted in the embodiments of the present invention are as follows:

第一方面,本发明实施例提供了一种加速器光距尺设备,该设备包括:投影仪、相机、光距尺标定板以及光程指示器,投影仪和相机固定在加速器的外壳上,投影仪用于投影结构光模式序列图案和光距尺图案,结构光模式序列图案用于标定投影仪和相机,相机用于采集投影仪所投影的结构光模式序列图案和光距尺标定板的图片,光距尺标定板设置在加速器的出射端外部,并且光距尺标定板的中心对应于加速器的等中心位置,光距尺标定板用于标定投影仪和相机以及验证光距尺的精度,光程指示器设置在加速器的出射端内部,来自光程指示器的光线沿与加速器的出射方向平行的方向从出射端射出,用于指示光距尺的刻度;In a first aspect, an embodiment of the present invention provides an accelerator optical distance ruler device, which includes: a projector, a camera, an optical distance ruler calibration plate, and an optical path indicator. The projector and the camera are fixed on the shell of the accelerator, and the projection The instrument is used to project the structured light pattern sequence pattern and the light distance ruler pattern. The structured light pattern sequence pattern is used to calibrate the projector and the camera. The camera is used to collect the structured light pattern sequence pattern projected by the projector and the picture of the light distance ruler calibration plate. The distance ruler calibration plate is set outside the exit end of the accelerator, and the center of the optical distance ruler calibration plate corresponds to the isocenter position of the accelerator. The optical distance ruler calibration plate is used to calibrate the projector and camera, and to verify the accuracy of the optical distance ruler. The indicator is arranged inside the exit end of the accelerator, and the light from the optical distance indicator is emitted from the exit end along the direction parallel to the exit direction of the accelerator, and is used to indicate the scale of the optical distance ruler;

加速器光距尺设备利用以下标定方法进行标定,具体包括:The accelerator optical distance ruler equipment is calibrated using the following calibration methods, including:

在步骤401中,通过相机采集光距尺标定板的至少三个第一图片,至少三个第一图片中每一图片分别对应的光距尺标定板处于不同的姿态,即采集处于至少三个不同姿态的棋盘格图片;In step 401, at least three first pictures of the optical distance ruler calibration plate are collected by a camera, and the optical distance ruler calibration plate corresponding to each picture in the at least three first pictures is in a different posture, that is, at least three first pictures are collected. Checkerboard pictures in different poses;

在步骤402中,针对至少三个第一图片中每一图片分别对应的光距尺标定板所处的姿态,分别通过相机采集投影有结构光模式序列图案的光距尺标定板的第二图片,结构光模式序列图案通过投影仪进行投影,即采集与步骤401中采集的图片对应的投影有结构光模式序列图案的棋盘格图片;In step 402, according to the posture of the optical distance ruler calibration plate corresponding to each of the at least three first pictures, the second picture of the optical distance ruler calibration plate on which the structured light pattern sequence pattern is projected is collected by a camera. , the structured light pattern sequence pattern is projected by the projector, that is, a checkerboard picture corresponding to the picture collected in step 401 on which the structured light pattern sequence pattern is projected is collected;

在步骤403中,利用预定角点检测算法提取第一图片中角点的位置,以获得第一图片角点位置坐标,第一图片角点位置坐标是根据所提取的第一图片中角点的位置相对于光距尺标定板上的图案的预设实际角点位置坐标而获得的,并且将第一图片角点位置坐标记为In step 403, the position of the corner point in the first picture is extracted by using a predetermined corner point detection algorithm to obtain the position coordinates of the corner point of the first picture. The position is obtained relative to the preset actual corner position coordinates of the pattern on the optical distance ruler calibration plate, and the corner position coordinates of the first picture are marked as

Figure GDA0002621389900000021
Figure GDA0002621389900000021

光距尺标定板上的图案的预设实际角点位置坐标预先定义为The preset actual corner position coordinates of the pattern on the optical distance ruler calibration board are predefined as

Figure GDA0002621389900000022
Figure GDA0002621389900000022

该角点坐标与通过预定角点检测算法获得的棋盘格角点坐标相对应;The corner coordinates correspond to the corner coordinates of the checkerboard obtained by the predetermined corner detection algorithm;

在步骤404中,分别针对横向结构光和纵向结构光所对应的第二图片进行解码,以获得第二图片的横向码字和纵向码字;In step 404, the second pictures corresponding to the horizontal structured light and the vertical structured light are respectively decoded to obtain the horizontal codeword and the vertical codeword of the second picture;

在步骤405中,根据横向码字和纵向码字,利用单应性矩阵确定投影仪的投影图案角点位置坐标,投影图案角点位置坐标与预设实际角点位置坐标相对应,投影图案角点位置坐标记为In step 405, according to the horizontal codeword and the vertical codeword, use the homography matrix to determine the position coordinates of the corner points of the projection pattern of the projector, the position coordinates of the corner points of the projection pattern correspond to the preset actual corner point position coordinates, and the angle of the projection pattern The point position coordinates are marked as

Figure GDA0002621389900000031
Figure GDA0002621389900000031

在步骤406中,根据第一图片角点位置坐标qc、预设实际角点位置坐标Q和投影图案角点位置坐标qp,并且利用预定标定算法,确定相机和投影仪的标定参数,预定标定算法为张正友标定算法,标定参数包括相机镜头的焦距Mc,相机镜头的畸变Dc,投影仪镜头的焦距Mp,投影仪镜头的畸变Dp以及相机和投影仪之间的几何变换Rcp和TcpIn step 406, the calibration parameters of the camera and the projector are determined according to the first picture corner position coordinates q c , the preset actual corner position coordinates Q and the projection pattern corner position coordinates q p , and a predetermined calibration algorithm is used. The calibration algorithm is Zhang Zhengyou's calibration algorithm. The calibration parameters include the focal length M c of the camera lens, the distortion D c of the camera lens, the focal length M p of the projector lens, the distortion D p of the projector lens, and the geometric transformation R between the camera and the projector. cp and Tcp ;

投影仪和相机的标定流程中使用Shi-Tomasi角点检测的算法,其通过计算图像窗口平移[u,v]产生的灰度变化E(u,v)The Shi-Tomasi corner detection algorithm is used in the calibration process of the projector and camera, which calculates the grayscale change E(u, v) generated by the translation of the image window [u, v]

Figure GDA0002621389900000032
Figure GDA0002621389900000032

其中,M为自相关矩阵,定义如下Among them, M is the autocorrelation matrix, which is defined as follows

Figure GDA0002621389900000033
Figure GDA0002621389900000033

式中,w(x,y)表示窗口函数;In the formula, w(x, y) represents the window function;

Ix和Ty表示图像在x和y方向的导数;I x and T y represent the derivatives of the image in the x and y directions;

对于M的两个特征值λ1和λ2,Shi-Tomasi算法认为角点的检测取决最小的特征值,角点判断函数R如下,当R的值超过阈值则认为其为角点:For the two eigenvalues λ 1 and λ 2 of M, the Shi-Tomasi algorithm believes that the detection of corner points depends on the smallest eigenvalue, and the corner point judgment function R is as follows, when the value of R exceeds the threshold value, it is considered as a corner point:

R=min(λ1,λ2);R=min(λ 1 , λ 2 );

结构光编码使用相移法,相移法编码模式如下:Structured light encoding uses the phase shift method, and the phase shift method encoding mode is as follows:

In(x,y)=I′(x,y)+I″(x,y)cos[φ(x,y)-2π/n];I n (x, y)=I′(x, y)+I″(x, y)cos[φ(x,y)-2π/n];

其中,I′(x,y)为图像中该点的平均强度;Among them, I'(x, y) is the average intensity of the point in the image;

I″(x,y)为图像中该点调制的强度;I″(x, y) is the modulated intensity of this point in the image;

In(x,y)为最终相机采集到的图像,n∈1,2,...,N为相移模式索引,N为相移模式图片的数量;I n (x, y) is the image collected by the final camera, n ∈ 1, 2,..., N is the index of the phase shift mode, and N is the number of pictures in the phase shift mode;

φ(x,y)为求解的相位;φ(x, y) is the phase to be solved;

使用的相移法为3步相移法,即上式的N等于3;The phase shift method used is a 3-step phase shift method, that is, N in the above formula is equal to 3;

此时,相位φ(x,y)可由下列公式计算获得:At this time, the phase φ(x, y) can be calculated by the following formula:

Figure GDA0002621389900000041
Figure GDA0002621389900000041

通过φ(x,y)/2π×W和φ(x,y)/2π×H分别求解投影仪宽和高两个方向所对应的码字,其中:W代表投影仪的宽,而H代表投影仪的高;Through φ(x, y)/2π×W and φ(x, y)/2π×H, the code words corresponding to the width and height of the projector are solved respectively, where: W represents the width of the projector, and H represents the width of the projector. the height of the projector;

棋盘格角点相对应的投影坐标的计算需要结合局部单应性矩阵进行求解,通过求解局部单应性矩阵来寻找投影仪像素点与棋盘格角点的对应关系,对于每一个棋盘格图案,利用图案周围的码字,计算局部的单应性矩阵,最后利用单应性矩阵将棋盘格角点和投影仪上的像素点相对应,单应矩阵的计算通过最小化下列公式:The calculation of the projection coordinates corresponding to the corners of the checkerboard needs to be solved in combination with the local homography matrix. By solving the local homography matrix, the correspondence between the pixel points of the projector and the corners of the checkerboard is found. For each checkerboard pattern, Using the code words around the pattern, calculate the local homography matrix, and finally use the homography matrix to correspond the corners of the checkerboard with the pixels on the projector. The calculation of the homography matrix minimizes the following formula:

Figure GDA0002621389900000042
Figure GDA0002621389900000042

其中,H∈R3×3,为单应性矩阵;Among them, H∈R 3×3 , is a homography matrix;

qc=[x,y,1]T为棋盘图像中的像素坐标,由标定流程地三步获得;q c =[x, y, 1] T is the pixel coordinates in the chessboard image, obtained by the three steps of the calibration process;

u=[col,row,1]T为解码所获得的码字;u=[col, row, 1] T is the codeword obtained by decoding;

Figure GDA0002621389900000043
Figure GDA0002621389900000043

然后,通过将单应性矩阵与棋盘图像中的像素坐标相乘即可以获得投影仪对应点。Then, the projector corresponding point can be obtained by multiplying the homography matrix with the pixel coordinates in the checkerboard image.

本发明实施例提出的加速器光距尺设备安装方便,投影仪与相机只要固定于加速器上即可,对投影仪与相机之间的相对位置关系没有具体要求。该加速器光距尺设备可以通过结构光的方法对相机和投影仪进行标定,标定精度高。The accelerator optical distance ruler device provided by the embodiment of the present invention is easy to install, the projector and the camera only need to be fixed on the accelerator, and there is no specific requirement for the relative positional relationship between the projector and the camera. The accelerator optical distance ruler device can calibrate the camera and the projector by the method of structured light, and the calibration accuracy is high.

可选地,光距尺标定板的轴线的两侧分别设置有第一预定数目的等间距分布的棋盘格图案,用于确定光距尺标定板与投影仪和相机的相对位置关系。Optionally, a first predetermined number of equally spaced checkerboard patterns are respectively provided on both sides of the axis of the optical distance ruler calibration plate to determine the relative positional relationship between the optical distance ruler calibration plate, the projector and the camera.

可选地,光距尺标定板的轴线上设置有第二预定数目的等间距分布的线条图形,用于验证光距尺是否满足精度要求。Optionally, a second predetermined number of equally spaced line graphics are arranged on the axis of the optical distance ruler calibration plate to verify whether the optical distance ruler meets the accuracy requirements.

可选地,光程指示器设置在加速器的出射端的内壁上,来自光程指示器的光线经由设置在加速器的出射端的具有预定角度的反射镜反射后,沿与加速器的出射方向平行的方向从出射端射出。Optionally, the optical path indicator is arranged on the inner wall of the exit end of the accelerator, and after the light from the optical path indicator is reflected by a mirror with a predetermined angle arranged at the exit end of the accelerator, it is emitted from the light in a direction parallel to the exit direction of the accelerator. The exit end is ejected.

可选地,光距尺标定板挂置在加速器的前指针的下方。Optionally, the optical distance ruler calibration plate is hung below the front pointer of the accelerator.

通过将光距尺标定板挂置于前指针下,由于直线加速器通常都有前指针,因此不需要额外制作,从而简化的设备结构,并且节省了成本。By hanging the optical distance ruler calibration plate under the front pointer, since linear accelerators usually have front pointers, additional fabrication is not required, thereby simplifying the device structure and saving costs.

第二方面,本发明实施例提供了一种加速器光距尺设备的标定方法,加速器光距尺设备包括相机、投影仪和光距尺标定板,该方法包括:In a second aspect, an embodiment of the present invention provides a method for calibrating an accelerator optical distance ruler device. The accelerator optical distance ruler device includes a camera, a projector, and an optical distance ruler calibration plate, and the method includes:

通过相机采集光距尺标定板的至少三个第一图片,所述至少三个第一图片中每一图片分别对应的光距尺标定板处于不同的姿态;At least three first pictures of the optical distance ruler calibration plate are collected by the camera, and the optical distance ruler calibration plate corresponding to each picture in the at least three first pictures is in a different posture;

针对至少三个第一图片中每一图片分别对应的光距尺标定板所处的姿态,分别通过相机采集投影有结构光模式序列图案的光距尺标定板的第二图片,结构光模式序列图案通过投影仪进行投影;According to the posture of the optical distance ruler calibration plate corresponding to each of the at least three first pictures, the second picture of the optical distance ruler calibration plate on which the structured light pattern sequence pattern is projected is collected by the camera, respectively. The pattern is projected through a projector;

利用预定角点检测算法提取第一图片中角点的位置,以获得第一图片角点位置坐标,第一图片角点位置坐标是根据所提取的第一图片中角点的位置相对于光距尺标定板上的图案的预设实际角点位置坐标而获得的;Use a predetermined corner detection algorithm to extract the position of the corner point in the first picture to obtain the position coordinate of the corner point of the first picture. Obtained from the preset actual corner position coordinates of the pattern on the ruler calibration board;

分别针对横向结构光和纵向结构光所对应的第二图片进行解码,以获得第二图片的横向码字和纵向码字;Decoding the second picture corresponding to the horizontal structured light and the vertical structured light respectively to obtain the horizontal codeword and the vertical codeword of the second picture;

根据横向码字和纵向码字,利用单应性矩阵确定投影仪的投影图案角点位置坐标,投影图案角点位置坐标与预设实际角点位置坐标相对应;According to the horizontal codeword and the vertical codeword, use the homography matrix to determine the position coordinates of the corner points of the projection pattern of the projector, and the position coordinates of the corner points of the projection pattern correspond to the preset actual corner point position coordinates;

根据第一图片角点位置坐标、预设实际角点位置坐标和投影图案角点位置坐标,并且利用预定标定算法,确定相机和投影仪的标定参数。The calibration parameters of the camera and the projector are determined according to the position coordinates of the corner points of the first picture, the preset actual position coordinates of the corner points and the position coordinates of the corner points of the projection pattern, and using a predetermined calibration algorithm.

本发明实施例提出的标定过程简单方便,仅需标定板(例如,棋盘格)配合投影仪投影结构光模式序列图案就可以对系统进行标定,标定精度高。The calibration process proposed by the embodiment of the present invention is simple and convenient, and the system can be calibrated only by a calibration plate (eg, a checkerboard) and a projector projecting a sequence pattern of a structured light mode, and the calibration accuracy is high.

可选地,所述根据横向码字和纵向码字,利用单应性矩阵确定投影仪的投影图案角点位置坐标,包括:Optionally, according to the horizontal codeword and the vertical codeword, use a homography matrix to determine the position coordinates of the corner points of the projection pattern of the projector, including:

根据横向码字和纵向码字,计算局部单应性矩阵;Calculate the local homography matrix according to the horizontal codeword and the vertical codeword;

基于局部单应性矩阵,将投影仪的投影图案角点与光距尺标定板上的实际角点相对应;Based on the local homography matrix, the corner points of the projection pattern of the projector correspond to the actual corner points on the calibration plate of the optical distance ruler;

基于预设实际角点位置坐标确定对应的投影图案角点位置坐标。The corresponding corner position coordinates of the projection pattern are determined based on the preset actual corner position coordinates.

可选地,光距尺标定板的轴线的两侧分别设置有第一预定数目的等间距分布的棋盘格图案。Optionally, a first predetermined number of checkerboard patterns distributed at equal intervals are respectively provided on both sides of the axis of the optical distance ruler calibration plate.

可选地,标定参数包括相机镜头的焦距、相机镜头的畸变、投影仪镜头的焦距、投影仪镜头的畸变以及相机和投影仪之间的几何变换。Optionally, the calibration parameters include the focal length of the camera lens, the distortion of the camera lens, the focal length of the projector lens, the distortion of the projector lens, and the geometric transformation between the camera and the projector.

第三方面,本发明实施例提供了一种光距尺生成方法,用于加速器光距尺设备生成光距尺,加速器光距尺设备包括相机、投影仪和光距尺标定板,该方法包括:In a third aspect, an embodiment of the present invention provides a method for generating an optical distance ruler, which is used for an accelerator optical distance ruler device to generate an optical distance ruler. The accelerator optical distance ruler device includes a camera, a projector, and an optical distance ruler calibration plate, and the method includes:

将光距尺标定板挂置在加速器的前指针下方,使得光距尺标定板的中点与加速器的等中心位置对应;Hang the calibration plate of the optical distance ruler under the front pointer of the accelerator, so that the midpoint of the calibration plate of the optical distance ruler corresponds to the isocenter of the accelerator;

通过相机采集光距尺标定板的图片,并且利用预设角点检测算法提取图片中角点的位置,以获得对应的位置坐标;The picture of the light distance ruler calibration board is collected by the camera, and the position of the corner point in the picture is extracted by the preset corner point detection algorithm to obtain the corresponding position coordinates;

利用位置坐标和根据上述第二方面所述的标定方法获得的相机和投影仪的标定参数,确定相机相对于光距尺标定板的第一变换矩阵;Determine the first transformation matrix of the camera relative to the optical distance ruler calibration plate by using the position coordinates and the calibration parameters of the camera and the projector obtained according to the calibration method described in the second aspect;

根据第一变换矩阵,确定投影仪相对于光距尺标定板的第二变换矩阵;According to the first transformation matrix, determine the second transformation matrix of the projector relative to the optical distance ruler calibration plate;

基于光距尺标定板上的预设点的预设坐标,确定光距尺标定板上所有刻度点的坐标;Determine the coordinates of all scale points on the optical distance ruler calibration plate based on the preset coordinates of the preset points on the optical distance ruler calibration plate;

基于投影仪的标定参数和第二变换矩阵,确定光距尺标定板上的刻度点在投影仪投影图像中所对应的位置点;Based on the calibration parameters of the projector and the second transformation matrix, determine the position point corresponding to the scale point on the calibration plate of the optical distance ruler in the projected image of the projector;

基于所述对应的位置点,在投影仪的底片中生成光距尺图案。Based on the corresponding position points, a light distance ruler pattern is generated in the negative of the projector.

本发明实施例提出的光距尺生成方法便于后期维护,如果相机和投影仪的位置没有改变且焦距没有调整,则无需对相机和投影仪进行再次标定,只需要获取预先标定的标定参数,就可以实现光距尺生成。The optical distance ruler generation method proposed in the embodiment of the present invention is convenient for later maintenance. If the positions of the camera and the projector are not changed and the focal length is not adjusted, the camera and the projector do not need to be calibrated again, and only the pre-calibrated calibration parameters need to be obtained. Optical distance ruler can be generated.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1示出了本发明实施例提供的加速器光距尺设备的结构示意图;1 shows a schematic structural diagram of an accelerator optical distance ruler device provided by an embodiment of the present invention;

图2示出了本发明实施例提供的光距尺标定板的结构示意图;2 shows a schematic structural diagram of an optical distance ruler calibration plate provided by an embodiment of the present invention;

图3和图4示出了本发明实施例提供的加速器光距尺设备的标定方法的流程示意图;3 and 4 show schematic flowcharts of a method for calibrating an accelerator optical distance ruler device provided by an embodiment of the present invention;

图5示出了本发明实施例提供的光距尺生成方法的流程示意图;5 shows a schematic flowchart of a method for generating an optical distance ruler provided by an embodiment of the present invention;

图6示出了根据本发明的光距尺生成方法所生成的用于投影的光距尺的示意图。FIG. 6 shows a schematic diagram of an optical distance ruler for projection generated by the optical distance ruler generation method of the present invention.

附图标记:101-投影仪;102-相机;103-光距尺标定板;104-光程指示器;105-反射镜;106-前指针。Reference numerals: 101-projector; 102-camera; 103-optical distance scale calibration plate; 104-optical distance indicator; 105-reflector; 106-front pointer.

具体实施方式Detailed ways

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

结构光测量方法是通过投影一系列的光学条纹(也就是结构光模式序列图案)到物体上,然后利用相机采集光学条纹信息,以获取物体的三维坐标的方法。目前,结构光测量系统在立体测量中具有很高的精度,能够完全满足光距尺的精度要求。The structured light measurement method is a method of projecting a series of optical fringes (that is, structured light pattern sequence patterns) onto the object, and then using a camera to collect the optical fringe information to obtain the three-dimensional coordinates of the object. At present, the structured light measurement system has high precision in stereo measurement, which can fully meet the precision requirements of the optical distance ruler.

本发明实施例提供了一种基于结构光的医用直线加速器光距尺设备,如图1所示,该设备主要包括:投影仪101、相机102、光距尺标定板103以及光程指示器104,投影仪101和相机102固定在盒子里,并且装于加速器的外壳上,投影仪101用于投影结构光模式序列图案和最终生成的光距尺图案,结构光模式序列图案用于标定投影仪101和相机102,相机102用于采集投影仪101所投影的结构光模式序列图案和光距尺标定板103的图片,光距尺标定板103设置在加速器的出射端外部,并且光距尺标定板103的中心对应于加速器的等中心位置,光距尺标定板103用于标定投影仪101和相机102以及验证所生成的光距尺的精度,光程指示器104设置在加速器的出射端内部,来自光程指示器104的光线沿与加速器的出射方向平行的方向从出射端射出,用于指示光距尺的刻度。An embodiment of the present invention provides a medical linear accelerator optical distance ruler device based on structured light. As shown in FIG. 1 , the device mainly includes: a projector 101 , a camera 102 , an optical distance ruler calibration plate 103 and an optical distance indicator 104 , the projector 101 and the camera 102 are fixed in the box and mounted on the casing of the accelerator, the projector 101 is used for projecting the structured light pattern sequence pattern and the finally generated light distance ruler pattern, and the structured light pattern sequence pattern is used for calibrating the projector 101 and a camera 102, the camera 102 is used to collect the structured light pattern sequence pattern projected by the projector 101 and the picture of the optical distance ruler calibration plate 103, the optical distance ruler calibration plate 103 is arranged outside the exit end of the accelerator, and the optical distance ruler calibration plate 103 The center of 103 corresponds to the isocenter position of the accelerator, the optical distance ruler calibration plate 103 is used to calibrate the projector 101 and the camera 102 and to verify the accuracy of the generated optical distance ruler, and the optical distance indicator 104 is arranged inside the exit end of the accelerator, The light from the optical distance indicator 104 exits from the exit end in a direction parallel to the exit direction of the accelerator, and is used to indicate the graduation of the optical distance ruler.

相机102可以为CCD(电荷耦合器件)相机。如图1所示,光程指示器104可以设置在加速器的出射端的内壁上,从而来自光程指示器104的光线经由设置在加速器的出射端的具有预定角度的反射镜105反射后,沿与加速器的出射方向平行的方向从出射端射出。例如,当光程指示器104的出射方向与加速器的出射方向垂直时,反射镜105相对于光程指示器104的出射方向呈45°角放置,以使得来自光程指示器104的光线经反射镜105反射后与加速器的出射方向平行。光距尺标定板103可以挂置在加速器的前指针106的下方,使得光距尺标定板103的中心对应于加速器的等中心位置。Camera 102 may be a CCD (Charge Coupled Device) camera. As shown in FIG. 1 , the optical path indicator 104 can be disposed on the inner wall of the exit end of the accelerator, so that the light from the optical path indicator 104 is reflected by the reflector 105 with a predetermined angle disposed at the exit end of the accelerator, and then travels along the same direction as the accelerator. The outgoing direction is parallel to the outgoing end. For example, when the exit direction of the optical distance indicator 104 is perpendicular to the exit direction of the accelerator, the mirror 105 is placed at an angle of 45° relative to the exit direction of the optical distance indicator 104 so that the light from the optical distance indicator 104 is reflected After the mirror 105 is reflected, it is parallel to the exit direction of the accelerator. The optical distance ruler calibration plate 103 can be hung below the front pointer 106 of the accelerator, so that the center of the optical distance ruler calibration plate 103 corresponds to the isocenter position of the accelerator.

本发明实施例提出的加速器光距尺设备安装方便,投影仪与相机只要固定于加速器上即可,对投影仪与相机之间的相对位置关系没有具体要求。该加速器光距尺设备可以通过结构光的方法对相机和投影仪进行标定,标定精度高。通过将光距尺标定板挂置于前指针下,由于直线加速器通常都有前指针,因此不需要额外制作,从而简化的设备结构,并且节省了成本。The accelerator optical distance ruler device provided by the embodiment of the present invention is easy to install, the projector and the camera only need to be fixed on the accelerator, and there is no specific requirement for the relative positional relationship between the projector and the camera. The accelerator optical distance ruler device can calibrate the camera and the projector by the method of structured light, and the calibration accuracy is high. By hanging the optical distance ruler calibration plate under the front pointer, since linear accelerators usually have front pointers, additional fabrication is not required, thereby simplifying the device structure and saving costs.

图2示出了本发明实施例提供的光距尺标定板的结构示意图,如图2所示,光距尺标定板103的轴线的两侧分别设置有预定数目(例如,为5个)的等间距分布的棋盘格图案,在标定过程中,该棋盘格图案用于确定光距尺标定板103与投影仪101和相机102的相对位置关系。另外,光距尺标定板103的轴线上设置有预定数目的等间距分布(例如,间隔2mm)的线条图形,在生成光距尺后,该线条图形可以用于验证光距尺是否满足精度要求。FIG. 2 shows a schematic structural diagram of an optical distance ruler calibration plate provided by an embodiment of the present invention. As shown in FIG. 2 , a predetermined number (for example, five) of A checkerboard pattern distributed at equal intervals. During the calibration process, the checkerboard pattern is used to determine the relative positional relationship between the optical distance ruler calibration plate 103 , the projector 101 and the camera 102 . In addition, a predetermined number of line patterns distributed at equal intervals (for example, at intervals of 2 mm) are provided on the axis of the optical distance ruler calibration plate 103. After the optical distance ruler is generated, the line graphics can be used to verify whether the optical distance ruler meets the accuracy requirements. .

本发明实施例还提供了一种加速器光距尺设备的标定方法,该方法可以用于标定加速器光距尺设备中的相机和投影仪。本发明实施例所提供的标定方法可以用于对本发明上述实施例中提供的加速器光距尺设备中的相机和投影仪进行标定。The embodiment of the present invention also provides a method for calibrating an accelerator optical distance ruler device, and the method can be used for calibrating a camera and a projector in the accelerator optical distance ruler device. The calibration method provided by the embodiment of the present invention can be used to calibrate the camera and the projector in the accelerator optical distance ruler device provided in the foregoing embodiment of the present invention.

下面将结合本发明上述实施例中所提供的加速器光距尺设备并且参照图3和图4,来描述投影仪和相机的标定方法。应当理解,光距尺标定板103上的标定图案可以为棋盘格图案,但是不限于此。为了简便起见,下文中将以棋盘格图案为例进行说明。The method for calibrating the projector and the camera will be described below in conjunction with the accelerator optical distance ruler device provided in the above-mentioned embodiments of the present invention and referring to FIG. 3 and FIG. 4 . It should be understood that the calibration pattern on the optical distance ruler calibration plate 103 may be a checkerboard pattern, but is not limited thereto. For the sake of simplicity, a checkerboard pattern will be used as an example for description hereinafter.

在步骤401中,通过相机102采集光距尺标定板103的至少三个第一图片,所述至少三个第一图片中每一图片分别对应的光距尺标定板103处于不同的姿态,也就是说采集处于至少三个不同姿态的棋盘格图片,通常情况下,采集处于4至8种不同姿态的棋盘格图片即可。In step 401, at least three first pictures of the optical distance ruler calibration plate 103 are collected by the camera 102, and the optical distance ruler calibration plate 103 corresponding to each of the at least three first pictures is in a different posture, and also That is to say, to collect checkerboard pictures in at least three different postures, and generally, it is sufficient to collect checkerboard pictures in 4 to 8 different postures.

在步骤402中,针对至少三个第一图片中每一图片分别对应的光距尺标定板所处的姿态,分别通过相机采集投影有结构光模式序列图案的光距尺标定板的第二图片,结构光模式序列图案通过投影仪进行投影,也就是说采集与步骤401中采集的图片对应的投影有结构光模式序列图案的棋盘格图片。In step 402, according to the posture of the optical distance ruler calibration plate corresponding to each of the at least three first pictures, the second picture of the optical distance ruler calibration plate on which the structured light pattern sequence pattern is projected is collected by a camera. , the structured light pattern sequence pattern is projected by the projector, that is, a checkerboard picture corresponding to the picture collected in step 401 on which the structured light pattern sequence pattern is projected is collected.

在步骤403中,利用预定角点检测算法提取第一图片中角点的位置,以获得第一图片角点位置坐标,第一图片角点位置坐标是根据所提取的第一图片中角点的位置相对于光距尺标定板上的图案的预设实际角点位置坐标而获得的,预定角点检测算法例如可以为石-托马西(Shi-Tomasi)角点检测算法,并且可以将第一图片角点位置坐标记为In step 403, the position of the corner point in the first picture is extracted by using a predetermined corner point detection algorithm to obtain the position coordinates of the corner point of the first picture. The position is obtained relative to the preset actual corner position coordinates of the pattern on the optical distance ruler calibration plate. The predetermined corner detection algorithm can be, for example, a Shi-Tomasi corner detection algorithm, and can The coordinates of the corner points of a picture are marked as

Figure GDA0002621389900000101
Figure GDA0002621389900000101

光距尺标定板上的图案的预设实际角点位置坐标可以预先定义为The preset actual corner position coordinates of the pattern on the optical distance ruler calibration board can be pre-defined as

Figure GDA0002621389900000102
Figure GDA0002621389900000102

该角点坐标与通过预定角点检测算法获得的棋盘格角点坐标相对应。The corner coordinates correspond to the corner coordinates of the checkerboard obtained by a predetermined corner detection algorithm.

在步骤404中,分别针对横向结构光和纵向结构光所对应的第二图片进行解码,以获得第二图片的横向码字和纵向码字。In step 404, the second pictures corresponding to the horizontal structured light and the vertical structured light are decoded respectively to obtain the horizontal codeword and the vertical codeword of the second picture.

在步骤405中,根据横向码字和纵向码字,利用单应性矩阵确定投影仪的投影图案角点位置坐标,投影图案角点位置坐标与预设实际角点位置坐标相对应,投影图案角点位置坐标可以记为In step 405, according to the horizontal codeword and the vertical codeword, use the homography matrix to determine the position coordinates of the corner points of the projection pattern of the projector, the position coordinates of the corner points of the projection pattern correspond to the preset actual corner point position coordinates, and the angle of the projection pattern The coordinates of the point position can be written as

Figure GDA0002621389900000103
Figure GDA0002621389900000103

将在下文中对利用单应性矩阵确定投影仪的投影图案角点位置坐标进行详细描述。The use of the homography matrix to determine the position coordinates of the corner points of the projection pattern of the projector will be described in detail below.

在步骤406中,根据第一图片角点位置坐标qc、预设实际角点位置坐标Q和投影图案角点位置坐标qp,并且利用预定标定算法,确定相机和投影仪的标定参数。此处的预定标定算法可以为张正友标定算法(张正友标定算法的详细描述参见如下文献:Zhang Z.AFlexible New Technique for Camera Calibration[J].IEEE Transactions on PatternAnalysis and Machine Intelligence,2000,22(11):1330-1334),标定参数包括相机镜头的焦距Mc,相机镜头的畸变Dc,投影仪镜头的焦距Mp,投影仪镜头的畸变Dp以及相机和投影仪之间的几何变换Rcp和TcpIn step 406 , the calibration parameters of the camera and the projector are determined according to the first picture corner position coordinates q c , the preset actual corner position coordinates Q and the projection pattern corner position coordinates q p , and using a predetermined calibration algorithm. The predetermined calibration algorithm here can be Zhang Zhengyou's calibration algorithm (for a detailed description of Zhang Zhengyou's calibration algorithm, please refer to the following documents: Zhang Z. AFlexible New Technique for Camera Calibration [J]. IEEE Transactions on PatternAnalysis and Machine Intelligence, 2000, 22(11): 1330-1334), the calibration parameters include the focal length M c of the camera lens, the distortion D c of the camera lens, the focal length M p of the projector lens, the distortion D p of the projector lens, and the geometric transformation between the camera and the projector R cp and Tcp .

图3和图4中投影仪和相机的标定流程中所使用的Shi-Tomasi角点检测的算法是哈瑞斯(Harris)角点检测算法的改进算法,其通过计算图像窗口平移[u,v]产生的灰度变化E(u,v)The Shi-Tomasi corner detection algorithm used in the calibration process of the projector and the camera in Figures 3 and 4 is an improved algorithm of the Harris corner detection algorithm, which calculates the image window translation [u, v ] The resulting grayscale change E(u, v)

Figure GDA0002621389900000111
Figure GDA0002621389900000111

其中M为自相关矩阵,定义如下where M is the autocorrelation matrix, defined as follows

Figure GDA0002621389900000112
Figure GDA0002621389900000112

式中w(x,y)表示窗口函数,Ix和Iy表示图像在x和y方向的导数。对于M的两个特征值λ1和λ2,Shi-Tomasi算法认为角点的检测取决最小的那个特征值,角点判断函数R如下,当R的值超过某阈值则认为其为角点:where w(x, y) represents the window function, and I x and I y represent the derivatives of the image in the x and y directions. For the two eigenvalues λ 1 and λ 2 of M, the Shi-Tomasi algorithm believes that the detection of the corner point depends on the smallest eigenvalue, and the corner point judgment function R is as follows, when the value of R exceeds a certain threshold, it is considered as a corner point:

R=min(λ1,λ2)R=min(λ 1 , λ 2 )

图3中的结构光编码使用相移法,在各种编码的方案中,相移法是一种比较通用的标定方法,有着极其广泛的应用,并且提供越来越高的精度。相移法编码模式如下:The structured light coding in Fig. 3 uses the phase shift method. Among various coding schemes, the phase shift method is a relatively common calibration method, has an extremely wide range of applications, and provides higher and higher accuracy. The phase-shift encoding mode is as follows:

In(x,y)=I′(x,y)+I″(x,y)cos[φ(x,y)-2π/n]I n (x,y)=I'(x,y)+I″(x,y)cos[φ(x,y)-2π/n]

I′(x,y)为图像中该点的平均强度,I″(x,y)为图像中该点调制的强度,In(x,y)为最终相机采集到的图像,n∈1,2,...,N为相移模式索引,N为相移模式图片的数量,φ(x,y)为求解的相位。本发明使用的相移法为3步相移法,即上式的N等于3。此时,相位φ(x,y)可由下列公式计算获得:I′(x, y) is the average intensity of the point in the image, I″(x, y) is the modulated intensity of the point in the image, I n (x, y) is the image collected by the final camera, n∈1 , 2, . N of the formula is equal to 3. At this time, the phase φ(x, y) can be calculated by the following formula:

Figure GDA0002621389900000113
Figure GDA0002621389900000113

最后通过φ(x,y)/2π×W和φ(x,y)/2π×H分别求解投影仪宽和高两个方向所对应的码字,其中W代表投影仪的宽而H代表投影仪的高。Finally, the code words corresponding to the width and height of the projector are solved by φ(x, y)/2π×W and φ(x, y)/2π×H respectively, where W represents the width of the projector and H represents the projection. The height of the instrument.

图3中的相对应的棋盘格角点相对应的投影坐标的计算需要结合局部单应性矩阵进行求解。从结构光获得码字并不能直接用于投影仪像素点与棋盘格角点的对应关系。本发明通过求解局部单应性矩阵来寻找这种对应关系。对于每一个棋盘格图案,利用图案周围的码字,计算局部的单应性矩阵,最后利用这些单应性矩阵将棋盘格角点和投影仪上的像素点相对应。单应矩阵的计算通过最小化下列公式:The calculation of the projected coordinates corresponding to the corresponding checkerboard corner points in FIG. 3 needs to be solved in combination with the local homography matrix. Obtaining codewords from structured light cannot be directly used for the correspondence between projector pixels and checkerboard corners. The present invention finds this correspondence by solving a local homography matrix. For each checkerboard pattern, use the codewords around the pattern to calculate the local homography matrix, and finally use these homography matrices to correspond the checkerboard corner points to the pixels on the projector. The homography matrix is calculated by minimizing the following formula:

Figure GDA0002621389900000121
Figure GDA0002621389900000121

其中H∈R3×3,为单应性矩阵;qc=[x,y,1]T为棋盘图像中的像素坐标,由标定流程地三步获得;u=[col,row,1]T为解码所获得的码字。where H∈R 3×3 , is the homography matrix; q c =[x, y, 1] T is the pixel coordinates in the chessboard image, obtained by the three steps of the calibration process; u = [col, row, 1] T is the codeword obtained by decoding.

Figure GDA0002621389900000122
Figure GDA0002621389900000122

然后,通过将单应性矩阵与棋盘图像中的像素坐标相乘即可以获得投影仪对应点。Then, the projector corresponding point can be obtained by multiplying the homography matrix with the pixel coordinates in the checkerboard image.

综上所述,本发明实施例提出的标定过程简单方便,仅需标定板(例如,棋盘格)配合投影仪投影结构光模式序列图案就可以对系统进行标定,标定精度高。To sum up, the calibration process proposed by the embodiments of the present invention is simple and convenient, and the system can be calibrated only with a calibration plate (eg, a checkerboard) and a projector to project a sequence pattern of structured light patterns, and the calibration accuracy is high.

本发明实施例还提供了一种光距尺生成方法,用于加速器光距尺设备生成光距尺,其中,加速器光距尺设备包括相机、投影仪和光距尺标定板。该光距尺生成方法可以应用于本发明前述实施例所提供的加速器光距尺设备来生成光距尺。The embodiment of the present invention also provides a method for generating an optical distance ruler, which is used for an accelerator optical distance ruler device to generate an optical distance ruler, wherein the accelerator optical distance ruler device includes a camera, a projector and an optical distance ruler calibration plate. The method for generating an optical distance ruler can be applied to the accelerator optical distance ruler device provided by the foregoing embodiments of the present invention to generate an optical distance ruler.

如图5所示,该光距尺生成方法如下:As shown in Figure 5, the generation method of the optical distance ruler is as follows:

在步骤501中,进行准备工作,将光距尺标定板挂置在加速器的前指针下方,使得光距尺标定板的中点与加速器的等中心位置对应。In step 501, preparatory work is performed, and the optical distance ruler calibration plate is hung under the front pointer of the accelerator, so that the midpoint of the optical distance ruler calibration plate corresponds to the isocenter of the accelerator.

在步骤502中,通过相机采集光距尺标定板的图片,并且利用预设角点检测算法提取图片中角点的位置,以获得对应的位置坐标,在寻找角点时,同样可以利用Shi-Tomasi角点检测算法提取图片中角点的位置。In step 502, a picture of the optical distance ruler calibration plate is collected by the camera, and the position of the corner point in the picture is extracted by using a preset corner point detection algorithm, so as to obtain the corresponding position coordinates. When searching for the corner point, Shi- The Tomasi corner detection algorithm extracts the location of the corners in the image.

在步骤503中,利用位置坐标和根据本发明上述实施例所提供的标定方法获得的相机和投影仪的标定参数Mc和Dc,确定相机相对于光距尺标定板的第一变换矩阵Rc和Tc。在实际应用中,如果之前已经进行过相机和投影仪的标定,并且相机和投影仪的位置没有改变且焦距没有调整,则可以直接采用之前标定中所得到的标定参数,而无需再次对相机和投影仪进行标定。In step 503, the first transformation matrix R of the camera relative to the optical distance ruler calibration plate is determined by using the position coordinates and the calibration parameters M c and D c of the camera and the projector obtained according to the calibration method provided by the above-mentioned embodiments of the present invention c and T c . In practical applications, if the camera and projector have been calibrated before, and the positions of the camera and projector have not changed and the focal length has not been adjusted, the calibration parameters obtained in the previous calibration can be directly used without re-calibrating the camera and projector. The projector is calibrated.

在步骤504中,根据第一变换矩阵Rc和Tc,确定投影仪相对于光距尺标定板的第二变换矩阵Rp和Tp,计算公式如下:In step 504, according to the first transformation matrices R c and T c , determine the second transformation matrices R p and T p of the projector relative to the optical distance ruler calibration plate, and the calculation formula is as follows:

Rp=Rcp·Rc,Tp=Rcp·Tc+TcpR p =R cp ·R c , T p =R cp ·T c +T cp .

在步骤505中,基于光距尺标定板上的预设点的预设坐标(例如,可以预设光距尺标定板的中心点的坐标为(0,0)),确定光距尺标定板上所有刻度点的坐标。In step 505, based on the preset coordinates of the preset point on the optical distance ruler calibration plate (for example, the coordinates of the center point of the optical distance ruler calibration plate may be preset to be (0, 0)), determine the optical distance ruler calibration plate The coordinates of all the tick points on it.

在步骤506中,基于投影仪的标定参数(焦距Mp和畸变Dp)和第二变换矩阵,确定光距尺标定板上的刻度点(步骤505中所确定的刻度点)在投影仪投影图像中所对应的位置点。In step 506, based on the calibration parameters of the projector (focal length M p and distortion D p ) and the second transformation matrix, determine the scale points on the calibration plate of the optical distance ruler (the scale points determined in step 505 ) to project on the projector the corresponding position in the image.

在步骤507中,基于所述对应的位置点,在投影仪的底片中生成光距尺图案。所生成的光距尺图案用于投影,光距尺图案示例如图6所示。可选地,将光距尺投影出来之后,可以观察其与光距尺标定板的轴线上的线条图形之间的误差,从而确定其是否满足精度要求。In step 507, based on the corresponding position points, a light distance ruler pattern is generated in the negative of the projector. The generated light distance ruler pattern is used for projection, and an example of the light distance ruler pattern is shown in Figure 6. Optionally, after the optical distance ruler is projected, the error between it and the line pattern on the axis of the optical distance ruler calibration plate can be observed, so as to determine whether it meets the accuracy requirements.

本发明实施例提出的光距尺生成方法便于后期维护,如果相机和投影仪的位置没有改变且焦距没有调整,则无需对相机和投影仪进行再次标定,只需要获取预先标定的标定参数,就可以实现光距尺生成。The optical distance ruler generation method proposed in the embodiment of the present invention is convenient for later maintenance. If the positions of the camera and the projector are not changed and the focal length is not adjusted, the camera and the projector do not need to be calibrated again, and only the pre-calibrated calibration parameters need to be obtained. Optical distance ruler can be generated.

上述实施例只为说明本发明的技术构思及特点,其目的在于让本领域普通技术人员能够了解本发明的内容并加以实施,并不能以此限制本发明的保护范围,凡根据本发明精神实质所作的等效变化或修饰,都应涵盖在本发明的保护范围内。The above-mentioned embodiments are only for illustrating the technical concept and characteristics of the present invention, and their purpose is to enable those of ordinary skill in the art to understand the content of the present invention and implement them, and cannot limit the scope of protection of the present invention with this. The equivalent changes or modifications made should be covered within the protection scope of the present invention.

Claims (10)

1.一种加速器光距尺设备,其特征在于,包括:投影仪、相机、光距尺标定板以及光程指示器,所述投影仪和所述相机固定在加速器的外壳上,所述投影仪用于投影结构光模式序列图案和光距尺图案,所述结构光模式序列图案用于标定所述投影仪和所述相机,所述相机用于采集所述投影仪所投影的结构光模式序列图案和光距尺标定板的图片,所述光距尺标定板设置在所述加速器的出射端外部,并且所述光距尺标定板的中心对应于所述加速器的等中心位置,所述光距尺标定板用于标定所述投影仪和所述相机以及验证光距尺的精度,所述光程指示器设置在所述加速器的出射端内部,来自所述光程指示器的光线沿与所述加速器的出射方向平行的方向从所述出射端射出,用于指示光距尺的刻度;1. An accelerator light distance ruler device is characterized in that, comprising: a projector, a camera, a light distance ruler calibration plate and an optical path indicator, the projector and the camera are fixed on the casing of the accelerator, and the projection The projector is used to project the structured light pattern sequence pattern and the light distance ruler pattern, the structured light pattern sequence pattern is used to calibrate the projector and the camera, and the camera is used to collect the structured light pattern sequence projected by the projector The pattern and the picture of the optical distance ruler calibration plate, the optical distance ruler calibration plate is arranged outside the exit end of the accelerator, and the center of the optical distance ruler calibration plate corresponds to the isocenter position of the accelerator, the optical distance The ruler calibration plate is used for calibrating the projector and the camera and verifying the accuracy of the optical distance ruler. The direction parallel to the output direction of the accelerator is emitted from the output end to indicate the scale of the optical distance ruler; 所述加速器光距尺设备利用以下标定方法进行标定,具体包括:The accelerator optical distance ruler device is calibrated using the following calibration methods, specifically including: 在步骤401中,通过所述相机采集所述光距尺标定板的至少三个第一图片,所述至少三个第一图片中每一图片分别对应的光距尺标定板处于不同的姿态,即采集处于至少三个不同姿态的棋盘格图片;In step 401, at least three first pictures of the optical distance ruler calibration plate are collected by the camera, and the optical distance ruler calibration plate corresponding to each of the at least three first pictures is in a different posture, That is to collect checkerboard pictures in at least three different poses; 在步骤402中,针对至少三个第一图片中每一图片分别对应的光距尺标定板所处的姿态,分别通过所述相机采集投影有结构光模式序列图案的光距尺标定板的第二图片,结构光模式序列图案通过所述投影仪进行投影,即采集与所述步骤401中采集的图片对应的投影有结构光模式序列图案的棋盘格图片;In step 402, according to the posture of the optical distance ruler calibration plate corresponding to each of the at least three first pictures, respectively, the camera collects the first position of the optical distance ruler calibration plate on which the structured light pattern sequence pattern is projected. Two pictures, the structured light pattern sequence pattern is projected by the projector, that is, a checkerboard picture corresponding to the picture collected in the step 401 on which the structured light pattern sequence pattern is projected is collected; 在步骤403中,利用预定角点检测算法提取第一图片中角点的位置,以获得第一图片角点位置坐标,第一图片角点位置坐标是根据所提取的第一图片中角点的位置相对于所述光距尺标定板上的图案的预设实际角点位置坐标而获得的,并且将第一图片角点位置坐标记为In step 403, the position of the corner point in the first picture is extracted by using a predetermined corner point detection algorithm to obtain the position coordinates of the corner point of the first picture. The position is obtained relative to the preset actual corner position coordinates of the pattern on the optical distance ruler calibration plate, and the first picture corner position coordinates are marked as
Figure FDA0002621389890000011
Figure FDA0002621389890000011
所述光距尺标定板上的图案的预设实际角点位置坐标预先定义为The preset actual corner position coordinates of the pattern on the optical distance ruler calibration board are predefined as
Figure FDA0002621389890000021
Figure FDA0002621389890000021
该角点坐标与通过预定角点检测算法获得的棋盘格角点坐标相对应;The corner coordinates correspond to the corner coordinates of the checkerboard obtained by the predetermined corner detection algorithm; 在步骤404中,分别针对横向结构光和纵向结构光所对应的第二图片进行解码,以获得第二图片的横向码字和纵向码字;In step 404, the second pictures corresponding to the horizontal structured light and the vertical structured light are respectively decoded to obtain the horizontal codeword and the vertical codeword of the second picture; 在步骤405中,根据横向码字和纵向码字,利用单应性矩阵确定所述投影仪的投影图案角点位置坐标,投影图案角点位置坐标与预设实际角点位置坐标相对应,投影图案角点位置坐标记为In step 405, according to the horizontal codeword and the vertical codeword, the position coordinates of the corner points of the projection pattern of the projector are determined by using the homography matrix, and the position coordinates of the corner points of the projection pattern correspond to the preset actual corner point position coordinates, and the projection The coordinates of the corner points of the pattern are marked as
Figure FDA0002621389890000022
Figure FDA0002621389890000022
在步骤406中,根据第一图片角点位置坐标qc、预设实际角点位置坐标Q和投影图案角点位置坐标qp,并且利用预定标定算法,确定所述相机和所述投影仪的标定参数,所述预定标定算法为张正友标定算法,所述标定参数包括相机镜头的焦距Mc,相机镜头的畸变Dc,投影仪镜头的焦距Mp,投影仪镜头的畸变Dp以及相机和投影仪之间的几何变换Rcp和TcpIn step 406 , according to the first picture corner position coordinates q c , the preset actual corner position coordinates Q and the projection pattern corner position coordinates q p , and use a predetermined calibration algorithm, determine the camera and the projector. Calibration parameters, the predetermined calibration algorithm is Zhang Zhengyou calibration algorithm, and the calibration parameters include the focal length M c of the camera lens, the distortion D c of the camera lens, the focal length M p of the projector lens, the distortion D p of the projector lens, and the camera and geometric transformations between projectors R cp and T cp ; 所述投影仪和相机的标定流程中使用Shi-Tomasi角点检测的算法,其通过计算图像窗口平移[u,v]产生的灰度变化E(u,v)The Shi-Tomasi corner detection algorithm is used in the calibration process of the projector and the camera, which calculates the grayscale change E(u, v) generated by the translation of the image window [u, v]
Figure FDA0002621389890000023
Figure FDA0002621389890000023
其中,M为自相关矩阵,定义如下Among them, M is the autocorrelation matrix, which is defined as follows
Figure FDA0002621389890000024
Figure FDA0002621389890000024
式中,w(x,y)表示窗口函数;In the formula, w(x, y) represents the window function; Ix和Iy表示图像在x和y方向的导数;I x and I y represent the derivatives of the image in the x and y directions; 对于M的两个特征值λ1和λ2,Shi-Tomasi算法认为角点的检测取决最小的特征值,角点判断函数R如下,当R的值超过阈值则认为其为角点:For the two eigenvalues λ 1 and λ 2 of M, the Shi-Tomasi algorithm believes that the detection of corner points depends on the smallest eigenvalue, and the corner point judgment function R is as follows, when the value of R exceeds the threshold value, it is considered as a corner point: R=min(λ1,λ2);R=min(λ 1 , λ 2 ); 结构光编码使用相移法,相移法编码模式如下:Structured light encoding uses the phase shift method, and the phase shift method encoding mode is as follows: In(x,y)=I′(x,y)+I″(x,y)cos[φ(x,y)-2π/n];I n (x, y)=I′(x, y)+I″(x, y)cos[φ(x,y)-2π/n]; 其中,I′(x,y)为图像中该点的平均强度;Among them, I'(x, y) is the average intensity of the point in the image; I″(x,y)为图像中该点调制的强度;I″(x, y) is the modulated intensity of this point in the image; In(x,y)为最终相机采集到的图像,n∈1,2,...,N为相移模式索引,N为相移模式图片的数量;I n (x, y) is the image collected by the final camera, n ∈ 1, 2,..., N is the index of the phase shift mode, and N is the number of pictures in the phase shift mode; φ(x,y)为求解的相位;φ(x, y) is the phase to be solved; 使用的相移法为3步相移法,即上式的N等于3;The phase shift method used is a 3-step phase shift method, that is, N in the above formula is equal to 3; 此时,相位φ(x,y)可由下列公式计算获得:At this time, the phase φ(x, y) can be calculated by the following formula:
Figure FDA0002621389890000031
Figure FDA0002621389890000031
通过φ(x,y)/2π×W和φ(x,y)/2π×H分别求解所述投影仪宽和高两个方向所对应的码字,其中:W代表所述投影仪的宽,而H代表所述投影仪的高;Through φ(x, y)/2π×W and φ(x, y)/2π×H, the code words corresponding to the width and height of the projector are solved respectively, where: W represents the width of the projector , and H represents the height of the projector; 棋盘格角点相对应的投影坐标的计算需要结合局部单应性矩阵进行求解,通过求解局部单应性矩阵来寻找投影仪像素点与棋盘格角点的对应关系,对于每一个棋盘格图案,利用图案周围的码字,计算局部的单应性矩阵,最后利用单应性矩阵将棋盘格角点和投影仪上的像素点相对应,单应矩阵的计算通过最小化下列公式:The calculation of the projection coordinates corresponding to the corners of the checkerboard needs to be solved in combination with the local homography matrix. By solving the local homography matrix, the correspondence between the pixel points of the projector and the corners of the checkerboard is found. For each checkerboard pattern, Using the code words around the pattern, calculate the local homography matrix, and finally use the homography matrix to correspond the corners of the checkerboard with the pixels on the projector. The calculation of the homography matrix minimizes the following formula:
Figure FDA0002621389890000032
Figure FDA0002621389890000032
其中,H∈R3×3,为单应性矩阵;Among them, H∈R 3×3 , is a homography matrix; qc=[x,y,1]T为棋盘图像中的像素坐标,由标定流程地三步获得;q c =[x, y, 1] T is the pixel coordinates in the chessboard image, obtained by the three steps of the calibration process; u=[col,row,1]T为解码所获得的码字;u=[col, row, 1] T is the codeword obtained by decoding;
Figure FDA0002621389890000033
Figure FDA0002621389890000033
然后,通过将单应性矩阵与棋盘图像中的像素坐标相乘即可以获得投影仪对应点。Then, the projector corresponding point can be obtained by multiplying the homography matrix with the pixel coordinates in the checkerboard image.
2.根据权利要求1所述的加速器光距尺设备,其特征在于,所述光距尺标定板的轴线的两侧分别设置有第一预定数目的等间距分布的棋盘格图案,用于确定所述光距尺标定板与所述投影仪和所述相机的相对位置关系。2. The accelerator optical distance ruler device according to claim 1, wherein the two sides of the axis of the optical distance ruler calibration plate are respectively provided with a first predetermined number of equidistantly distributed checkerboard patterns for determining The relative positional relationship between the optical distance ruler calibration plate, the projector and the camera. 3.根据权利要求1或2所述的加速器光距尺设备,其特征在于,所述光距尺标定板的轴线上设置有第二预定数目的等间距分布的线条图形,用于验证光距尺是否满足精度要求。3. The accelerator optical distance ruler device according to claim 1 or 2, wherein the axis of the optical distance ruler calibration plate is provided with a second predetermined number of equidistantly distributed line graphics for verifying the optical distance Whether the ruler meets the accuracy requirements. 4.根据权利要求1所述的加速器光距尺设备,其特征在于,所述光程指示器设置在所述加速器的出射端的内壁上,来自所述光程指示器的光线经由设置在所述加速器的出射端的具有预定角度的反射镜反射后,沿与所述加速器的出射方向平行的方向从所述出射端射出。4 . The accelerator optical distance ruler device according to claim 1 , wherein the optical distance indicator is arranged on the inner wall of the exit end of the accelerator, and the light from the optical distance indicator is arranged on the After being reflected by a reflector with a predetermined angle at the exit end of the accelerator, it is emitted from the exit end in a direction parallel to the exit direction of the accelerator. 5.根据权利要求1、2或4中任一项所述的加速器光距尺设备,其特征在于,所述光距尺标定板挂置在所述加速器的前指针的下方。5. The accelerator optical distance ruler device according to any one of claims 1, 2 or 4, wherein the optical distance ruler calibration plate is hung below the front pointer of the accelerator. 6.一种加速器光距尺设备的标定方法,其特征在于,所述加速器光距尺设备包括相机、投影仪和光距尺标定板,所述方法包括:6. A calibration method of an accelerator optical distance ruler device, wherein the accelerator optical distance ruler device comprises a camera, a projector and an optical distance ruler calibration plate, and the method comprises: 通过所述相机采集所述光距尺标定板的至少三个第一图片,所述至少三个第一图片中每一图片分别对应的光距尺标定板处于不同的姿态;At least three first pictures of the optical distance ruler calibration plate are collected by the camera, and the optical distance ruler calibration plate corresponding to each of the at least three first pictures is in a different posture; 针对所述至少三个第一图片中每一图片分别对应的光距尺标定板所处的姿态,分别通过所述相机采集投影有结构光模式序列图案的光距尺标定板的第二图片,所述结构光模式序列图案通过所述投影仪进行投影;According to the posture of the optical distance ruler calibration plate corresponding to each of the at least three first pictures, respectively, the camera collects the second picture of the optical distance ruler calibration plate on which the structured light pattern sequence pattern is projected, the structured light pattern sequence pattern is projected by the projector; 利用预定角点检测算法提取所述第一图片中角点的位置,以获得第一图片角点位置坐标,所述第一图片角点位置坐标是根据所提取的所述第一图片中角点的位置相对于所述光距尺标定板上的图案的预设实际角点位置坐标而获得的;The position of the corner point in the first picture is extracted by using a predetermined corner point detection algorithm to obtain the position coordinate of the corner point of the first picture, and the position coordinate of the corner point of the first picture is based on the extracted corner point of the first picture. The position is obtained relative to the preset actual corner position coordinates of the pattern on the optical distance ruler calibration plate; 分别针对横向结构光和纵向结构光所对应的第二图片进行解码,以获得第二图片的横向码字和纵向码字;Decoding the second picture corresponding to the horizontal structured light and the vertical structured light respectively to obtain the horizontal codeword and the vertical codeword of the second picture; 根据所述横向码字和所述纵向码字,利用单应性矩阵确定所述投影仪的投影图案角点位置坐标,所述投影图案角点位置坐标与所述预设实际角点位置坐标相对应;According to the horizontal codeword and the vertical codeword, a homography matrix is used to determine the position coordinates of the corner points of the projection pattern of the projector, and the position coordinates of the corner points of the projection pattern are different from the preset actual corner point position coordinates. correspond; 根据所述第一图片角点位置坐标、所述预设实际角点位置坐标和所述投影图案角点位置坐标,并且利用预定标定算法,确定所述相机和所述投影仪的标定参数。The calibration parameters of the camera and the projector are determined according to the position coordinates of the corner points of the first picture, the position coordinates of the preset actual corner points, and the position coordinates of the corner points of the projection pattern, and using a predetermined calibration algorithm. 7.根据权利要求6所述的加速器光距尺设备的标定方法,其特征在于,所述根据所述横向码字和所述纵向码字,利用单应性矩阵确定所述投影仪的投影图案角点位置坐标,包括:7. The method for calibrating an accelerator optical distance ruler device according to claim 6, wherein the projection pattern of the projector is determined by using a homography matrix according to the horizontal codeword and the vertical codeword Corner position coordinates, including: 根据所述横向码字和所述纵向码字,计算局部单应性矩阵;Calculate a local homography matrix according to the horizontal codeword and the vertical codeword; 基于所述局部单应性矩阵,将所述投影仪的投影图案角点与所述光距尺标定板上的实际角点相对应;Based on the local homography matrix, corresponding the corner points of the projection pattern of the projector to the actual corner points on the calibration plate of the optical distance ruler; 基于所述预设实际角点位置坐标确定对应的投影图案角点位置坐标。The corresponding corner position coordinates of the projection pattern are determined based on the preset actual corner position coordinates. 8.根据权利要求6所述的加速器光距尺设备的标定方法,其特征在于,所述光距尺标定板的轴线的两侧分别设置有第一预定数目的等间距分布的棋盘格图案。8 . The method for calibrating an accelerator optical distance ruler device according to claim 6 , wherein the two sides of the axis of the optical distance ruler calibration plate are respectively provided with a first predetermined number of equally spaced checkerboard patterns. 9 . 9.根据权利要求6所述的加速器光距尺设备的标定方法,其特征在于,所述标定参数包括相机镜头的焦距、相机镜头的畸变、投影仪镜头的焦距、投影仪镜头的畸变以及相机和投影仪之间的几何变换。9. The calibration method of accelerator optical distance ruler device according to claim 6, wherein the calibration parameters comprise the focal length of the camera lens, the distortion of the camera lens, the focal length of the projector lens, the distortion of the projector lens and the camera lens and the geometric transformation between the projector. 10.一种光距尺生成方法,其特征在于,用于加速器光距尺设备生成光距尺,所述加速器光距尺设备包括相机、投影仪和光距尺标定板,所述方法包括:10. A method for generating an optical distance ruler, characterized in that it is used for an accelerator optical distance ruler device to generate an optical distance ruler, and the accelerator optical distance ruler device comprises a camera, a projector and an optical distance ruler calibration plate, and the method comprises: 将所述光距尺标定板挂置在加速器的前指针下方,使得所述光距尺标定板的中点与所述加速器的等中心位置对应;Hanging the optical distance ruler calibration plate below the front pointer of the accelerator, so that the midpoint of the optical distance ruler calibration plate corresponds to the isocenter position of the accelerator; 通过所述相机采集所述光距尺标定板的图片,并且利用预设角点检测算法提取所述图片中角点的位置,以获得对应的位置坐标坐标;Collect a picture of the optical distance ruler calibration board by the camera, and extract the position of the corner point in the picture by using a preset corner point detection algorithm to obtain the corresponding position coordinate coordinates; 利用所述位置坐标和根据权利要求6至9中任一项所述的标定方法获得的所述相机和所述投影仪的标定参数,确定所述相机相对于所述光距尺标定板的第一变换矩阵;Using the position coordinates and the calibration parameters of the camera and the projector obtained by the calibration method according to any one of claims 6 to 9, the first position of the camera relative to the optical distance ruler calibration plate is determined. a transformation matrix; 根据所述第一变换矩阵,确定所述投影仪相对于所述光距尺标定板的第二变换矩阵;According to the first transformation matrix, determine a second transformation matrix of the projector relative to the optical distance ruler calibration plate; 基于所述光距尺标定板上的预设点的预设坐标,确定所述光距尺标定板上所有刻度点的坐标;Determine the coordinates of all scale points on the optical distance ruler calibration plate based on the preset coordinates of the preset points on the optical distance ruler calibration plate; 基于所述投影仪的标定参数和所述第二变换矩阵,确定所述光距尺标定板上的刻度点在投影仪投影图像中所对应的位置点;Based on the calibration parameters of the projector and the second transformation matrix, determine the position points corresponding to the scale points on the calibration plate of the optical distance ruler in the projected image of the projector; 基于所述对应的位置点,在所述投影仪的底片中生成光距尺图案。Based on the corresponding position points, a light distance ruler pattern is generated in the negative of the projector.
CN201910391616.9A 2019-05-10 2019-05-10 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method Active CN110141800B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910391616.9A CN110141800B (en) 2019-05-10 2019-05-10 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method
PCT/CN2019/116980 WO2020228274A1 (en) 2019-05-10 2019-11-11 Accelerator optical distance indicator apparatus, calibration method, and optical distance indicator generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910391616.9A CN110141800B (en) 2019-05-10 2019-05-10 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method

Publications (2)

Publication Number Publication Date
CN110141800A CN110141800A (en) 2019-08-20
CN110141800B true CN110141800B (en) 2020-10-16

Family

ID=67594209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910391616.9A Active CN110141800B (en) 2019-05-10 2019-05-10 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method

Country Status (2)

Country Link
CN (1) CN110141800B (en)
WO (1) WO2020228274A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110141800B (en) * 2019-05-10 2020-10-16 苏州雷泰医疗科技有限公司 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method
CN111632279B (en) * 2020-05-23 2021-12-10 四川中测辐射科技有限公司 SSD (solid State disk) accurate adjustment method for three-dimensional beam analyzer by using multiple sensors

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973202B2 (en) * 1998-10-23 2005-12-06 Varian Medical Systems Technologies, Inc. Single-camera tracking of an object
WO2006138643A2 (en) * 2005-06-16 2006-12-28 Nomos Corporation System, tracker, and program product to facilitate and verify proper target alignment for radiation delivery, and related methods
CN202403670U (en) * 2011-12-31 2012-08-29 成都利尼科医学技术发展有限公司 Optical distance rule of medical linear accelerator
CN102708566B (en) * 2012-05-08 2014-10-29 天津工业大学 Novel single-camera and single-projection light source synchronous calibrating method
US20170136261A1 (en) * 2013-12-11 2017-05-18 Karsten Hofmann System and method for determining the position of objects in a radiation room for radiation therapy
CN105268119B (en) * 2014-07-22 2019-06-18 苏州雷泰医疗科技有限公司 a radiotherapy device
CN104338245B (en) * 2014-11-11 2017-12-29 中国科学院近代物理研究所 A kind of parallel light field instruction device and method for simulating ion beam launched field
CN104657982A (en) * 2015-01-15 2015-05-27 华中科技大学 Calibration method for projector
CN104732539A (en) * 2015-03-27 2015-06-24 华中科技大学 Projector calibration method
US10674973B2 (en) * 2015-04-24 2020-06-09 Rush University Medical Center Radiation therapy system and methods of use thereof
US20170312547A1 (en) * 2016-04-29 2017-11-02 The Johns Hopkins University Method to reconstruct the 3d map of the radiation treatment isocenter of a medical accelerator
CN108225216B (en) * 2016-12-14 2021-03-12 中国科学院深圳先进技术研究院 Structured light system calibration method and device, structured light system and mobile device
CN106991702B (en) * 2017-03-03 2020-06-23 浙江华睿科技有限公司 Projector calibration method and device
CN108245788B (en) * 2017-12-27 2020-06-02 苏州雷泰医疗科技有限公司 A binocular ranging device and method, and an accelerator radiotherapy system including the device
CN110141800B (en) * 2019-05-10 2020-10-16 苏州雷泰医疗科技有限公司 A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method

Also Published As

Publication number Publication date
CN110141800A (en) 2019-08-20
WO2020228274A1 (en) 2020-11-19

Similar Documents

Publication Publication Date Title
CN109405765B (en) A high-precision depth calculation method and system based on speckle structured light
CN105551039B (en) The scaling method and device of structural light three-dimensional scanning system
CN106767533B (en) Efficient phase-three-dimensional mapping method and system based on fringe projection technology of profiling
US9605961B2 (en) Information processing apparatus that performs three-dimensional shape measurement, information processing method, and storage medium
CN110381302B (en) Projection pattern correction method, device and system for projection system
Song et al. Use of LCD panel for calibrating structured-light-based range sensing system
CN110595387A (en) A calibration method for 3D reconstruction system based on multi-frequency structured light
Okatani et al. Autocalibration of a projector-camera system
KR20150082438A (en) Calibration device and method for calibrating a dental camera
KR20060031685A (en) Image projector, tilt angle detection method, and projection image correction method
CN107883874B (en) Calibration method of circular structured light
CN110414510A (en) A method for correcting readings of pointer instruments
CN110141800B (en) A kind of accelerator optical distance ruler equipment, calibration method and optical distance ruler generation method
Park et al. Active calibration of camera-projector systems based on planar homography
JP2007036482A (en) Information projection display device and program
CN106643563A (en) Table type large visual field three-dimensional scanning device and method
CN114170321A (en) A camera self-calibration method and system based on ranging
CN117387523A (en) Three-dimensional measurement method and device based on structured light, electronic equipment and storage medium
CN114926538B (en) External parameter calibration method and device for monocular laser speckle projection system
CN103559710B (en) A kind of scaling method for three-dimensional reconstruction system
CN114463436B (en) Calibration method, system, equipment and storage medium for galvanometer scanning device
CN115375773A (en) External parameter calibration method and related device for monocular laser speckle projection system
CN108895979B (en) Line segment coded structured light depth acquisition method
Draréni et al. Geometric video projector auto-calibration
CN109341584A (en) A three-dimensional topography characterization method of gear tooth surface

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
CP03 Change of name, title or address

Address after: 100000, 1st Floor, Building 7, No. 7 Tongji Middle Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Patentee after: Beijing Leitai Tengfei Medical Technology Co.,Ltd.

Country or region after: China

Address before: No. 3 Jinsheng Road, Suzhou Industrial Park, Jiangsu Province

Patentee before: SUZHOU LINATECH MEDICAL SCIENCE AND TECHNOLOGY

Country or region before: China

CP03 Change of name, title or address