CN102750698B - Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera - Google Patents
Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera Download PDFInfo
- Publication number
- CN102750698B CN102750698B CN201210188911.2A CN201210188911A CN102750698B CN 102750698 B CN102750698 B CN 102750698B CN 201210188911 A CN201210188911 A CN 201210188911A CN 102750698 B CN102750698 B CN 102750698B
- Authority
- CN
- China
- Prior art keywords
- texture
- image
- camera
- reference plate
- dot
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012937 correction Methods 0.000 title claims abstract description 17
- 238000005259 measurement Methods 0.000 claims abstract description 87
- 230000003287 optical effect Effects 0.000 claims abstract description 21
- 238000013507 mapping Methods 0.000 claims description 18
- 239000003550 marker Substances 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 5
- 238000013139 quantization Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明涉及一种应用于光学三维测量的纹理摄像机标定装置与方法及其纹理图像几何校正方法。纹理摄像机标定装置包括带有圆点标记阵列的参考平板和移动工作台。参考平板固定于移动工作台上,与其移动方向垂直。纹理摄像机标定方法为,移动工作台驱动参考平板平行移动至至少3个位置,读取移动距离作为其上圆点阵列圆心Z坐标;在参考平板各位置,由纹理摄像机拍摄圆点标记阵列图像,提取圆点圆心像素坐标;求解14个待定参数。纹理图像几何校正方法为,生成空白测量摄像机视角纹理图像;读取该空白图像每像素所对应的被测物面点的三维坐标,求解其在纹理摄像机拍摄的彩色纹理图像中的对应像素坐标,并用其颜色填充测量摄像机视角空白图像像素。
The invention relates to a texture camera calibration device and method applied to optical three-dimensional measurement and a texture image geometric correction method thereof. The texture camera calibration setup consists of a reference plate with a dot marker array and a moving stage. The reference plate is fixed on the mobile workbench, perpendicular to its moving direction. The texture camera calibration method is as follows: the mobile worktable drives the reference plate to move in parallel to at least 3 positions, and reads the moving distance as the Z coordinate of the circle center of the dot array on it; at each position of the reference plate, the texture camera captures the dot mark array image, Extract the pixel coordinates of the center of the dot; solve 14 undetermined parameters. The texture image geometric correction method is to generate a blank measurement camera perspective texture image; read the three-dimensional coordinates of the measured object surface points corresponding to each pixel of the blank image, and solve its corresponding pixel coordinates in the color texture image captured by the texture camera, And fill the blank image pixels of the measurement camera perspective with its color.
Description
技术领域 technical field
本发明涉及一种摄像机的标定装置与方法及其图像几何校正方法,尤其涉及一种光学三维测量中的纹理摄像机标定装置与方法及其纹理图像几何校正方法。 The invention relates to a camera calibration device and method and its image geometry correction method, in particular to a texture camera calibration device and method in optical three-dimensional measurement and its texture image geometry correction method.
背景技术 Background technique
光学三维测量技术,是指以光学方法为手段测量物体面形,获取物面三维点云数据的技术。该技术以其非接触的优点,在工业检测、生物学与医学、人类文化遗产保护、以及计算机视觉等方面都有着十分广阔的应用前景。主动式光学三维测量技术采用主动照明光源向物体投射结构光编码图案,利用摄像机从另一角度拍摄变形图案,从中计算出物面三维点云数据。被动式光学三维测量技术利用环境照明,采用两台或多台摄像机从多个角度拍摄物体,利用立体视觉原理重建物面三维点云数据。利用测得的三维点云数据可以重建物体的三维模型。在测量系统中,为避免颜色校正或颜色平衡操作等引起的灰度畸变降低测量精度,一般选用黑白摄像机作为的测量摄像机,重建的三维点云数据与测量摄像机像素具有直接对应关系。 Optical three-dimensional measurement technology refers to the technology of measuring the surface shape of an object by means of optical methods and obtaining three-dimensional point cloud data of the object surface. With its non-contact advantages, this technology has very broad application prospects in industrial inspection, biology and medicine, protection of human cultural heritage, and computer vision. Active optical three-dimensional measurement technology uses active lighting sources to project structured light coding patterns to objects, and uses cameras to capture deformed patterns from another angle, from which the three-dimensional point cloud data of the object surface is calculated. Passive optical three-dimensional measurement technology uses environmental lighting, uses two or more cameras to shoot objects from multiple angles, and uses the principle of stereo vision to reconstruct three-dimensional point cloud data of the object surface. The 3D model of the object can be reconstructed by using the measured 3D point cloud data. In the measurement system, in order to avoid the gray scale distortion caused by color correction or color balance operation to reduce the measurement accuracy, a black and white camera is generally used as the measurement camera, and the reconstructed 3D point cloud data has a direct correspondence with the measurement camera pixels.
为了增强三维测量结果显示时的视觉真实感,可将被测三维物体的照片通过纹理贴图映射至重建的三维模型表面。在光学三维测量中,获取纹理照片的方式主要有三种。其一,直接用测量摄像机拍摄物体纹理照片。这种方法点云数据与纹理数据由同一摄像机获得,可以精确配准,贴图时没有位置误差。但由于测量摄像机一般为黑白摄像机,丢失了颜色信息。如果采用彩色相机进行测量(S Zhang and S-T Yau, “Simultaneous three-dimensional geometry and color texture acquisition using a single-chip color camera,” Opt. Eng. 47(12), 123604, 2008),Bayer滤色片及摄像机颜色平衡计算会引起灰度畸变,从而降低测量精度。其二,利用分光装置将物面反射的光束分为两路。在其中一路,用彩色摄像机拍摄纹理照片(S. Zhang and P. S. Huang, “High-resolution, real-time threedimensional shape measurement,” Opt. Eng. 45, 123601,2006)。这种方法不仅需要增加分光器件,还需要将纹理摄像机像素与测量摄像机像素精确对应,调整较为困难。其三,彩色纹理摄像机安装于测量摄像机旁边任意位置。这种方法简便易行,但由于纹理摄像机和测量摄像机的视角存在差异。直接拍摄的纹理照片不能直接用于纹理贴图,需要通过图像的配准或几何校正,将该纹理照片变换至测量摄像机所在视角才能实现贴图。 In order to enhance the visual realism when displaying the 3D measurement results, the photo of the measured 3D object can be mapped to the surface of the reconstructed 3D model through texture mapping. In optical 3D measurement, there are three main ways to obtain texture photos. One is to directly take a photo of the texture of the object with a measuring camera. In this method, point cloud data and texture data are obtained by the same camera, which can be accurately registered, and there is no position error when mapping. However, since the measurement camera is generally a black and white camera, the color information is lost. If a color camera is used for measurement (S Zhang and S-T Yau, "Simultaneous three-dimensional geometry and color texture acquisition using a single-chip color camera," Opt. Eng. 47(12), 123604, 2008), the Bayer color filter And the camera color balance calculation will cause grayscale distortion, thereby reducing the measurement accuracy. Second, the light beam reflected by the object surface is divided into two paths by using a beam splitting device. In one of them, texture photos were taken with a color camera (S. Zhang and P. S. Huang, “High-resolution, real-time threedimensional shape measurement,” Opt. Eng. 45, 123601, 2006). This method not only needs to increase the spectroscopic device, but also needs to accurately correspond the pixels of the texture camera to the pixels of the measurement camera, and the adjustment is difficult. Third, the color texture camera is installed at any position next to the measurement camera. This method is simple and easy, but due to the difference in the perspective of the texture camera and the measurement camera. Texture photos taken directly cannot be directly used for texture mapping. It is necessary to transform the texture photo to the viewing angle of the measurement camera through image registration or geometric correction to achieve texture mapping.
上述第三种方法简便易行,最为实用,但须通过标定建立纹理摄像机视角图像与测量摄像机视角图像之间的映射关系,再利用该映射关系将纹理摄像机拍摄到的彩色纹理图像变换至测量摄像机所在视角。由于测量摄像机像素与重建点云之间具有直接对应关系,那么就可以利用变换后的图像实现纹理贴图。但一般的摄像机标定方法(例如Z.Zhang,“Flexibel camera calibration by viewing a plane from unknown orientation,” International conference on computer vision(ICCV’99), Corfu, Greece. 666-673,1999)适用于获取一个摄像机的内外参数,不能直接用于确定上述两个视角图像像素之间的映射关系。 The above third method is simple and practical, but it is necessary to establish the mapping relationship between the texture camera perspective image and the measurement camera perspective image through calibration, and then use the mapping relationship to transform the color texture image captured by the texture camera to the measurement camera The angle of view. Since there is a direct correspondence between the measured camera pixels and the reconstructed point cloud, the transformed image can be used for texture mapping. But general camera calibration methods (such as Z. Zhang, "Flexibel camera calibration by viewing a plane from unknown orientation," International conference on computer vision (ICCV'99), Corfu, Greece. 666-673,1999) are suitable for obtaining a The internal and external parameters of the camera cannot be directly used to determine the mapping relationship between the image pixels of the above two perspectives.
发明内容 Contents of the invention
本发明的目的,是提供一种用于光学三维测量的纹理摄像机标定装置和方法及其纹理图像的几何校正方法。通过上述装置和方法,可以确定光学三维测量系统中纹理摄像机视角图像和测量摄像机视角图像之间的像素映射关系。通过该映射关系,可以将纹理摄像机拍摄到的彩色纹理图像变换至测量摄像机视角,从而实现三维模型的纹理贴图,增强三维测量结果显示时的视觉真实感。 The object of the present invention is to provide a texture camera calibration device and method for optical three-dimensional measurement and a geometric correction method for texture images. Through the above device and method, the pixel mapping relationship between the texture camera perspective image and the measurement camera perspective image in the optical three-dimensional measurement system can be determined. Through the mapping relationship, the color texture image captured by the texture camera can be converted to the measurement camera perspective, thereby realizing the texture mapping of the 3D model and enhancing the visual reality when displaying the 3D measurement results.
为达到上述目的,本发明采用下述方案: To achieve the above object, the present invention adopts following scheme:
一种光学三维测量中的纹理摄像机标定装置,包括一块表面带有二维圆点标记阵列的参考平板和一个移动工作台。参考平板上的圆点标记阵列沿X、Y两个垂直方向分布。各圆点圆心坐标(X k ,Y k )精确已知,其中k(k=1,2,…,K)为圆点序号。为提高图像对比度,圆点标记与背景颜色分别为黑白两色。参考平板固定于移动工作台上,并使参考平板平面与移动工作台移动方向垂直,于是移动工作台可驱动参考平板沿Z轴方向移动,移动距离可以精确读取。 A texture camera calibration device in optical three-dimensional measurement, comprising a reference plate with a two-dimensional dot mark array on the surface and a mobile workbench. The dot mark array on the reference plate is distributed along two vertical directions of X and Y. The center coordinates ( X k , Y k ) of each dot are known precisely, where k ( k =1,2,…, K ) is the serial number of the dot. In order to improve the contrast of the image, the dot mark and the background color are black and white respectively. The reference plate is fixed on the mobile worktable, and the plane of the reference plate is perpendicular to the moving direction of the mobile worktable, so the mobile worktable can drive the reference plate to move along the Z-axis direction, and the moving distance can be accurately read.
一种光学三维测量中的纹理摄像机标定方法,标定过程包括以下步骤: A texture camera calibration method in optical three-dimensional measurement, the calibration process includes the following steps:
S1: 将上述标定装置置于测量系统内,参考平板圆点标记朝向摄像机所在方向,可以由两台摄像机同时拍摄到。参考平板初始位置记录为Z 0=0,作为测量深度图的基准位置。测量摄像机与纹理摄像机同时拍摄标记圆点阵列的图像。移动工作台驱动参考平板至N个不同位置(N≥2),并记录其位置Z n (n=1,2,…,N)。通过这一过程,参考平板的标记圆点圆心构成一个三维空间点阵,其各点空间坐标(X k, n ,Y k, n ,Z k, n )已知。在参考平板的每个移动到达位置,用纹理摄像机拍摄标记圆点阵列的图像。 S1: Put the above-mentioned calibration device in the measurement system, and the dot mark on the reference plate faces the direction of the camera, which can be photographed by two cameras at the same time. The initial position of the reference plate is recorded as Z 0 =0 as the reference position for the measured depth map. The measurement camera and the texture camera simultaneously capture images of the array of marked dots. Move the table to drive the reference plate to N different positions ( N ≥ 2), and record its position Z n ( n =1, 2, ..., N ). Through this process, the center of the marked circle of the reference plate constitutes a three-dimensional space lattice, and the space coordinates ( X k, n , Y k, n , Z k, n ) of each point are known. At each position reached by the movement of the reference plate, an image of the array of marked dots is taken with a texture camera.
S2: 对步骤S1中纹理摄像机获得的图像进行处理,提取各圆点质心作为圆点圆心的像素坐标 (u k, n , v k, n )。 S2: Process the image obtained by the texture camera in step S1, and extract the centroid of each dot as the pixel coordinates ( u k, n , v k, n ) of the dot center.
S3: 将纹理摄像机图像各圆点圆心的像素坐标 (u k, n , v k, n )及其对应的三维空间点坐标(X k, n ,Y k, n ,Z k, n )代入公式: S3: Substitute the pixel coordinates ( u k, n , v k, n ) of the center of each dot in the texture camera image and the corresponding three-dimensional space point coordinates ( X k, n , Y k, n , Z k, n ) into the formula :
形成包含2K(N+1)个方程的方程组。利用最小二乘方法,从该方程组可求解出14个未知待定参数q m (m=1,2,…,14)。这些参数决定了光学三维测量系统中纹理摄像机视角图像和测量摄像机视角图像像素之间的映射关系。 Form a system of equations containing 2 K ( N+1 ) equations. Using the method of least squares, 14 unknown and undetermined parameters q m (m=1,2,...,14) can be solved from this equation system. These parameters determine the mapping relationship between the texture camera perspective image and the measurement camera perspective image pixels in the optical three-dimensional measurement system.
一种光学三维测量中的纹理图像的几何校正方法。实际测量中,测量系统可测得物面三维点云数据,其中测量摄像机像素(s,t)所对应的物面点三维坐标为 [X(s,t), Y(s,t), Z(s,t)]。同时由纹理摄像机可拍摄到物面彩色纹理图像。该纹理图像上(u,v)像素的红、绿、蓝三基色分量为[R T(u,v), G T (u,v), B T (u,v)]。利用前述标定方法的标定结果,可以对该彩色图像进行几何校正,可将其由纹理摄像机视角图像变换至测量摄像机视角,步骤如下: A geometric correction method for texture images in optical three-dimensional measurement. In actual measurement, the measurement system can measure the three-dimensional point cloud data of the object surface, where the three-dimensional coordinates of the object surface point corresponding to the measurement camera pixel ( s , t ) are [ X ( s , t ), Y ( s , t ), Z ( s , t )]. At the same time, the color texture image of the object surface can be captured by the texture camera. The red, green and blue primary color components of the ( u , v ) pixel on the texture image are [ RT ( u , v ), G T ( u , v ), BT ( u , v )]. Using the calibration results of the aforementioned calibration method, the color image can be geometrically corrected, and it can be transformed from the texture camera perspective image to the measurement camera perspective. The steps are as follows:
S4: 生成一幅测量摄像机视角的空白彩色图像[R M(s,t), G M (s,t), B M (s,t)],其分量分别表示该图像中像素(s,t)的红、绿、蓝三基色分量。 S4: Generate a blank color image [ RM ( s , t ), G M ( s , t ), B M ( s , t )] that measures the camera’s viewing angle, and its components represent the pixels in the image ( s , t ) of the red, green and blue primary color components.
S5: 对于上述空白图像每一像素坐标(s,t),利用公式 S5: For each pixel coordinate ( s , t ) of the above blank image, use the formula
计算其在纹理摄像机图像中对应像素坐标(u,v)。 Calculate its corresponding pixel coordinates ( u , v ) in the texture camera image.
S6:读取纹理摄像机图像中像素(u,v)的各颜色分量。用这些颜色分量填充测量摄像机视角的空白彩色图像(s,t)像素,即 S6: Read each color component of the pixel ( u , v ) in the texture camera image. Fill the blank color image ( s , t ) pixels measuring the camera viewing angle with these color components, i.e.
对所有像素(s,t)进行相同操作即可获得测量摄像机视角的彩色纹理图像,实现了纹理图像的几何校正。 Perform the same operation on all pixels ( s , t ) to obtain a color texture image measuring the camera's viewing angle, and realize the geometric correction of the texture image.
本发明与现有技术相比较,具有如下显而易见的突出实质性特点和显著优点: Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:
1、 本发明可保证光学三维测量中点云测量与纹理获取过程独立进行,避免相互干扰。即利用黑白摄像机进行测量以保证测量精度,利用彩色摄像机记录纹理图像以保留色彩信息。 1. The present invention can ensure that the process of point cloud measurement and texture acquisition in optical three-dimensional measurement is carried out independently, avoiding mutual interference. That is, black and white cameras are used for measurement to ensure measurement accuracy, and color cameras are used to record texture images to preserve color information.
2、 本发明允许纹理摄像机安装于测量摄像机旁边任意位置,不需要增加分光装置,易于实现。 2. The present invention allows the texture camera to be installed at any position next to the measurement camera without adding a spectroscopic device, which is easy to implement.
3、 纹理摄像机的参数的选取可以不同于测量摄像机。例如,可选用高量化分辨率与高线性的测量摄像机进行测量,以减小量化误差及非线性响应对测量精度的影响;同时选用一般量化分辨率(8-bit)与具有GAMMA校正的彩色摄像机进行彩色纹理图像的拍摄,保证纹理图像的视觉效果。两者的图像尺寸大小也可不同。 3. The selection of the parameters of the texture camera can be different from that of the measurement camera. For example, a measurement camera with high quantization resolution and high linearity can be used for measurement to reduce the impact of quantization errors and nonlinear responses on measurement accuracy; at the same time, a general quantization resolution (8-bit) and a color camera with GAMMA correction can be selected Shoot color texture images to ensure the visual effect of texture images. The image sizes of the two can also be different.
4、 本发明装置简单,方法操作方便,无需获得纹理摄像机内外参数。标定装置可同时用于测量摄像机及测量系统的标定。纹理摄像机标定与测量系统标定可以同时进行,有利于减少标定时间。 4. The device of the present invention is simple, the method is convenient to operate, and there is no need to obtain the internal and external parameters of the texture camera. The calibration device can be used for calibration of the measurement camera and the measurement system at the same time. Texture camera calibration and measurement system calibration can be performed at the same time, which is beneficial to reduce calibration time.
附图说明 Description of drawings
图1是本发明“光学三维测量中的纹理摄像机标定装置”的结构示意图; Fig. 1 is a structural schematic diagram of the "texture camera calibration device in optical three-dimensional measurement" of the present invention;
图2是本发明“光学三维测量中的纹理摄像机标定方法”的原理图。 Fig. 2 is a schematic diagram of the "texture camera calibration method in optical three-dimensional measurement" of the present invention.
具体实施方式 Detailed ways
本发明的优选实施例结合附图详述如下: Preferred embodiments of the present invention are described in detail as follows in conjunction with the accompanying drawings:
实施例一:参见图1,本应用于光学三维测量中的纹理摄像机标定装置由参考平板(1)和移动工作台(2)组成;参考平板(1)表面表面带有二维圆点标记阵列,圆点标记阵列沿X、Y两个垂直方向分布;参考平板(1)上各圆点圆心坐标(X k ,Y k )精确已知,其中k(k=1,2,…,K)为圆点序号;参考平板(1)上圆点标记与背景颜色分别为黑白两色,以提高其图像的对比度,有利于圆点标记的分割;参考平板(1)固定于移动工作台(2)上,并使参考平板(1)平面与移动工作台(2)移动方向垂直;移动工作台(2)可驱动参考平板(1)沿Z轴方向移动,移动距离可以精确读取;标定装置在标定时,被置于由结构光源(3)和黑白测量摄像机(5)组成的测量系统的测量空间内,位于黑白测量摄像机(5)和彩色纹理摄像机的视场内。 Embodiment 1: Referring to Fig. 1, the texture camera calibration device used in optical three-dimensional measurement is composed of a reference plate (1) and a mobile worktable (2); the surface of the reference plate (1) has a two-dimensional dot mark array , the dot marker array is distributed along the two vertical directions of X and Y ; the center coordinates ( X k , Y k ) of each dot on the reference plate (1) are known precisely, where k ( k =1,2,…, K ) It is the serial number of the dot; the dot mark and the background color on the reference plate (1) are black and white respectively, so as to improve the contrast of its image and facilitate the segmentation of the dot mark; the reference plate (1) is fixed on the mobile workbench (2 ), and make the plane of the reference plate (1) perpendicular to the moving direction of the mobile worktable (2); the mobile workbench (2) can drive the reference plate (1) to move along the Z-axis direction, and the moving distance can be read accurately; the calibration device During calibration, it is placed in the measurement space of the measurement system composed of the structured light source (3) and the black-and-white measurement camera (5), and is located in the field of view of the black-and-white measurement camera (5) and the color texture camera.
实施例二:参见图2,本应用于光学三维测量中的纹理摄像机标定方法,利用实施例一的装置进行标定,其标定原理及步骤介绍如下。 Embodiment 2: Referring to FIG. 2 , the texture camera calibration method applied in optical three-dimensional measurement is calibrated using the device of Embodiment 1. The calibration principle and steps are introduced as follows.
将参考平板圆点标记朝向摄像机所在方向,可以由两台摄像机同时拍摄到。 Point the dot mark on the reference plate towards the direction of the camera, which can be captured by two cameras at the same time.
该参考平板可同时用于测量系统的标定和纹理摄像机的标定。测量系统中的测量摄像机可拍摄参考平板圆点标记阵列,用以建立测量摄像机像素坐标和被测物面点的三维坐标之间的映射关系,即实现测量系统的横向(X和Y方向)标定。同时通过参考平板的平移,利用结构光源投射结构光图案至该参考平板,由测量摄像机获取参考平板位于不同深度位置时的变形结构光图案。分析这些图案,可以建立结构光图案形变量和被测物面点的深度之间的映射关系,即实现测量系统的纵向(Z方向)标定。本发明主要是针对纹理摄像机的标定问题。由于测量系统的标定和纹理摄像机的标定可同时进行,测量系统与纹理拍摄系统就具有同一空间坐标系。 The reference plate can be used for the calibration of the measurement system and the calibration of the texture camera at the same time. The measurement camera in the measurement system can capture the reference plate circle point mark array to establish the mapping relationship between the pixel coordinates of the measurement camera and the three-dimensional coordinates of the surface points of the measured object, that is, to realize the lateral ( X and Y direction) calibration of the measurement system . At the same time, through the translation of the reference plate, the structured light source is used to project the structured light pattern to the reference plate, and the measurement camera obtains the deformed structured light pattern when the reference plate is located at different depth positions. By analyzing these patterns, the mapping relationship between the deformation of the structured light pattern and the depth of the surface point of the measured object can be established, that is, the longitudinal ( Z direction) calibration of the measurement system can be realized. The present invention is mainly aimed at the calibration problem of the texture camera. Since the calibration of the measurement system and the calibration of the texture camera can be performed simultaneously, the measurement system and the texture shooting system have the same spatial coordinate system.
参考平板初始位置记录为Z 0=0,作为测量深度图的基准位置。测量摄像机与纹理摄像机同时拍摄标记圆点阵列的图像。移动工作台驱动参考平板至N个不同位置(N≥2),并记录其位置Z n (n=1,2,…,N)。通过这一过程,参考平板的标记圆点圆心构成一个三维空间点阵,其各点空间坐标(X k, n ,Y k, n ,Z k, n )已知。在参考平板的每个移动到达位置,用纹理摄像机拍摄标记圆点阵列的图像。 The initial position of the reference plate is recorded as Z 0 =0 as the reference position for the measured depth map. The measurement camera and the texture camera simultaneously capture images of the array of marked dots. Move the table to drive the reference plate to N different positions ( N ≥ 2), and record its position Z n ( n =1, 2, ..., N ). Through this process, the center of the marked circle of the reference plate constitutes a three-dimensional space lattice, and the space coordinates ( X k, n , Y k, n , Z k, n ) of each point are known. At each position reached by the movement of the reference plate, an image of the array of marked dots is taken with a texture camera.
对纹理摄像机获得的标记原点图像进行处理。首先可通过平滑滤波去除标记原点图像的噪声,再对各圆点做图像分割。由于参考平板为一平面形状,其上光照相对比较均匀,并且圆点标记与背景颜色分别为黑白两色,对比度较大,图像分割可通过简单设定一个全局阈值来实现。图像通过分割被二值化,标记原点为白色表示为1,背景为黑色白色表示为0。然后求取各圆点质心作为圆点圆心的像素坐标 (u k, n , v k, n ): Process the marked origin image obtained by the texture camera. First, the noise of the marked origin image can be removed by smoothing and filtering, and then the image is segmented for each dot. Since the reference plate is a plane shape, the illumination on it is relatively uniform, and the dot mark and the background color are black and white, and the contrast is relatively high. Image segmentation can be realized by simply setting a global threshold. The image is binarized by segmentation, marking the origin as white for 1 and the background as black and white for 0. Then find the centroid of each dot as the pixel coordinates ( u k, n , v k, n ) of the dot center:
其中下标k(k=1,2,…,K)表示参考平板上标记圆点的序号,n(n=0,1,2,…,N)表示参考平板位置序号; D k,n 为参考平板第n个位置时第k个标记圆点的连通区域,(i, j)为二值图像的像素坐标,上述公式的分母实际上是区域D k,n 的面积。 Among them, the subscript k ( k =1,2,…, K ) indicates the serial number of the marked dot on the reference plate, n ( n =0, 1, 2, …, N ) indicates the serial number of the reference plate position; D k,n is Referring to the connected area of the k -th marked dot at the n -th position of the plate, ( i , j ) is the pixel coordinate of the binary image, and the denominator of the above formula is actually the area of the area D k,n .
如前所述,移动工作台驱动参考平板移动,参考平板的标记圆点圆心构成一个三维空间点阵,其各点空间坐标(X k, n ,Y k, n ,Z k, n )为已知。其中(X k, n ,Y k, n )为圆点标记圆心坐标,在参考平板制作时就已经确定。坐标Z k, n 由参考平板移动位置决定,在参考平板移动时读取。 As mentioned above, the mobile workbench drives the reference plate to move, and the center of the marked circle on the reference plate forms a three-dimensional space lattice, and the space coordinates ( X k, n , Y k, n , Z k, n ) of each point are Know. Among them ( X k, n , Y k, n ) are the coordinates of the center of the dot mark, which have been determined when the reference plate is made. The coordinates Z k, n are determined by the moving position of the reference plate and are read while the reference plate is moving.
将纹理摄像机图像各圆点圆心的像素坐标 (u k, n , v k, n )及其对应的三维空间点坐标(X k, n ,Y k, n ,Z k, n )代入公式: Substitute the pixel coordinates ( u k, n , v k, n ) of the center of each dot in the texture camera image and their corresponding three-dimensional space point coordinates ( X k, n , Y k, n , Z k, n ) into the formula:
形成包含2K(N+1)个方程的方程组。上述公式是通过对测量系统进行严格几何分析得到的,可以精确描述测量空间中一点的坐标和摄像机像素坐标之间的映射关系。注意到上述方程组是非线性的,需通过迭代法求解,较为困难,可将其变换为下列线性方程 Form a system of equations containing 2 K ( N+1 ) equations. The above formula is obtained through rigorous geometric analysis of the measurement system, which can accurately describe the mapping relationship between the coordinates of a point in the measurement space and the camera pixel coordinates. Note that the above equations are nonlinear and need to be solved by an iterative method, which is difficult, and can be transformed into the following linear equations
其中T表示矩阵转置。利用Housholder变换,可求解该线性方程组最小二乘解,解得14个未知待定参数q m (m=1,2,…,14)。这些参数决定了光学三维测量系统中纹理摄像机视角图像和测量空间内物面点的三维坐标之间的映射关系。由于物面点云与测量摄像机像素之间存在确定的直接对应关系,可利用上述标定所得参数确定纹理摄像机视角图像和测量摄像机视角图像像素之间的映射关系。 where T denotes matrix transpose. Using the Housholder transformation, the least squares solution of this linear equation system can be solved, and 14 unknown parameters q m (m=1,2,...,14) can be obtained. These parameters determine the mapping relationship between the texture camera perspective image in the optical three-dimensional measurement system and the three-dimensional coordinates of the object surface points in the measurement space. Since there is a definite direct correspondence between the object surface point cloud and the measurement camera pixels, the parameters obtained from the above calibration can be used to determine the mapping relationship between the texture camera perspective image and the measurement camera perspective image pixels.
实施例三:本应用于光学三维测量中的纹理图像的几何校正方法利用实施例二的标定结果对纹理摄像机拍摄的彩色纹理图像进行几何校正,将其变换为测量摄像机视角图像,以便于实现测量所得三维模型的纹理贴图。 Embodiment 3: The geometric correction method applied to the texture image in optical three-dimensional measurement uses the calibration result of Embodiment 2 to perform geometric correction on the color texture image captured by the texture camera, and convert it into the measurement camera perspective image, so as to realize the measurement The texture map for the resulting 3D model.
实际测量中,测量系统可测得物面三维点云数据,点云数据与测量摄像机像素存在直接的对应关系,像素(s,t)所对应的物面点三维坐标可表示为 [X(s,t), Y(s,t), Z(s,t)]。在测量的同时,纹理摄像机可拍摄到物面纹理图像。该纹理图像为彩色图像,可用RGB模型或HIS等模型表示。采用RGB模型,纹理图像上(u,v)像素的红、绿、蓝三基色分量可表示为[R T(u,v), G T (u,v), B T (u,v)]。 In actual measurement, the measurement system can measure the three-dimensional point cloud data of the object surface, and there is a direct correspondence between the point cloud data and the measurement camera pixels, and the three-dimensional coordinates of the object surface point corresponding to the pixel ( s , t ) can be expressed as [ X ( s , t ), Y ( s , t ), Z ( s , t )]. While measuring, the texture camera can capture the texture image of the object surface. The texture image is a color image, which can be represented by models such as RGB model or HIS. Using the RGB model, the red, green and blue primary color components of ( u , v ) pixels on the texture image can be expressed as [ RT ( u , v ), G T ( u , v ), B T ( u , v )] .
为得到测量摄像机视角的纹理图像,可先生成一幅该视角的空白彩色图像,同样使用RGB模型,该图像像素(s,t)的红、绿、蓝三基色分量为[R M(s,t), G M (s,t), B M (s,t)]。 In order to obtain the texture image of the measurement camera angle of view, a blank color image of the angle of view can be generated first, and the RGB model is also used. The red, green, and blue primary color components of the image pixel ( s , t ) are [ R M ( s , t ), G M ( s , t ), B M ( s , t )].
对于上述空白图像每一像素坐标(s,t),利用实施例二的标定结果,即参数q m (m=1,2,…,14),通过公式 For each pixel coordinate ( s , t ) of the blank image above, using the calibration result of Embodiment 2, that is, the parameter q m (m=1,2,...,14), through the formula
可计算其在纹理摄像机图像中对应像素坐标(u,v)。 Its corresponding pixel coordinates ( u , v ) in the texture camera image can be calculated.
读取纹理摄像机图像中像素(u,v)的各颜色分量。用这些颜色分量填充测量摄像机视角的空白彩色图像(s,t)像素,即 Read the individual color components of a pixel ( u , v ) in the texture camera image. Fill the blank color image ( s , t ) pixels measuring the camera viewing angle with these color components, i.e.
如此即可获得了测量摄像机视角的彩色纹理图像,实现了纹理图像的几何校正。 In this way, the color texture image for measuring the viewing angle of the camera can be obtained, and the geometric correction of the texture image is realized.
本方法不要求纹理摄像机与测量摄像机具有有相同的像素尺寸和像素数。在上述过程中,由(s,t)计算所得纹理图像像素坐标(u,v)一般非整数值,可利用四舍五入将其圆整为整数值,或利用双线性差值方法由(u,v)周围最近4个像素计算其颜色灰度值;另外,也有可能由(s,t)计算所得纹理图像像素坐标(u,v)超出纹理图像尺寸范围,此时则无法获得该像素彩色纹理信息。 This method does not require the texture camera to have the same pixel size and number of pixels as the measurement camera. In the above process, the pixel coordinates ( u , v ) of the texture image calculated by ( s , t ) are generally non-integer values, which can be rounded to integer values by rounding, or by using the bilinear difference method ( u , v ) Calculate the color gray value of the nearest 4 pixels around; In addition, it is also possible that the texture image pixel coordinates ( u , v ) calculated by ( s , t ) exceed the size range of the texture image. At this time, the color texture of the pixel cannot be obtained information.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210188911.2A CN102750698B (en) | 2012-06-11 | 2012-06-11 | Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210188911.2A CN102750698B (en) | 2012-06-11 | 2012-06-11 | Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102750698A CN102750698A (en) | 2012-10-24 |
CN102750698B true CN102750698B (en) | 2014-12-03 |
Family
ID=47030847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210188911.2A Active CN102750698B (en) | 2012-06-11 | 2012-06-11 | Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102750698B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105021126A (en) * | 2015-06-18 | 2015-11-04 | 中国计量学院 | Truck side guard rail mounting size measurement system and method based on machine vision technology |
CN106203257B (en) * | 2016-06-27 | 2019-12-06 | 深圳市新国都支付技术有限公司 | Method and system capable of identifying identification |
CN108036740B (en) * | 2017-12-05 | 2020-04-10 | 南京理工大学 | High-precision real-time three-dimensional color measurement system and method based on multiple viewing angles |
CN110942506B (en) * | 2019-12-05 | 2023-05-02 | 河北科技大学 | Object surface texture reconstruction method, terminal equipment and system |
CN113155053B (en) * | 2020-01-22 | 2024-09-06 | 株式会社三丰 | Three-dimensional geometry measuring device and three-dimensional geometry measuring method |
CN112884898B (en) * | 2021-03-17 | 2022-06-07 | 杭州思看科技有限公司 | Reference device for measuring texture mapping precision |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101169595A (en) * | 2007-11-28 | 2008-04-30 | 上海微电子装备有限公司 | Calibration device for aligning system of stepper and its calibration method |
CN101221041A (en) * | 2008-02-02 | 2008-07-16 | 天津大学 | A Color Rendering Method in 3D Digital Measurement |
CN101814185A (en) * | 2010-04-14 | 2010-08-25 | 天津大学 | Line structured light vision sensor calibration method for micro-size measurement |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100443552B1 (en) * | 2002-11-18 | 2004-08-09 | 한국전자통신연구원 | System and method for embodying virtual reality |
-
2012
- 2012-06-11 CN CN201210188911.2A patent/CN102750698B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101169595A (en) * | 2007-11-28 | 2008-04-30 | 上海微电子装备有限公司 | Calibration device for aligning system of stepper and its calibration method |
CN101221041A (en) * | 2008-02-02 | 2008-07-16 | 天津大学 | A Color Rendering Method in 3D Digital Measurement |
CN101814185A (en) * | 2010-04-14 | 2010-08-25 | 天津大学 | Line structured light vision sensor calibration method for micro-size measurement |
Non-Patent Citations (2)
Title |
---|
三坐标测量机驱动的摄像机标定技术;黄风山等;《光学精密工程》;20100430;第18卷(第4期);第952-957页 * |
黄风山等.三坐标测量机驱动的摄像机标定技术.《光学精密工程》.2010,第18卷(第4期), * |
Also Published As
Publication number | Publication date |
---|---|
CN102750698A (en) | 2012-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104376558B (en) | Cuboid-based intrinsic parameter calibration method for Kinect depth camera | |
CN102364299B (en) | Calibration technology for multiple structured light projected three-dimensional profile measuring heads | |
CN106056587B (en) | Full view line laser structured light three-dimensional imaging caliberating device and method | |
CN102155923B (en) | Splicing measuring method and system based on three-dimensional target | |
CN106595528B (en) | A kind of micro- binocular stereo vision measurement method of telecentricity based on digital speckle | |
CN106408556B (en) | A Calibration Method for Small Object Measurement System Based on General Imaging Model | |
CN102750698B (en) | Texture camera calibration device, texture camera calibration method and geometry correction method of texture image of texture camera | |
CN105203034B (en) | A kind of survey height survey area method based on monocular cam three-dimensional ranging model | |
CN106056620B (en) | Line laser camera measurement system calibrating method | |
CN110956660B (en) | Positioning method, robot, and computer storage medium | |
CN109961485A (en) | A method for target localization based on monocular vision | |
CN105551039A (en) | Calibration method and calibration device for structured light 3D scanning system | |
CN101576379A (en) | Fast calibration method of active projection three dimensional measuring system based on two-dimension multi-color target | |
KR101589167B1 (en) | System and Method for Correcting Perspective Distortion Image Using Depth Information | |
CN109272555B (en) | A method of obtaining and calibrating external parameters of RGB-D camera | |
CN106643563B (en) | A kind of Table top type wide view-field three-D scanning means and method | |
CN104240233A (en) | Method for solving camera homography matrix and projector homography matrix | |
CN102538708A (en) | Measurement system for three-dimensional shape of optional surface | |
Fernandez et al. | Planar-based camera-projector calibration | |
CN105374067A (en) | Three-dimensional reconstruction method based on PAL cameras and reconstruction system thereof | |
CN113505626A (en) | Rapid three-dimensional fingerprint acquisition method and system | |
CN101221041A (en) | A Color Rendering Method in 3D Digital Measurement | |
CN115082538A (en) | 3D reconstruction system and method of multi-vision gimbal parts surface based on line structured light projection | |
WO2018056802A1 (en) | A method for estimating three-dimensional depth value from two-dimensional images | |
CN112017248A (en) | 2D laser radar camera multi-frame single-step calibration method based on dotted line characteristics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |