CN108760766B - An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals - Google Patents
An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals Download PDFInfo
- Publication number
- CN108760766B CN108760766B CN201810517270.8A CN201810517270A CN108760766B CN 108760766 B CN108760766 B CN 108760766B CN 201810517270 A CN201810517270 A CN 201810517270A CN 108760766 B CN108760766 B CN 108760766B
- Authority
- CN
- China
- Prior art keywords
- image
- images
- defect
- detection
- micro
- 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
Links
- 239000013078 crystal Substances 0.000 title claims abstract description 91
- 230000003287 optical effect Effects 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000007547 defect Effects 0.000 claims abstract description 73
- 238000001514 detection method Methods 0.000 claims abstract description 54
- 230000009466 transformation Effects 0.000 claims abstract description 13
- 230000008439 repair process Effects 0.000 claims description 18
- 230000033001 locomotion Effects 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 15
- 238000003801 milling Methods 0.000 claims description 10
- 238000011426 transformation method Methods 0.000 claims description 9
- 239000004579 marble Substances 0.000 claims description 5
- 230000004927 fusion Effects 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 5
- 239000000306 component Substances 0.000 description 4
- 238000007689 inspection Methods 0.000 description 4
- 238000005188 flotation Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 239000002803 fossil fuel Substances 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000003754 machining Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005459 micromachining Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000008685 targeting Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/95—Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
Landscapes
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Image Processing (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
一种大口径光学晶体表面微缺陷检测用的图像拼接方法,涉及一种微缺陷检测用的图像拼接方法。本发明为了解决目前的缺陷检测中大口径晶体的图像采集和缺陷识别环节耗费时间较长的问题。本发明首先对待测大口径晶体元件表面区域进行扫描,并利用检测显微镜和检测CCD对扫描区域进行实时图像采集,并确定单张图片的尺寸范围和重叠区域尺寸:然后基于坐标系平移变换法实现采集图像的拼接和缺陷点的坐标转换,确定每个图像中每个缺陷点在全局坐标系下的位置,并建立缺陷数据库。本发明适用于光学晶体表面微缺陷检测的图像拼接。
An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals relates to an image stitching method for detecting micro-defects. The present invention solves the problem that the image acquisition and defect identification links of large-diameter crystals take a long time in the current defect detection. The invention firstly scans the surface area of the large-diameter crystal element to be measured, and uses a detection microscope and a detection CCD to collect real-time images of the scanned area, and determines the size range and overlapping area size of a single picture; Collect image splicing and coordinate transformation of defect points, determine the position of each defect point in each image in the global coordinate system, and establish a defect database. The invention is suitable for image splicing for detection of micro-defects on the surface of optical crystals.
Description
技术领域technical field
本发明属于光学工程领域,具体涉及一种微缺陷检测用的图像拼接方法。The invention belongs to the field of optical engineering, and particularly relates to an image stitching method for micro-defect detection.
背景技术Background technique
为了缓解人类所面临的化石燃料紧缺与环境污染严重的难题,世界各国正纷纷开展激光驱动惯性约束核聚变装置的研制工作,以求获得可控的清洁聚变能源。以KDP为代表的非线性光学晶体材料因具备独特的光学性能而被用来制作光电开关和倍频器,成为当前激光核聚变工程中不可替代的核心元件。然而,大口径光学晶体的水溶性生长和超精密加工均极其困难(单片晶体的传统制备周期就长达两年)。并且,光学晶体元件的机械加工和激光预处理会在其表面引入微米量级的缺陷点,这些缺陷点在高能量激光使用环境下极易诱发激光损伤,并在后续强激光打靶过程中急剧扩展,造成整块晶体元件的报废,最终严重限制大口径晶体元件的光学性能和使用寿命。现阶段,光学晶体表面微缺陷引起的激光损伤问题已成为限制激光核聚变装置输出能量提升的技术瓶颈,开发大口径光学晶体表面微缺陷的控制和去除技术,对实现激光核聚变点火预期目标具重大意义。In order to alleviate the problems of shortage of fossil fuels and serious environmental pollution faced by mankind, countries around the world are developing laser-driven inertial confinement nuclear fusion devices in order to obtain controllable clean fusion energy. Nonlinear optical crystal materials represented by KDP are used to make photoelectric switches and frequency multipliers because of their unique optical properties, and they have become irreplaceable core components in current laser fusion projects. However, water-soluble growth and ultra-precision machining of large-diameter optical crystals are extremely difficult (the traditional preparation cycle for monolithic crystals is as long as two years). In addition, the mechanical processing and laser pretreatment of optical crystal elements will introduce micron-scale defect points on the surface of the optical crystal element. These defect points are very easy to induce laser damage in the environment of high-energy laser use, and expand rapidly in the subsequent high-energy laser targeting process. , resulting in the scrapping of the entire crystal element, and ultimately severely limiting the optical performance and service life of the large-diameter crystal element. At this stage, the problem of laser damage caused by micro-defects on the surface of optical crystals has become a technical bottleneck restricting the increase in the output energy of laser fusion devices. The development of control and removal technologies for micro-defects on the surface of large-diameter optical crystals is very useful for achieving the expected goal of laser fusion ignition. significant.
目前,采用微机械加工技术对光学晶体表面微缺陷进行精密修复,是缓解缺陷引起元件激光损伤,延长大口径光学晶体元件使用寿命最有前景的一种策略,该策略可实现高精度、高质量、大口径昂贵光学晶体的循环使用,从而保证激光核聚变装置的高能量负载的稳定运行。光学晶体表面微缺陷的快速、精确检测是实现其精密修复的关键。首先,光学晶体表面微缺陷的尺寸和形状信息,直接决定了后续微机械修复策略的制定和工艺参数的选取。另外,光学晶体表面微缺陷点的检测精度会严重影响修复过程中刀具与待修复缺陷点相对位置的确定,最终会影响缺陷点的成功修复与否。尤其重要的是,激光核聚变装置的打靶密度要求必须在4小时内完成一次大口径晶体元件的更换、检测、修复和再安装过程,即缺陷检测必须具有高效的特点。然而大口径光学晶体表面微缺陷尺寸小、形状各异、分布不均匀,仅仅在缺陷检测中大口径晶体的图像采集和缺陷识别环节,通常就需耗时数小时。并且,通过微缺陷的高效检测只能获得元件大量、局部区域的缺陷信息,缺陷点的位置坐标也仅仅是相对于单张图片的像素坐标,而在微缺陷的精密修复过程中,缺陷在整个光学晶体表面全局坐标系中的位置坐标才是对修复最有价值的信息。因此,亟需开发一种大口径光学晶体表面微缺陷检测用的图像拼接方法,通过对检测获得的批量、局部缺陷图像进行高效、高精拼接,获得全口径光学晶体表面范围内的缺陷位置分布,为大口径光学晶体元件的有效修复提供重要的参数信息。At present, the use of micromachining technology to precisely repair micro-defects on the surface of optical crystals is the most promising strategy to alleviate the laser damage of components caused by defects and prolong the service life of large-diameter optical crystal components. This strategy can achieve high precision and high quality. , The recycling of large-diameter expensive optical crystals, so as to ensure the stable operation of the high-energy load of the laser nuclear fusion device. Rapid and accurate detection of micro-defects on the surface of optical crystals is the key to their precise repair. First, the size and shape information of micro-defects on the surface of optical crystals directly determine the formulation of subsequent micro-mechanical repair strategies and the selection of process parameters. In addition, the detection accuracy of micro-defect points on the surface of the optical crystal will seriously affect the determination of the relative position of the tool and the defect points to be repaired during the repair process, which will ultimately affect the successful repair of the defect points. Most importantly, the target density of the laser fusion device requires that the replacement, inspection, repair and re-installation process of large-diameter crystal elements must be completed within 4 hours, that is, defect detection must have the characteristics of high efficiency. However, the micro-defects on the surface of large-diameter optical crystals are small in size, different in shape, and uneven in distribution. It usually takes several hours for image acquisition and defect identification of large-diameter crystals in defect detection. Moreover, through the efficient detection of micro-defects, only the defect information of a large number of components and local areas can be obtained, and the position coordinates of the defect points are only relative to the pixel coordinates of a single image. The position coordinates in the global coordinate system of the optical crystal surface are the most valuable information for repair. Therefore, it is urgent to develop an image stitching method for the detection of micro-defects on the surface of large-aperture optical crystals. Through efficient and high-precision stitching of batch and local defect images obtained by inspection, the defect position distribution within the surface range of full-aperture optical crystals can be obtained. , which provides important parameter information for the effective repair of large-diameter optical crystal components.
发明内容SUMMARY OF THE INVENTION
本发明为了解决目前的缺陷检测中大口径晶体的图像采集和缺陷识别环节耗费时间较长的问题。The present invention solves the problem that the image acquisition and defect identification links of large-diameter crystals take a long time in the current defect detection.
一种大口径光学晶体表面微缺陷检测用的图像拼接方法,是基于大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置实现的,基于大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置的气浮框架下方设有大理石平台,大理石平台上、对应气浮框架正下方位置开有修复窗口,显微镜移动平台支架(121)上设有显微镜和检测CCD(881);An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals is realized based on a fast searching and micro-milling repair device for large-diameter KDP crystal surface micro-defects. There is a marble platform under the air flotation frame, a repair window is opened on the marble platform, and the position directly below the corresponding air flotation frame, and a microscope and a detection CCD (881) are arranged on the microscope moving platform bracket (121);
一种大口径光学晶体表面微缺陷检测用的图像拼接方法,包括以下步骤:An image stitching method for detecting micro-defects on the surface of a large-diameter optical crystal, comprising the following steps:
步骤1、对待测大口径晶体元件表面区域进行扫描,并利用检测显微镜和检测CCD对扫描区域进行实时图像采集,获得大口径晶体元件批量的局部、单张扫描图像;
所述检测CCD是电荷藕合器件图像传感器;The detection CCD is a charge-coupled device image sensor;
采集图像的过程中,检测CCD的视野范围在X、Y轴的移动方向上的重叠尺寸分别为Δm和Δn;During the process of collecting images, the overlapping dimensions of the field of view of the detection CCD in the moving directions of the X and Y axes are Δm and Δn respectively;
步骤2、确定单张图片的尺寸范围和重叠区域尺寸:
移动大口径晶体元件,使晶体元件边缘位置位于修复窗口内,保证检测CCD中观察到的晶体表面无缺陷点;Move the large-diameter crystal element so that the edge of the crystal element is located in the repair window to ensure that there are no defects on the crystal surface observed in the detection CCD;
然后使微铣刀开始转动,抬升刀具三轴联动平台,直到在检测CCD中能观察到刀具前端轮廓,停止刀具进给;此时在检测CCD中刀具位于某位置P1,采集图像I1;接下来移动刀具在X方向移动,移动距离为x,到达位置P2,采集图像I2;继续移动x到达P3,采集图像I3;然后在Y方向连续移动两次,移动距离为x,分别采集图像I4、I5;Then the micro-milling tool starts to rotate, and the three-axis linkage platform of the tool is lifted until the front end profile of the tool can be observed in the detection CCD, and the tool feeding is stopped; at this time, the tool is located at a certain position P 1 in the detection CCD, and the image I 1 is collected; Next, the moving tool moves in the X direction, the moving distance is x, reaches the position P 2 , and collects the image I 2 ; continues to move x to reach P 3 , and collects the image I 3 ; then continuously moves twice in the Y direction, and the moving distance is x, Collect images I 4 and I 5 respectively;
对五个位置的图像进行处理,采用图像特征匹配算法,提取特征点计算图像中刀具移动的像素距离,The images of five positions are processed, and the image feature matching algorithm is used to extract the feature points to calculate the pixel distance of the tool movement in the image.
利用集中在刀具刀尖位置的特征点,按照特征点移动顺序依次两两图像进行匹配;分别计算特征点在X、Y方向移动的像素距离,并计算出特征点在X、Y方向上的平均偏移量,即特征点平均像素移动距离ΔP;Using the feature points concentrated at the position of the tool tip, the two images are matched in turn according to the moving sequence of the feature points; the pixel distance of the feature points moving in the X and Y directions is calculated respectively, and the average value of the feature points in the X and Y directions is calculated. Offset, that is, the average pixel moving distance ΔP of the feature point;
由此得出图像的实际放大倍率K:This results in the actual magnification K of the image:
K=(α/x)·ΔPK=(α/x)·ΔP
其中α为像素尺寸;where α is the pixel size;
通过图像的实际放大倍率K计算出单张图片的尺寸范围,W、H分别为每张图片的宽度和高度;并确定各采集图片的重叠尺寸;Calculate the size range of a single image through the actual magnification K of the image, W and H are the width and height of each image respectively; and determine the overlapping size of each captured image;
步骤3、基于坐标系平移变换法实现采集图像的拼接和缺陷点的坐标转换:
单张图像采集中每一张图像以“X-mx-Y-ny”的方式命名,其中mx、ny分别表示X、Y方向走过的扫描步距数,即代表所捕获图像所处的实时位置,具有相同mx或ny编号的图像有着同样的X或Y方向坐标位置;假设在Y方向有n张图像,X方向有m张扫描图像,在这m×n张扫描图像组成的全局坐标系中,假设仍以左上角为原点;用Ii,j表示X、Y方向上编号分别为i,j的图像,i,j=0,1,2...,则Ii,j的坐标原点Oi,j在全局坐标系下的位置为O'i,j,每个图像在全局坐标系下的坐标值(i·(W-Δm),j·(H-Δn));Oi,j表示每张图片对应图像坐标系的坐标原点;Each image in the single image acquisition is named in the manner of "Xm x -Yny ", where m x and ny represent the number of scanning steps traveled in the X and Y directions respectively, that is, represent the real-time location of the captured image. Position, the images with the same m x or ny number have the same X or Y coordinate position; assuming there are n images in the Y direction and m scanned images in the X direction, in the global composed of m × n scanned images In the coordinate system, it is assumed that the upper left corner is still the origin; I i,j represents the images numbered i, j in the X and Y directions respectively, i, j=0, 1, 2..., then I i, j The position of the coordinate origin O i,j in the global coordinate system is O' i,j , the coordinate value of each image in the global coordinate system (i·(W-Δm),j·(H-Δn)); O i,j represents the coordinate origin of the image coordinate system corresponding to each picture;
进而确定每个图像中每个缺陷点在全局坐标系下的位置,并建立缺陷数据库。Then, the position of each defect point in each image in the global coordinate system is determined, and a defect database is established.
进一步地,所述的一种大口径光学晶体表面微缺陷检测用的图像拼接方法,还包括以下步骤:Further, the image stitching method for detecting micro-defects on the surface of a large-diameter optical crystal further comprises the following steps:
步骤4、采用坐标系平移变换法进行图像拼接:
首先根据图像数量和排布情况,建立一个空白的“画布”,画布的尺寸由图像以及相互重叠部分尺寸确定;First, according to the number and arrangement of images, a blank "canvas" is established. The size of the canvas is determined by the size of the images and the overlapping parts;
然后,通过缺陷数据库中缺陷点的位置信息,对每张图像中所有缺陷点位置进行坐标转换,在“画布”上的相应位置,根据缺陷点大小画出示意其形状、大小的拟合椭圆;完成仅含有缺陷信息的微缺陷检测用的图像拼接。Then, through the position information of the defect points in the defect database, coordinate transformation is carried out on the positions of all defect points in each image, and at the corresponding position on the "canvas", according to the size of the defect point, draw a fitting ellipse indicating its shape and size; Complete image stitching for micro-defect detection containing only defect information.
进一步地,确定单张图片的尺寸范围和重叠区域尺寸之前需要利用激光干涉仪测量X、Y轴的定位误差,并进行跟随误差补偿。Further, before determining the size range of a single image and the size of the overlapping area, a laser interferometer needs to be used to measure the positioning errors of the X and Y axes, and to perform following error compensation.
进一步地,所述x为500μm。Further, the x is 500 μm.
本发明具有以下有益效果:The present invention has the following beneficial effects:
(1)通过对比基于图像特征匹配算法和本发明的效率和精度,本发明对于90mm×90mm的采集图像,完成图像拼接全过程耗时不超过1min。(1) By comparing the efficiency and accuracy based on the image feature matching algorithm and the present invention, the present invention takes no more than 1 minute to complete the entire process of image stitching for a 90mm×90mm collected image.
(2)本发明所提出的图像坐标系转换拼接方法可根据相邻采集图像之间的重叠部分尺寸,通过坐标系平移变换快速实现批量局部图像的拼接和缺陷坐标转换,将每张采集图像中缺陷点信息在整块晶体表面的全局坐标系中进行提取和汇总;(2) The image coordinate system conversion and splicing method proposed by the present invention can quickly realize the splicing and defect coordinate conversion of batch local images through coordinate system translation transformation according to the size of the overlapping part between adjacent collected images, and convert each collected image into The defect point information is extracted and summarized in the global coordinate system of the entire crystal surface;
(3)本发明对缺陷检测显微镜放大倍率进行校准,确定了显微镜、检测CCD的视野范围大小和单张采集图片的重叠部分尺寸,为图像拼接提供了必要的参数信息;(3) The present invention calibrates the magnification of the defect detection microscope, determines the size of the field of view of the microscope and the detection CCD and the size of the overlapping portion of a single captured picture, and provides necessary parameter information for image splicing;
附图说明Description of drawings
图1为大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置的检测显微镜和检测CCD俯视图;Figure 1 is a top view of the inspection microscope and inspection CCD of the large-diameter KDP crystal surface micro-defect fast search and micro-milling repair device;
图2为大口径光学晶体扫描图像之间的重叠区域示意图;Fig. 2 is a schematic diagram of the overlapping area between the scanned images of the large-diameter optical crystal;
图3为基于图像特征匹配的缺陷扫描图像拼接图;Fig. 3 is the defect scanning image mosaic map based on image feature matching;
图4为放大倍率校准过程示意图;4 is a schematic diagram of a magnification calibration process;
图5为特征点匹配示意图;5 is a schematic diagram of feature point matching;
图6为坐标转换拼接效果示意图;Fig. 6 is a schematic diagram of coordinate transformation splicing effect;
图7为遍历数据库读取每张图像的数据信息截面图;Fig. 7 is the data information sectional view of traversing the database to read each image;
图8为实施例中利用本发明最终形成的拼接图像示意图。FIG. 8 is a schematic diagram of a mosaic image finally formed by using the present invention in an embodiment.
具体实施方式Detailed ways
具体实施方式一:Specific implementation one:
一种大口径光学晶体表面微缺陷检测用的图像拼接方法,是基于大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置(申请号:201310744691.1)实现的,基于大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置如图1所示,基于大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置的气浮框架下方设有大理石平台,大理石平台上、对应气浮框架正下方位置开有修复窗口,显微镜移动平台支架121上设有显微镜和检测CCD881;An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals is realized based on the rapid search and micro-milling repairing device for micro-defects on the surface of large-diameter KDP crystals (application number: 201310744691.1). The search and micro-milling repair device is shown in Figure 1. Based on the rapid search and micro-milling repair device for micro-defects on the surface of large-diameter KDP crystals, there is a marble platform under the air flotation frame. Repair window, microscope
一种大口径光学晶体表面微缺陷检测用的图像拼接方法,包括以下步骤:An image stitching method for detecting micro-defects on the surface of a large-diameter optical crystal, comprising the following steps:
步骤1、基于大口径晶体元件“连续运动采集”光栅式扫描方案,对待测大口径晶体元件表面区域进行扫描,并利用检测显微镜和检测CCD对扫描区域进行实时图像采集,获得大口径晶体元件批量的局部、单张扫描图像;
所述检测CCD(Charge Coupled Device)是电荷藕合器件图像传感器;The detection CCD (Charge Coupled Device) is a charge coupled device image sensor;
采集图像的过程中,检测CCD的视野范围在X、Y轴的移动方向上的重叠尺寸分别为Δm和Δn;During the process of collecting images, the overlapping dimensions of the field of view of the detection CCD in the moving directions of the X and Y axes are Δm and Δn respectively;
所述的“连续运动采集”光栅式扫描是指,光学晶体沿光栅式扫描路径做连续运动,同时上方检测CCD以一定时间间隔(即晶体每运动一个扫描步距)采集一次图像;在晶体扫描过程中,X、Y方向的扫描步距与图像相应方向的视野范围距离之间留有一定余量(分别用Δm、Δn表示),该余量是为了确定连续扫描的每张图像之间的相对位置关系,可为图像间拼接提供必要的公共重叠区域,如图2所示;The "continuous motion acquisition" raster scanning means that the optical crystal moves continuously along the raster scanning path, and at the same time, the upper detection CCD collects an image at a certain time interval (that is, one scanning step for each movement of the crystal); During the process, there is a certain margin (represented by Δm and Δn respectively) between the scanning step in the X and Y directions and the visual field distance in the corresponding direction of the image. The relative positional relationship can provide the necessary common overlapping area for splicing between images, as shown in Figure 2;
步骤2、确定单张图片的尺寸范围和重叠区域尺寸:
移动大口径晶体元件,使晶体元件边缘位置位于修复窗口内,保证检测CCD中观察到的晶体表面无明显缺陷点;Move the large-diameter crystal element so that the edge of the crystal element is located in the repair window to ensure that there are no obvious defects on the crystal surface observed in the detection CCD;
然后使微铣刀开始转动,抬升刀具三轴联动平台,直到在检测CCD中能较为清晰地观察到刀具前端轮廓,停止刀具进给,不能使刀具接触上晶体下表面;此时在检测CCD中刀具位于某位置P1,采集图像I1;接下来通过电机移动刀具在X方向移动,移动距离为x,到达位置P2,采集图像I2;继续移动x到达P3,采集图像I3;然后在Y方向连续移动两次,移动距离为x,分别采集图像I4、I5,如图4所示;Then the micro-milling tool starts to rotate, and the three-axis linkage platform of the tool is lifted until the contour of the front end of the tool can be clearly observed in the detection CCD, the feed of the tool is stopped, and the tool cannot contact the lower surface of the upper crystal; The tool is located at a certain position P 1 , and the image I 1 is collected; then, the tool is moved by the motor in the X direction, the moving distance is x, and the position P 2 is reached, and the image I 2 is collected; continue to move x to reach P 3 , and the image I 3 is collected; Then continuously move twice in the Y direction, the moving distance is x, and collect images I 4 and I 5 respectively, as shown in FIG. 4 ;
由于刀具移动电机的运动精度很高,以此距离为标准长度可以有效控制误差;检测CCD的成像单元虽然理论上为标准正方形,但是也可能存在一定误差,通过X、Y两个方向的同时校准,可以抑制检测CCD的成像畸变;Due to the high motion accuracy of the tool moving motor, the distance can be used as the standard length to effectively control the error; although the imaging unit of the detection CCD is theoretically a standard square, there may also be a certain error, through the simultaneous calibration of the X and Y directions , which can suppress the imaging distortion of the detection CCD;
对五个位置的图像进行处理,采用图像特征匹配算法,提取特征点计算图像中刀具移动的像素距离,这样可以避免人为选取参照点时的误差,准确性更高;The images of five positions are processed, and the image feature matching algorithm is used to extract the feature points to calculate the pixel distance of the tool movement in the image, which can avoid the error when manually selecting the reference point, and the accuracy is higher;
由于晶体表面不存在具有明显特征的缺陷点,因此利用集中在刀具刀尖位置的特征点,按照特征点移动顺序依次两两图像进行匹配,效果如图5所示;对5张图像进行四次匹配运算,分别计算特征点在X、Y方向移动的像素距离,并计算出特征点在X、Y方向上的平均偏移量,即特征点平均像素移动距离ΔP;Since there are no defect points with obvious features on the crystal surface, the feature points concentrated at the position of the tool tip are used to match two images in sequence according to the moving sequence of the feature points. The effect is shown in Figure 5; Matching operation, calculate the pixel distance of the feature points moving in the X and Y directions respectively, and calculate the average offset of the feature points in the X and Y directions, that is, the average pixel moving distance ΔP of the feature points;
每次图像匹配运算的时间约为13s,由于放大倍率校准过程只需在光学晶体扫描前进行一次,因此该效率可以接受;由此得出图像的实际放大倍率K:The time for each image matching operation is about 13s. Since the magnification calibration process only needs to be performed once before the optical crystal scan, the efficiency is acceptable; from this, the actual magnification K of the image is obtained:
K=(α/x)·ΔP=(3.45/500)·ΔPK=(α/x)·ΔP=(3.45/500)·ΔP
其中α为像素尺寸;where α is the pixel size;
通过图像的实际放大倍率K计算出单张图片的尺寸范围,W、H分别为每张图片的宽度和高度;并确定各采集图片的重叠尺寸;以放大倍率为准确的2.25X为例,此时图像宽度W=3.766mm,Δm=0.266mm(对应196pixels),高度H=3.156mm,Δn=0.156mm(对应102pixels);Calculate the size range of a single image by the actual magnification K of the image, W and H are the width and height of each image respectively; and determine the overlapping size of each captured image; taking the magnification of 2.25X as an example, this When the image width W=3.766mm, Δm=0.266mm (corresponding to 196pixels), height H=3.156mm, Δn=0.156mm (corresponding to 102pixels);
步骤3、基于坐标系平移变换法实现采集图像的拼接和缺陷点的坐标转换:
基于坐标系平移变换法的拼接原理如图6所示,其中单张图像采集中每一张图像以“X-mx-Y-ny”的方式命名,其中mx、ny分别表示X、Y方向走过的扫描步距数,即代表所捕获图像所处的实时位置,具有相同mx或ny编号的图像有着同样的X或Y方向坐标位置;假设在Y方向有n张图像,X方向有m张扫描图像,在这m×n张扫描图像组成的全局坐标系中,假设仍以左上角为原点;用Ii,j表示X、Y方向上编号分别为i,j的图像,i,j=0,1,2...,则Ii,j的坐标原点Oi,j在全局坐标系下的位置为O'i,j,每个图像在全局坐标系下的坐标值(i·(W-Δm),j·(H-Δn)),如图6所示;Oi,j表示每张图片对应图像坐标系的坐标原点;The stitching principle based on the coordinate system translation transformation method is shown in Figure 6, in which each image in the single image acquisition is named in the way of "Xm x -Yny ", where m x and ny represent the X and Y directions respectively. The number of past scanning steps, that is, the real-time position of the captured image, the images with the same m x or ny number have the same X or Y coordinate position; assuming that there are n images in the Y direction, and there are n images in the X direction m scanned images, in the global coordinate system composed of m×n scanned images, it is assumed that the upper left corner is still the origin; I i,j represent the images numbered i, j in the X and Y directions, i, j j=0,1,2..., then the position of the coordinate origin O i,j of I i ,j in the global coordinate system is O' i,j , the coordinate value of each image in the global coordinate system (i ·(W-Δm),j·(H-Δn)), as shown in Figure 6; O i,j represents the coordinate origin of the image coordinate system corresponding to each picture;
进而确定每个图像中每个缺陷点在全局坐标系下的位置,并建立缺陷数据库。Then, the position of each defect point in each image in the global coordinate system is determined, and a defect database is established.
具体实施方式二:Specific implementation two:
本实施方式所述的一种大口径光学晶体表面微缺陷检测用的图像拼接方法,其特征在于,还包括以下步骤:The image stitching method for detecting micro-defects on the surface of large-diameter optical crystals described in this embodiment is characterized in that it further comprises the following steps:
步骤4、采用坐标系平移变换法进行图像拼接:
晶体扫描图像实质是一个信息的载体,图像中包含的绝大部分信息是可以忽略的,而只有通过检测获得的缺陷点的参数信息才是真正的重要信息;因此从图6中可以看出,通过坐标系转换进行图像拼接的实质是对每张图像中有限个缺陷点信息的提取、汇总,而忽略了包含大量无用信息的完整图像;The crystal scanning image is essentially a carrier of information, most of the information contained in the image can be ignored, and only the parameter information of the defect points obtained through detection is the real important information; therefore, it can be seen from Figure 6 that, The essence of image stitching through coordinate system transformation is to extract and summarize the information of limited defect points in each image, while ignoring the complete image that contains a lot of useless information;
首先根据图像数量和排布情况,建立一个空白的“画布”,画布的尺寸由图像以及相互重叠部分尺寸确定;First, according to the number and arrangement of images, a blank "canvas" is established. The size of the canvas is determined by the size of the images and the overlapping parts;
然后,通过缺陷数据库中缺陷点的位置信息,对每张图像中所有缺陷点位置进行坐标转换,在“画布”上的相应位置,根据缺陷点大小画出示意其形状、大小的拟合椭圆;这样,即可从“画布”中直观读取整个扫描范围中所有缺陷点的信息;完成仅含有缺陷信息的微缺陷检测用的图像拼接。Then, through the position information of the defect points in the defect database, coordinate transformation is carried out on the positions of all defect points in each image, and at the corresponding position on the "canvas", according to the size of the defect point, draw a fitting ellipse indicating its shape and size; In this way, the information of all defect points in the entire scanning range can be intuitively read from the "canvas"; image stitching for micro-defect detection containing only defect information is completed.
其他步骤和参数与具体实施方式一相同Other steps and parameters are the same as in the first embodiment
具体实施方式三:Specific implementation three:
本实施方式在确定单张图片的尺寸范围和重叠区域尺寸之前需要利用激光干涉仪测量X、Y轴的定位误差,并进行跟随误差补偿。In this embodiment, before determining the size range of a single image and the size of the overlapping area, a laser interferometer needs to be used to measure the positioning errors of the X and Y axes, and to perform following error compensation.
为了保证本发明的应用性和准确性,需要提高晶体扫描运动的X轴和Y轴直线单元的运动特性,测量其定位误差并进行补偿:In order to ensure the applicability and accuracy of the present invention, it is necessary to improve the motion characteristics of the X-axis and Y-axis linear units of the crystal scanning motion, measure the positioning error and compensate:
基于图像坐标系转换拼接的前提是保证光学晶体扫描运动位置精度很高,并且能够确定每次采集的图像之间的重叠部分尺寸;The premise of transforming and splicing based on the image coordinate system is to ensure that the optical crystal scanning motion position has a high accuracy and can determine the size of the overlapping part between the images collected each time;
光学晶体移动轴的伺服电机和直线电机内部安装有光栅尺可实现位置信号反馈,通过调节电机闭环控制系统的PID参数,以提高X、Y轴的运动稳态特性和动态特性;The servo motor and linear motor of the optical crystal moving axis are installed with a grating ruler to realize the position signal feedback. By adjusting the PID parameters of the motor closed-loop control system, the motion steady-state characteristics and dynamic characteristics of the X and Y axes can be improved;
利用激光干涉仪测量X、Y轴的定位误差,并进行跟随误差补偿,可实现两轴的定位误差控制在3μm以内(300mm行程);此时,光学晶体扫描运动的位置精度可满足要求。Using a laser interferometer to measure the positioning errors of the X and Y axes, and perform following error compensation, the positioning errors of the two axes can be controlled within 3μm (300mm stroke); at this time, the position accuracy of the optical crystal scanning motion can meet the requirements.
其他步骤和参数与具体实施方式一或二相同Other steps and parameters are the same as in the first or second embodiment
实施例Example
将直接通过图像特征匹配算法进行图像拼接和本发明进行对比说明:The image stitching directly through the image feature matching algorithm and the present invention will be compared and explained:
在大口径KDP晶体表面微缺陷快速搜寻与微铣削修复装置(申请号:201310744691.1)上安装待测光学晶体元件;Install the optical crystal element to be tested on the large-diameter KDP crystal surface micro-defect fast search and micro-milling repair device (application number: 201310744691.1);
基于大口径晶体元件“连续运动采集”光栅式扫描方案,对待测大口径晶体元件表面区域进行扫描,并利用检测显微镜和检测CCD对扫描区域进行实时图像采集,获得大口径晶体元件批量的局部、单张扫描图像;Based on the "continuous motion acquisition" raster scanning scheme of large-aperture crystal elements, the surface area of the large-aperture crystal element to be measured is scanned, and a detection microscope and a detection CCD are used to collect real-time images of the scanned area, so as to obtain local and single scanned image;
所述检测CCD(Charge Coupled Device)是电荷藕合器件图像传感器;The detection CCD (Charge Coupled Device) is a charge coupled device image sensor;
然后分别采用基于图像特征匹配算法拼接方法进行图像拼接和本发明进行图像拼接:Then adopt the stitching method based on the image feature matching algorithm to perform image stitching and the present invention to perform image stitching:
(一)、采用基于图像特征匹配算法拼接方法:(1), adopt the stitching method based on image feature matching algorithm:
所述的图像特征匹配算法拼接方法是一个综合的复杂实现过程,需要调用大量图像算法支持实现,主要包括图像特征寻找和匹配、镜头校准、图像形状变换、光线补偿和融合等。在图1的缺陷检测系统中,由于光学晶体水平移动,检测CCD与光学晶体表面始终保持垂直状态,光源亮度恒定,因此每张采集的图像之间不存在变形和畸变,图像拼接的过程可以简化为特征点寻找与匹配和图像融合两个步骤,具体实施步骤如下:The image feature matching algorithm stitching method is a comprehensive and complex implementation process, which needs to call a large number of image algorithms to support the implementation, mainly including image feature searching and matching, lens calibration, image shape transformation, light compensation and fusion, etc. In the defect detection system shown in Figure 1, due to the horizontal movement of the optical crystal, the detection CCD and the surface of the optical crystal are always in a vertical state, and the brightness of the light source is constant, so there is no deformation and distortion between each collected image, and the process of image stitching can be simplified. There are two steps for feature point searching, matching and image fusion. The specific implementation steps are as follows:
(一一)、局部采集图像的特征点寻找与匹配,特征点(角点)是指图像中稳定的、能明显反映图像变化特征的点。用数学描述,特征点在两个正交方向上都具有明显的导数。这里采用计算机视觉领域常用的特征点提取及匹配方法——SIFT算法。SIFT算法(Speed UpRobust Features)对特征点在几何变形和光照变动下提取稳定,适合局部目标的提取,同时它还具有高速提取的特性。(11) Finding and matching feature points of locally collected images. Feature points (corner points) refer to points in the image that are stable and can clearly reflect the changing characteristics of the image. Described mathematically, feature points have obvious derivatives in both orthogonal directions. Here, the feature point extraction and matching method commonly used in the field of computer vision - SIFT algorithm is used. The SIFT algorithm (Speed UpRobust Features) is stable in the extraction of feature points under geometric deformation and illumination changes, and is suitable for the extraction of local objects. At the same time, it also has the characteristics of high-speed extraction.
Hessian矩阵是SURF算法的核心,假设存在函数f(x,y),则相应的Hessian矩阵由函数及其偏导组成:The Hessian matrix is the core of the SURF algorithm. Assuming that there is a function f(x,y), the corresponding Hessian matrix consists of the function and its partial derivatives:
Hessian矩阵的判别式是其特征值,通过正负来判别该点是否为极值点。对一幅图像,用不同位置的像素值I(x,y)来代替f(x,y),选用二阶标准高斯函数作为滤波器,通过特定核间的卷积计算二阶偏导数,从而得到尺度为σ的图像的Hessian矩阵:The discriminant of the Hessian matrix is its eigenvalue, and whether the point is an extreme point is determined by positive and negative. For an image, replace f(x,y) with pixel values I(x,y) at different positions, select the second-order standard Gaussian function as the filter, and calculate the second-order partial derivative through the convolution between specific kernels, so that Get the Hessian of an image of scale σ:
式中,u=(x,y)T,L(u,σ)=G(σ)*I(u),核间函数为高斯函数的二阶偏导:In the formula, u=(x,y) T , L(u,σ)=G(σ)*I(u), and the inter-kernel function is the second-order partial derivative of the Gaussian function:
或 or
通过计算H(u,σ)的判别式的值可以判别特征点,为了平衡准确值与近似值间的误差,采用如下判别式:The feature points can be discriminated by calculating the value of the discriminant of H(u,σ). In order to balance the error between the exact value and the approximate value, the following discriminant is used:
det(Happrox)=DxxDyy-(0.9Dxy)2 (4)det(H approx )=D xx D yy -(0.9D xy ) 2 (4)
找到特征点后,SURF算法构建一个金字塔形的图像空间:通过改变滤波核的大小得到多层图像,然后在图像空间中的每一层精确定位特征点,最后还需计算每个特征点的Haar小波响应,用于确定特征点的主方向。After finding the feature points, the SURF algorithm constructs a pyramid-shaped image space: a multi-layer image is obtained by changing the size of the filter kernel, and then the feature points are precisely located at each layer in the image space, and finally the Haar of each feature point needs to be calculated. The wavelet response, used to determine the main directions of the feature points.
(一二)、局部采集图像的融合,图像的融合是根据(1)中匹配结果计算出的两幅图像间的重叠区域进行两幅图像的叠加。在晶体扫描图像中,由于光照、几何条件的稳定性,图像的重叠区域可近似为矩形。以左右重叠的图像为例,融合后图像中可以分为三个部分:左、右独有区域和公共区域,其中左、右独有区域保留各自原图像对应像素值,公共区域按重叠比例叠加左右图像的对应像素值。(1) Fusion of locally collected images. Image fusion is to superimpose the two images according to the overlapping area between the two images calculated from the matching result in (1). In the crystal scan image, the overlapping area of the image can be approximated as a rectangle due to the stability of illumination and geometric conditions. Taking the left and right overlapping images as an example, the fused image can be divided into three parts: the left and right exclusive areas and the public area. The left and right exclusive areas retain the corresponding pixel values of the original images, and the common area is superimposed according to the overlap ratio. The corresponding pixel values of the left and right images.
通过跨平台开源计算机视觉图像处理库OpenCV(Open Source Computer VisionLibrary)实现图像特征点提取、匹配和图像融合过程,这里选取三张光学晶体扫描图片,先两两拼接,然后再次进行拼接,结果如图3所示。The process of image feature point extraction, matching and image fusion is realized through the cross-platform open source computer vision image processing library OpenCV (Open Source Computer Vision Library). Here, three optical crystal scan pictures are selected, first stitched in pairs, and then stitched again, the result is shown in the figure 3 shown.
在源图像中,可以找到较为明显地两个缺陷点,两两完成拼接后,根据拼接后的图像像素可以计算出实际的重叠面积,因此能够确定出从单张图像到多张图像的坐标系转换关系。以此循环,可实现整块光学晶体表面的图像拼接。In the source image, two obvious defect points can be found. After the stitching is completed, the actual overlapping area can be calculated according to the stitched image pixels, so the coordinate system from a single image to multiple images can be determined. conversion relationship. In this cycle, the image stitching of the entire optical crystal surface can be realized.
(二)、基于坐标系平移变换法实现采集图像的拼接:(2) Realize the stitching of the collected images based on the coordinate system translation transformation method:
(二一)根据采集图像编号(数量)确定扫描范围,即晶体坐标系尺度范围。为了便于快速验证光学晶体表面局部采集图片的拼接功能,确保每张图像之间相对位置关系准确,本例中将光学晶体的实际扫描尺寸缩小为90mm×90mm,并适当增加相邻图像间的重叠区域尺寸。为此,将显微镜放大倍率从2.25X降至1.5X,同时扫描步距缩小为Δx=Δy=3.0mm,该条件下需要采集31×31=961张图像,约占用5GB硬盘空间。图像宽高为2456×2058像素,此时采集图片重叠部分尺寸Δm=1152,Δn=754,由此计算出坐标范围Xscale=30×2456-29×1152=40272,Yscale=30×2058-29×754=39874。理论上虽然X、Y方向扫描范围相等,但在实际扫描范围的最外圈,图像视野大于Δx和Δy,导致图像的坐标范围大于扫描范围。(21) Determine the scanning range according to the number (quantity) of the collected images, that is, the scale range of the crystal coordinate system. In order to quickly verify the stitching function of locally collected images on the surface of the optical crystal and ensure the relative positional relationship between each image is accurate, in this example, the actual scanning size of the optical crystal is reduced to 90mm×90mm, and the overlap between adjacent images is appropriately increased. area size. To this end, the magnification of the microscope was reduced from 2.25X to 1.5X, and the scanning step was reduced to Δx=Δy=3.0mm. Under this condition, 31×31=961 images need to be collected, occupying about 5GB of hard disk space. The width and height of the image is 2456×2058 pixels. At this time, the size of the overlapping part of the captured image is Δm=1152 and Δn=754. From this, the coordinate range is calculated as X scale = 30×2456-29×1152=40272, Y scale =30×2058- 29×754=39874. In theory, although the scanning ranges in the X and Y directions are equal, in the outermost circle of the actual scanning range, the image field of view is larger than Δx and Δy, resulting in the coordinate range of the image being larger than the scanning range.
(二二)读取自动缺陷检测中写入的数据库信息,按图像编号顺序,对每张图像缺陷点位置进行坐标转化。在缺陷自动检测程序中,对961张图像均在数据库中建立了以图像次序命名的缺陷点信息表,记录了该张图像中每个缺陷点的细节。数据表编号N与图像名编号“X-mx-Y-ny”的对应关系为N=31mx+ny。根据坐标转换图像拼接方法,假设在图像“X-p-Y-q.bmp”中存在缺陷点位置为(xi,xj)(像素),如果将坐标原点设在扫描起点,则转化后的全局坐标为(xi+p·(W-Δm),xj+q·(H-Δn));实际将原点设为晶体中心,则坐标为(xi+p·(W-Δm)-19565,xj+q·(H-Δn)-19565)。为了记录在全局坐标系下所有缺陷点信息,重新建立一张数据表“tbAllDefectsInfo”,表中字段的设置与图像名相同;每完成一个缺陷点的坐标转换,向该数据表中写入一行相应字段值。循环上述过程直到遍历整个数据库,读取了每张图像的数据信息,如图7所示。(22) Read the database information written in the automatic defect detection, and perform coordinate transformation on the position of each image defect point according to the image number sequence. In the automatic defect detection program, a defect point information table named in the order of the images is established in the database for 961 images, and the details of each defect point in the image are recorded. The correspondence relation between the data table number N and the image name number "Xm x -Yny " is N=31m x + ny . According to the coordinate conversion image stitching method, it is assumed that there is a defect point in the image "XpYq.bmp" at (x i , x j ) (pixel), if the coordinate origin is set at the scanning starting point, the transformed global coordinate is (x i +p·(W-Δm),x j +q·(H-Δn)); actually set the origin as the center of the crystal, then the coordinates are (x i +p·(W-Δm)-19565,x j + q·(H-Δn)-19565). In order to record the information of all defect points in the global coordinate system, a new data table "tbAllDefectsInfo" is created, and the fields in the table are set to the same name as the image; each time the coordinate transformation of a defect point is completed, a corresponding row is written into the data table. field value. The above process is repeated until the entire database is traversed, and the data information of each image is read, as shown in Figure 7.
(二三)新建背景图像,标注所有缺陷点位置。在实际操作中,由于全扫描范围的图像坐标范围太大,在新建图像时由于像素尺寸超出了可分配内存大小,无法新建图像(实际可新建的最大图像不超过15000×15000像素)。这里将坐标范围等比例缩小,在当前坐标范围大小情况下缩小至1/5,则图像尺寸为8054×7974像素。此时,缺陷点坐标也缩小至1/5,而缺陷面积缩小至1/25,当面积小于1时,则用1像素表示该缺陷点。最终形成的拼接图像如图8所示。(23) Create a new background image and mark the positions of all defect points. In actual operation, because the image coordinate range of the full scan range is too large, when creating a new image, because the pixel size exceeds the size of the allocated memory, the new image cannot be created (the actual maximum image that can be newly created does not exceed 15000 × 15000 pixels). Here, the coordinate range is reduced proportionally, and if the current coordinate range is reduced to 1/5, the image size is 8054×7974 pixels. At this time, the coordinates of the defect point are also reduced to 1/5, and the defect area is reduced to 1/25. When the area is less than 1, the defect point is represented by 1 pixel. The final stitched image is shown in Figure 8.
在图8中,用白色背景作为晶体表面,黑色的圆点表示晶体表面的缺陷点,圆点的直径大小代表了缺陷面积。实际一共检测394个缺陷点,从总体上看,晶体上的缺陷点分布位置具有一定随机性。由于图像采用jpg格式保存,因此实际90mm×90mm扫描范围拼接出来的图像大小只有1.02MB;在效率方面,从数据库读写到最终完成图像拼接全过程耗时在1min以内,非常高效。由于坐标转换拼接的过程是数字运算完成的,基本不存在误差。由此验证了利用坐标转换法进行图像拼接的工艺可行性。In Figure 8, the white background is used as the crystal surface, the black dots represent the defect points on the crystal surface, and the diameter of the dots represents the defect area. A total of 394 defect points were actually detected. Generally speaking, the distribution of defect points on the crystal has a certain randomness. Since the image is saved in jpg format, the size of the image stitched by the actual 90mm×90mm scanning range is only 1.02MB; in terms of efficiency, the entire process from reading and writing the database to the final image stitching takes less than 1 minute, which is very efficient. Since the process of coordinate conversion and splicing is completed by digital operation, there is basically no error. This verifies the technological feasibility of image stitching using the coordinate transformation method.
从图像拼接的效率和精度方面考虑,基于图像特征匹配算法拼接和图像坐标系转换拼接两种方法的可行性对比:Considering the efficiency and accuracy of image stitching, the feasibility comparison of two methods based on image feature matching algorithm stitching and image coordinate system conversion stitching:
对于基于图像特征匹配算法的拼接方法,可以精确到1个像素,且可在一定程度上消除由于检测CCD宽、高方向与晶体运动轴方向不平行度造成的误差。然而,该图像拼接方法对于大口径光学表面的图像拼接存在严重的效率问题。在对图像像素不压缩情况下,平均一次拼接大约耗时10s。若对410mm×410mm的大口径光学晶体表面进行全范围的完整扫描,理论上共有118×360/3=14160张图像。从效率上这种拼接方式不可行。此外,该图像拼接算法是对完整图像进行运算,程序运行过程中图像是在内存中进行运算的,每张bmp格式图像大小为4.82MB。随着拼接图像越来越大,无法实现后续大尺寸光学表面的图像拼接。For the stitching method based on the image feature matching algorithm, it can be accurate to 1 pixel, and to a certain extent, the error caused by the non-parallelism between the width and height of the CCD and the direction of the crystal motion axis can be eliminated. However, this image stitching method has serious efficiency problems for image stitching of large-diameter optical surfaces. In the case of no image pixel compression, an average stitching takes about 10s. If the surface of the large-diameter optical crystal of 410mm×410mm is scanned in full range, there are 118×360/3=14160 images in theory. This splicing method is not feasible in terms of efficiency. In addition, the image stitching algorithm operates on the complete image, and the image is operated in the memory during the operation of the program, and the size of each bmp format image is 4.82MB. As the stitched images become larger and larger, subsequent image stitching of large-sized optical surfaces cannot be achieved.
相对于基于图像特征匹配算法的拼接方法,图像坐标系转换拼接方法更加高效直观,对于大口径光学晶体表面微缺陷检测的图像拼接更具可行性。即使该图像拼接方法会受到扫描速度的限制而引起一定的误差,但在实际操作中可通过提高数控程序中晶体运动位置信号的采集频率来减小拼接误差,从而实现大区域光学晶体表面缺陷检测是图像的高精度拼接。Compared with the stitching method based on the image feature matching algorithm, the image coordinate system conversion stitching method is more efficient and intuitive, and it is more feasible for image stitching for the detection of micro-defects on the surface of large-diameter optical crystals. Even though the image stitching method will cause certain errors due to the limitation of the scanning speed, in practice, the stitching error can be reduced by increasing the acquisition frequency of the crystal motion position signal in the numerical control program, so as to realize the surface defect detection of large-area optical crystals It is a high-precision stitching of images.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810517270.8A CN108760766B (en) | 2018-05-25 | 2018-05-25 | An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810517270.8A CN108760766B (en) | 2018-05-25 | 2018-05-25 | An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108760766A CN108760766A (en) | 2018-11-06 |
CN108760766B true CN108760766B (en) | 2020-12-01 |
Family
ID=64006094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810517270.8A Active CN108760766B (en) | 2018-05-25 | 2018-05-25 | An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108760766B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109916914B (en) * | 2019-04-10 | 2021-07-02 | 清华大学深圳研究生院 | Product defect detection method and device |
CN110376475B (en) * | 2019-06-20 | 2024-10-15 | 浙江四点灵机器人股份有限公司 | Device and method for rapidly detecting line defects on glass surface |
CN110411346B (en) * | 2019-08-12 | 2020-12-25 | 哈尔滨工业大学 | Method for quickly positioning surface micro-defects of aspheric fused quartz element |
CN110501344A (en) * | 2019-08-30 | 2019-11-26 | 无锡先导智能装备股份有限公司 | Battery material online test method |
CN110517259A (en) * | 2019-08-30 | 2019-11-29 | 北京百度网讯科技有限公司 | A detection method, device, equipment and medium for product surface state |
CN110806412A (en) * | 2019-11-15 | 2020-02-18 | 中国工程物理研究院激光聚变研究中心 | Defect size detection method and system based on optical element |
CN111122594A (en) * | 2020-02-11 | 2020-05-08 | 中国工程物理研究院激光聚变研究中心 | Method for detecting subsurface defects of optical element by fluorescence enhancement method |
CN111292241B (en) * | 2020-02-28 | 2022-02-18 | 浙江大学 | A method for sub-regional scanning and splicing of large-aperture optical components |
CN111553897B (en) * | 2020-04-27 | 2024-03-12 | 上海果纳半导体技术有限公司 | Wafer defect detection equipment |
CN111553911A (en) * | 2020-05-08 | 2020-08-18 | 视睿(杭州)信息科技有限公司 | Global positioning method and device for industrial particle continuous product |
CN113029919B (en) * | 2021-03-13 | 2024-04-02 | 长春长光辰英生物科学仪器有限公司 | Cell enrichment and fluorescence counting detection device and detection and counting method |
CN114113115B (en) * | 2021-11-29 | 2023-08-18 | 哈尔滨工业大学 | A high-precision automatic positioning method for micro-defects on the surface of large-diameter components |
CN114280083B (en) * | 2021-12-16 | 2023-11-07 | 重庆日联科技有限公司 | Detection method for realizing industrial X-ray nondestructive detection of large-size flat castings based on automatic CNC programming of linear array camera |
CN114549697B (en) * | 2022-02-18 | 2024-08-06 | 北京百度网讯科技有限公司 | Image processing method, device, equipment and storage medium |
CN114594038B (en) * | 2022-05-09 | 2022-08-09 | 天津立中车轮有限公司 | Scanning splicing application method for accurately measuring and calculating porosity |
CN117334589A (en) * | 2022-06-24 | 2024-01-02 | 长鑫存储技术有限公司 | Method, apparatus and storage medium for locating defect in semiconductor device |
CN116734729A (en) * | 2023-05-04 | 2023-09-12 | 深圳大学 | Macroscopic and microscopic dimension measuring method, system and equipment for micro optical element |
CN116542857B (en) * | 2023-06-28 | 2023-10-20 | 南京凯视迈科技有限公司 | Multi-image self-adaptive stitching method |
CN116643393B (en) * | 2023-07-27 | 2023-10-27 | 南京木木西里科技有限公司 | Microscopic image deflection-based processing method and system |
CN119985508A (en) * | 2025-04-10 | 2025-05-13 | 苏州工学院 | A titanium oxide fiber material defect detection system and method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2399056A1 (en) * | 1977-07-29 | 1979-02-23 | Sagem | IMPROVEMENTS IN NUMERICALLY CONTROLLED MACHINE TOOLS |
CN102661956A (en) * | 2012-04-24 | 2012-09-12 | 浙江大学 | Super-smooth surface defect detection system and distortion correction method thereof |
CN103692561A (en) * | 2013-12-30 | 2014-04-02 | 哈尔滨工业大学 | Surface microdefect fast search and micro-milling repair device for large-diameter KDP crystal elements |
CN105444699A (en) * | 2015-11-11 | 2016-03-30 | 苏州大学附属儿童医院 | Coordinate and displacement error detection and compensation method for microscope operating system |
CN105737748A (en) * | 2016-02-22 | 2016-07-06 | 中国核电工程有限公司 | Fuel pellet boundary dimension and apparent defect detection device and method |
CN105931188A (en) * | 2016-05-06 | 2016-09-07 | 安徽伟合电子科技有限公司 | Method for image stitching based on mean value duplication removal |
CN106645203A (en) * | 2017-02-13 | 2017-05-10 | 广州视源电子科技股份有限公司 | Image acquisition method and device |
CN107356608A (en) * | 2017-07-21 | 2017-11-17 | 中国工程物理研究院激光聚变研究中心 | The quick dark field detection method of heavy caliber fused quartz optical component surface microdefect |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693336B2 (en) * | 2004-06-15 | 2010-04-06 | Fraudhalt Limited | Method and apparatus for determining if an optical disk originated from a valid source |
CN101614677A (en) * | 2008-06-25 | 2009-12-30 | 沈阳利泰自控技术有限责任公司 | The high-precision laser holographic automatic detection system of wing-splint honeycomb structure |
CN106290395A (en) * | 2016-10-12 | 2017-01-04 | 湖北器长光电股份有限公司 | A kind of wafer detecting apparatus based on image procossing and method |
CN106525865A (en) * | 2016-11-30 | 2017-03-22 | 南京理工大学 | Wafer image analysis device and method based on image processing |
-
2018
- 2018-05-25 CN CN201810517270.8A patent/CN108760766B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2399056A1 (en) * | 1977-07-29 | 1979-02-23 | Sagem | IMPROVEMENTS IN NUMERICALLY CONTROLLED MACHINE TOOLS |
CN102661956A (en) * | 2012-04-24 | 2012-09-12 | 浙江大学 | Super-smooth surface defect detection system and distortion correction method thereof |
CN103692561A (en) * | 2013-12-30 | 2014-04-02 | 哈尔滨工业大学 | Surface microdefect fast search and micro-milling repair device for large-diameter KDP crystal elements |
CN105444699A (en) * | 2015-11-11 | 2016-03-30 | 苏州大学附属儿童医院 | Coordinate and displacement error detection and compensation method for microscope operating system |
CN105737748A (en) * | 2016-02-22 | 2016-07-06 | 中国核电工程有限公司 | Fuel pellet boundary dimension and apparent defect detection device and method |
CN105931188A (en) * | 2016-05-06 | 2016-09-07 | 安徽伟合电子科技有限公司 | Method for image stitching based on mean value duplication removal |
CN106645203A (en) * | 2017-02-13 | 2017-05-10 | 广州视源电子科技股份有限公司 | Image acquisition method and device |
CN107356608A (en) * | 2017-07-21 | 2017-11-17 | 中国工程物理研究院激光聚变研究中心 | The quick dark field detection method of heavy caliber fused quartz optical component surface microdefect |
Non-Patent Citations (1)
Title |
---|
大尺寸工件在机视觉测量的图像拼接方法;王中任;《测试与仪器》;20100426;第44卷(第1期);第95-98页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108760766A (en) | 2018-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108760766B (en) | An image stitching method for detecting micro-defects on the surface of large-diameter optical crystals | |
CN108645867B (en) | Rapid locating and batch detection of micro-defects on the surface of large-diameter optical crystals | |
CN110006905B (en) | Large-caliber ultra-clean smooth surface defect detection device combined with linear area array camera | |
CN114113114B (en) | Automatic process method for detecting and repairing micro defects on surface of large-caliber element | |
CN110501347A (en) | A kind of rapid automatized Systems for optical inspection and method | |
CN114113116B (en) | A process method for accurate detection of micro-defects on the surface of large-diameter components | |
CN112540089B (en) | Application method of digital imaging system in concrete bridge crack detection and analysis | |
CN103594132A (en) | Method and system for measuring actual position deviation of fuel assembly of nuclear power station reactor core | |
CN104992446B (en) | The image split-joint method of non-linear illumination adaptive and its realize system | |
CN103728315A (en) | Large-aperture element surface detection device and corresponding damage quick localization method | |
CN110567965A (en) | A method for detecting visual defects on the edge of a smartphone glass cover | |
CN114113115B (en) | A high-precision automatic positioning method for micro-defects on the surface of large-diameter components | |
CN105928464B (en) | Automatic measurement system based on image mosaic and measurement method | |
CN108705689A (en) | Heavy caliber precision optics plane of crystal microdefect reparation automatic tool preset process | |
CN118882520A (en) | A three-dimensional detection device and method for surface defects of large-aperture curved optical elements | |
CN105928463B (en) | Automatic measurement system and measurement method based on Feature Points Matching | |
CN112150541A (en) | A Multi-LED Wafer Positioning Algorithm | |
CN114113112B (en) | A method for locating and identifying surface micro-defects based on a three-light source microscope system | |
CN111912854B (en) | Large-area surface defect optical detection system and method based on fast scanning of galvanometer | |
CN117781963A (en) | Welding bead flatness measurement system and method based on structured light triangulation | |
CN114758346B (en) | High-precision global microscopic image printing document identification system | |
CN205860995U (en) | Automatic measurement system based on image mosaic | |
CN111260561A (en) | A fast multi-image stitching method for reticle defect detection | |
CN116735604A (en) | Nondestructive detection system and method for internal defects of large-size laser crystal | |
CN114113150B (en) | Device and method for detecting surface defects of small-caliber spherical lens |
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 |