[go: up one dir, main page]

CN115564893A - An Image Codec Method Based on Coded Structured Light - Google Patents

An Image Codec Method Based on Coded Structured Light Download PDF

Info

Publication number
CN115564893A
CN115564893A CN202211187028.1A CN202211187028A CN115564893A CN 115564893 A CN115564893 A CN 115564893A CN 202211187028 A CN202211187028 A CN 202211187028A CN 115564893 A CN115564893 A CN 115564893A
Authority
CN
China
Prior art keywords
image
structured light
coding
method based
reconstruction
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.)
Pending
Application number
CN202211187028.1A
Other languages
Chinese (zh)
Inventor
王念峰
林俊烨
张宪民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN202211187028.1A priority Critical patent/CN115564893A/en
Publication of CN115564893A publication Critical patent/CN115564893A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种基于编码结构光的图像编解码方法。本发明方法包括步骤采用条纹编码的方式,将结构光图像中的图案投影为包含正、反两个编码图案的多张场景图像;基于全局光照的优化方式减少全局光照的影响,使用格雷码编码对场景图像进行三维重建,消除无效重建区域得到未解码的拍摄图像;对消除无效重建区域的拍摄图像进行二值化运算,得到二值化图像;对二值化图像进行叠加,构造解码图像,然后对解码图像进行滤波去噪,去除解码图像中的噪声点。本发明相比现有技术,提高了二值化的稳定性,去除了无效重建区域,提高了重建的精度和编解码的效率。

Figure 202211187028

The invention discloses an image coding and decoding method based on coded structured light. The method of the present invention includes the steps of adopting the method of stripe coding, projecting the pattern in the structured light image into multiple scene images including positive and negative coding patterns; the optimization method based on global illumination reduces the influence of global illumination, and uses Gray code coding Carry out three-dimensional reconstruction of the scene image, eliminate the invalid reconstruction area to obtain the undecoded captured image; perform binarization operation on the captured image of the eliminated invalid reconstruction area to obtain the binary image; superimpose the binary image to construct the decoded image, Then filter and denoise the decoded image to remove noise points in the decoded image. Compared with the prior art, the present invention improves the stability of binarization, removes invalid reconstruction regions, and improves reconstruction precision and encoding and decoding efficiency.

Figure 202211187028

Description

一种基于编码结构光的图像编解码方法An Image Codec Method Based on Coded Structured Light

技术领域technical field

本发明属于图像处理的技术领域,具体涉及一种基于编码结构光的图像编解码方法。The invention belongs to the technical field of image processing, and in particular relates to an image encoding and decoding method based on encoded structured light.

背景技术Background technique

目前,随着智能制造的发展,工业应用中,非接触式的结构光视觉传感器应用越来越广泛,在逆向工程、工件质量检测、工件尺寸测量等领域,结构光视觉传感器已经被大规模应用。采用编码结构光方式的视觉传感器进行点云重建,需要满足三角法测量模型。三角法测量模型是一种非接触、测量速度快、精度较高的测量方式。编码结构光采用投影仪投射特殊的编码图案到待测物体上,通过采集变形的编码图案进行三维重建,其中的变化包含了被测物体表面的深度信息。通过对采集的场景编码图像进行解码分析,获取每个像素的解码值,根据相机与投影仪构成的三角几何模型,计算出图像中像素点的空间位置,从而获得被测物体表面的三维信息是常规的现有技术思路。At present, with the development of intelligent manufacturing, non-contact structured light vision sensors are more and more widely used in industrial applications. In the fields of reverse engineering, workpiece quality inspection, and workpiece size measurement, structured light vision sensors have been widely used. . The point cloud reconstruction using the visual sensor of encoded structured light needs to meet the triangulation measurement model. The triangulation measurement model is a non-contact, fast measurement and high precision measurement method. The coded structured light uses a projector to project a special coded pattern onto the object to be measured, and performs three-dimensional reconstruction by collecting the deformed coded pattern, and the changes include the depth information of the surface of the measured object. By decoding and analyzing the collected scene coded image, the decoding value of each pixel is obtained, and the spatial position of the pixel in the image is calculated according to the triangular geometric model formed by the camera and projector, so as to obtain the three-dimensional information of the surface of the measured object. Conventional prior art thinking.

在编码结构光系统进行三维重建时,结构光投影图案的编解码策略是其中重要的一环。图像编码及解码的作用是为了确定投射到物体的投影点在投影仪图像坐标系下的坐标,并减少解码误差。现有技术在对编码结构光的重建过程中,存在场景光线相互反射、次表面散射等全局光照现象,全局光照将导致不正确的二值化解码结果,编解码结果的二值化稳定性差,无效区域被重建影响编解码效率,对重建精度产生较大干扰。When encoding the structured light system for 3D reconstruction, the encoding and decoding strategy of the structured light projection pattern is an important part. The role of image encoding and decoding is to determine the coordinates of the projection point projected onto the object in the projector image coordinate system and reduce decoding errors. In the prior art, in the reconstruction process of coded structured light, there are global illumination phenomena such as mutual reflection of scene light and subsurface scattering, global illumination will lead to incorrect binary decoding results, and the binarization stability of codec results is poor. The reconstruction of the invalid area affects the encoding and decoding efficiency, and greatly interferes with the reconstruction accuracy.

发明内容Contents of the invention

为了克服现有技术存在的一个或者多个缺陷与不足,本发明提供一种基于编码结构光的图像编解码方法,用于减少对图像解码和重建的误差。In order to overcome one or more defects and deficiencies in the prior art, the present invention provides an image encoding and decoding method based on encoded structured light, which is used to reduce errors in image decoding and reconstruction.

为了达到上述目的,本发明采用以下的技术方案。In order to achieve the above object, the present invention adopts the following technical solutions.

一种基于编码结构光的图像编解码方法,包括步骤如下:An image encoding and decoding method based on encoded structured light, comprising the following steps:

采用条纹编码的方式,将结构光图像中的图案投影为包含正编码图案、反编码图案的多张场景图像;Using stripe coding, the pattern in the structured light image is projected into multiple scene images including positive coding patterns and reverse coding patterns;

基于全局光照的优化方式减少全局光照的影响,使用格雷码编码对场景图像进行三维重建,消除无效重建区域得到未解码的拍摄图像;The optimization method based on global illumination reduces the influence of global illumination, uses Gray code encoding to perform three-dimensional reconstruction of scene images, and eliminates invalid reconstruction areas to obtain undecoded captured images;

对消除无效重建区域的拍摄图像进行二值化运算,得到二值化图像;Performing a binarization operation on the photographed image that eliminates the invalid reconstruction area to obtain a binarized image;

对二值化图像进行叠加构造解码图像,然后对解码图像进行滤波去噪,去除解码图像中的噪声点。The binary image is superimposed to construct the decoded image, and then the decoded image is filtered and denoised to remove the noise points in the decoded image.

优选地,进行条纹编码时,采用的是纵向条纹编码。Preferably, when performing stripe coding, vertical stripe coding is used.

进一步地,进行条纹编码时,具体采用11位的纵向条纹编码;Further, when performing stripe coding, 11-bit vertical stripe coding is specifically adopted;

与11位的纵向条纹编码相对应的,在投影正编码图案、反编码图案时,正编码图案共投影出11张场景图像,反编码图案共投影处11张场景图像,投影总共得到22张场景图像。Corresponding to the 11-bit longitudinal stripe code, when projecting the positive coding pattern and the reverse coding pattern, the positive coding pattern projects a total of 11 scene images, and the reverse coding pattern projects a total of 11 scene images, and a total of 22 scenes are projected image.

进一步地,在对场景图像进行三维重建时,使用的格雷码编码为长位宽的格雷码编码。Further, when performing three-dimensional reconstruction on the scene image, the Gray code code used is a long-bit-width Gray code code.

进一步地,消除无效重建区域的过程包括:Further, the process of eliminating invalid reconstruction areas includes:

获取全部场景图像中每个像素点的最大灰度值Imax和最小灰度值Imin,然后计算最大灰度值Imax和最小灰度值Imin的差值Idis,计算公式如下:Obtain the maximum gray value I max and the minimum gray value I min of each pixel in all scene images, and then calculate the difference I dis between the maximum gray value I max and the minimum gray value I min , the calculation formula is as follows:

Idis=Imax-Imin I dis =I max -I min

若Idis小于设定的阈值,则该像素点位于无效重建区域中,然后将该像素点灰度值设为零,若Idis大于设定的阈值,则该像素点为可见点;If I dis is less than the set threshold, the pixel is located in the invalid reconstruction area, and then the pixel gray value is set to zero, if I dis is greater than the set threshold, then the pixel is a visible point;

将场景图像中Idis小于设定阈值的全部像素点灰度值设为零后,获得消除无效重建区域后的拍摄图像。After setting the gray value of all pixels in the scene image whose I dis is less than the set threshold to zero, the captured image after eliminating the invalid reconstruction area is obtained.

进一步地,拍摄图像进行二值化运算的过程包括:Further, the process of taking an image and performing a binarization operation includes:

将一组包含相应正编码图案、反编码图案的拍摄图像重合,然后进行二值化判断,以判断的二值化结果代替像素点的灰度值得到二值化图像。Overlap a group of photographed images containing the corresponding positive coding pattern and reverse coding pattern, and then perform binarization judgment, and replace the gray value of the pixel with the judged binarization result to obtain a binarized image.

进一步地,二值化判断的过程包括:Further, the process of binarization judgment includes:

设I为像素点在三维重建后的拍摄图像中正编码图案的灰度值、

Figure BDA0003868033920000032
为像素点在三维重建后的拍摄图像中反编码图案的灰度值、m表示像素点二值化判断后的结果,则正编码图案、反编码图案进行重合时,像素点的二值化结果的判断公式如下:Let I be the gray value of the positive coding pattern of the pixel in the three-dimensionally reconstructed captured image,
Figure BDA0003868033920000032
is the gray value of the reverse coding pattern of the pixel in the three-dimensionally reconstructed captured image, and m represents the result of the binarization judgment of the pixel. The judgment formula is as follows:

Figure BDA0003868033920000031
Figure BDA0003868033920000031

其中,1表示像素点二值化结果对应纵向条纹编码中的亮条纹,0表示像素点二值化结果对应纵向条纹编码中的暗条纹。Wherein, 1 indicates that the pixel point binarization result corresponds to the bright stripes in the longitudinal stripe coding, and 0 indicates that the pixel point binarization result corresponds to the dark stripes in the vertical stripe coding.

进一步地,二值化图像进行叠加构造解码图像的过程包括:Further, the process of superimposing binarized images to construct a decoded image includes:

对全部二值化图像进行叠加,将每张图像上同一位置像素点上的二值化结果进行累加得到累加值,然后将累加值设为灰度值,从而得到一张解码图像。Superimpose all the binarized images, accumulate the binarized results at the same pixel point on each image to obtain an accumulated value, and then set the accumulated value as a gray value to obtain a decoded image.

进一步地,对解码图像进行滤波去噪的方式具体为中值滤波。Further, the way of filtering and denoising the decoded image is specifically median filtering.

本发明技术方案与现有技术相比,具有如下有益效果:Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

通过正编码图案、反编码图案、编码条纹的优化,提高了二值化的稳定性,去除了无效重建区域;通过中值滤波的方式对解码图像去除噪声,减少了解码和重建时的误差,提高了重建的精度和编解码的效率,扩大了结构光传感器和点云重建的适用范围。Through the optimization of positive coding patterns, reverse coding patterns, and coding stripes, the stability of binarization is improved, and invalid reconstruction areas are removed; noise is removed from decoded images by median filtering, which reduces errors in decoding and reconstruction. The accuracy of reconstruction and the efficiency of encoding and decoding are improved, and the scope of application of structured light sensors and point cloud reconstruction is expanded.

附图说明Description of drawings

图1为本发明其中一种基于编码结构光的图像编解码方法的大致流程图;FIG. 1 is a general flow chart of one of the image encoding and decoding methods based on encoded structured light in the present invention;

图2为投影正编码图案时的效果图;Fig. 2 is the effect diagram when projecting positive coding pattern;

图3为投影反编码图案时的效果图;Fig. 3 is an effect diagram when projecting an inverse encoding pattern;

图4为二值化图像的效果图;Fig. 4 is the effect figure of binarized image;

图5为对解码图像进行滤波去噪前的效果图;FIG. 5 is an effect diagram before filtering and denoising the decoded image;

图6为对解码图像进行滤波去噪后的效果图。FIG. 6 is an effect diagram after filtering and denoising the decoded image.

具体实施方式detailed description

为了使本发明的目的、技术方案及其优点更加清楚明白,以下结合附图及其实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and the embodiments thereof. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

实施例Example

如图1所示,本实施例的一种基于编码结构光的图像编解码方法,具体步骤如下:As shown in Figure 1, an image encoding and decoding method based on encoded structured light in this embodiment, the specific steps are as follows:

S1、采用纵向条纹编码的方式,将结构光图像中的图案投影为包含正、反两个编码图案的多张场景图像;S1. Using the method of longitudinal stripe coding, the pattern in the structured light image is projected into multiple scene images including positive and negative coding patterns;

本实施例优选在投影时,采用11位的纵向条纹编码,所以正编码图案需要共投影出11张场景图像、反编码图案也需要共投影处11张场景图像,投影总共得到22张场景图像;In this embodiment, it is preferable to use 11-bit longitudinal stripe coding during projection, so the positive coding pattern needs to project a total of 11 scene images, and the reverse coding pattern also needs to project a total of 11 scene images, and a total of 22 scene images are obtained by projection;

S2、基于全局光照的优化方式减少全局光照的影响,使用位宽较长的格雷码编码对步骤S1中的场景图像进行三维重建,提高编码条纹的最小宽度,然后消除无效重建区域得到未解码的拍摄图像;S2. The optimization method based on global illumination reduces the influence of global illumination, uses Gray code encoding with a longer bit width to perform three-dimensional reconstruction on the scene image in step S1, increases the minimum width of the encoding stripes, and then eliminates invalid reconstruction areas to obtain undecoded capture images;

在三维重建过程中,由于投影仪的光照对无效区域的灰度值几乎没有影响,因此可以直接根据拍摄图像的灰度值变化来消除无效重建区域;In the process of 3D reconstruction, since the illumination of the projector has almost no effect on the gray value of the invalid area, the invalid reconstruction area can be eliminated directly according to the change of the gray value of the captured image;

消除无效重建区域的过程包括:The process of eliminating invalid reconstruction areas includes:

获取全部场景图像中每个像素点的最大灰度值Imax和最小灰度值Imin,然后计算最大灰度值Imax和最小灰度值Imin的差值Idis,计算公式如下:Obtain the maximum gray value I max and the minimum gray value I min of each pixel in all scene images, and then calculate the difference I dis between the maximum gray value I max and the minimum gray value I min , the calculation formula is as follows:

Idis=Imax-Imin I di s = I max -I min

若Idis小于设定的阈值,则该像素点位于无效重建区域中,然后将该像素点灰度值设为零;若Idis大于设定的阈值,则该像素点为可见点;If I dis is less than the set threshold, the pixel is located in the invalid reconstruction area, and then the gray value of the pixel is set to zero; if I dis is greater than the set threshold, the pixel is a visible point;

将场景图像中Idis小于设定的阈值的全部像素点灰度值设为零后,获得消除无效重建区域后的拍摄图像;After setting the gray value of all pixels whose I dis is less than the set threshold in the scene image to zero, obtain the captured image after eliminating the invalid reconstruction area;

本实施例优选对步骤S1产生的22张场景图像全部进行三维重建并消除无效重建区域,以此去除拍摄图像中的视场和物体遮挡的区域;In this embodiment, it is preferable to perform three-dimensional reconstruction on all the 22 scene images generated in step S1 and eliminate the invalid reconstruction area, so as to remove the field of view and the area blocked by the object in the captured image;

S3、对步骤2得到消除无效重建区域的拍摄图像进行二值化运算,得到二值化图像;得到二值化图像的过程包括:S3. Perform a binarization operation on the photographed image obtained in step 2 to eliminate the invalid reconstruction area to obtain a binarized image; the process of obtaining the binarized image includes:

将一组包含相应正、反两个编码图案的消除无效重建区域的拍摄图像重合后进行二值化判断,以判断的二值化结果代替像素点的灰度值得到二值化图像;正、反两个编码图案本身是一组按时间顺序排列的二值编码图案,编码图案中只有亮编码条纹、暗编码条纹两种;设I为像素点在三维重建后的拍摄图像中正编码图案的灰度值、

Figure BDA0003868033920000051
为像素点在三维重建后的拍摄图像中反编码图案的灰度值、m表示像素点二值化判断后结果,则正、反两个编码图案进行重合时,像素点的二值化结果的判断公式如下:Superimpose a group of photographed images containing the corresponding positive and negative coding patterns to eliminate the invalid reconstruction area and perform binarization judgment, and replace the gray value of the pixel point with the judged binarization result to obtain a binarized image; positive, negative The two anti-coding patterns themselves are a group of binary coding patterns arranged in chronological order, and there are only two kinds of coding patterns, bright coding stripes and dark coding stripes; let I be the gray color of positive coding patterns in the captured image after three-dimensional reconstruction of pixels. degree value,
Figure BDA0003868033920000051
is the gray value of the reverse coding pattern of the pixel in the three-dimensionally reconstructed captured image, and m represents the result of the binarization judgment of the pixel point. The judgment formula is as follows:

Figure BDA0003868033920000052
Figure BDA0003868033920000052

其中,1表示像素点二值化结果对应纵向条纹编码中的亮条纹,0表示像素点二值化结果对应纵向条纹编码中暗条纹;本实施例优选在二值化解码步骤S2的场景图像后,得到11张二值化图像;如图2至图4所示,图2的投影正编码图案、图3的反编码图案在二值化运算后得到图4的二值化图像;Wherein, 1 indicates that the pixel point binarization result corresponds to the bright stripe in the longitudinal stripe coding, and 0 represents that the pixel point binarization result corresponds to the dark stripe in the vertical stripe coding; this embodiment is preferably after the scene image in the binarization decoding step S2 , to obtain 11 binarized images; as shown in Figure 2 to Figure 4, the projection positive encoding pattern of Figure 2 and the reverse encoding pattern of Figure 3 obtain the binarized image of Figure 4 after the binarization operation;

S4、对步骤S3中的二值化图像进行叠加构造解码图像,然后对解码图像进行滤波去噪,去除解码图像中的噪声点,提高结构光图像解码的稳定性;S4, superimposing the binarized image in step S3 to construct a decoded image, then filtering and denoising the decoded image, removing noise points in the decoded image, and improving the stability of structured light image decoding;

二值化图像进行叠加构造解码图像的过程具体为:对全部二值化图像进行叠加,将每张图像上同一位置像素点上的二值化结果进行累加得到累加值,然后将累加值设为灰度值,从而得到一张解码图像;本实施例优选从步骤S3得到的11张二值化图像中构造解码图像;The process of superimposing the binarized images to construct the decoded image is as follows: superimpose all the binarized images, accumulate the binarization results on the pixels at the same position on each image to obtain an accumulated value, and then set the accumulated value to gray value, thereby obtaining a decoded image; the present embodiment preferably constructs a decoded image from the 11 binarized images obtained in step S3;

对解码图像进行滤波去噪,具体采用中值滤波的方式,去除解码图像中的高频椒盐噪声,从而保留完整的图案边缘;如图5和图6的对比所示,滤波去噪的前后存在着明显的椒盐噪声差异,滤波去噪前存在高频的椒盐噪声,滤波去噪后的椒盐噪声显著低于滤波去噪前的椒盐噪声。Filter and denoise the decoded image, specifically using the median filter method to remove the high-frequency salt and pepper noise in the decoded image, thereby retaining the complete pattern edge; as shown in the comparison between Figure 5 and Figure 6, there are There is an obvious difference in salt and pepper noise. Before filtering and denoising, there is high-frequency salt and pepper noise, and the salt and pepper noise after filtering and denoising is significantly lower than that before filtering and denoising.

本实施例的基于编码结构光的图像编解码方法与现有技术相比,其有益效果在于:Compared with the prior art, the image coding and decoding method based on coded structured light in this embodiment has the following beneficial effects:

本实施例通过正编码图案、反编码图案、编码条纹的优化,提高了二值化的稳定性,去除了无效重建区域;通过中值滤波的方式对解码图像去除噪声,减少了解码和重建时的误差,提高了重建的精度和编解码的效率,扩大了结构光传感器和点云重建的适用范围。This embodiment improves the stability of binarization by optimizing the positive coding pattern, reverse coding pattern, and coding stripes, and removes invalid reconstruction areas; the decoded image is denoised by median filtering, which reduces the time required for decoding and reconstruction. The error improves the accuracy of reconstruction and the efficiency of encoding and decoding, and expands the scope of application of structured light sensors and point cloud reconstruction.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (9)

1.一种基于编码结构光的图像编解码方法,其特征在于,包括步骤如下:1. An image encoding and decoding method based on encoded structured light, characterized in that, comprising the following steps: 采用条纹编码的方式,将结构光图像中的图案投影为包含正编码图案、反编码图案的多张场景图像;Using stripe coding, the pattern in the structured light image is projected into multiple scene images including positive coding patterns and reverse coding patterns; 基于全局光照的优化方式减少全局光照的影响,使用格雷码编码对场景图像进行三维重建,消除无效重建区域得到未解码的拍摄图像;The optimization method based on global illumination reduces the influence of global illumination, uses Gray code encoding to perform three-dimensional reconstruction of scene images, and eliminates invalid reconstruction areas to obtain undecoded captured images; 对消除无效重建区域的拍摄图像进行二值化运算,得到二值化图像;Performing a binarization operation on the photographed image that eliminates the invalid reconstruction area to obtain a binarized image; 对二值化图像进行叠加,构造解码图像,然后对解码图像进行滤波去噪,去除解码图像中的噪声点。The binarized image is superimposed to construct the decoded image, and then the decoded image is filtered and denoised to remove the noise points in the decoded image. 2.根据权利要求1所述基于编码结构光的图像编解码方法,其特征在于,进行条纹编码时,采用的是纵向条纹编码。2. The image encoding and decoding method based on coded structured light according to claim 1, characterized in that, when performing stripe coding, vertical stripe coding is used. 3.根据权利要求2所述基于编码结构光的图像编解码方法,其特征在于,进行条纹编码时,具体采用11位的纵向条纹编码;3. The image encoding and decoding method based on encoded structured light according to claim 2, characterized in that, when performing stripe encoding, specifically adopt 11-bit longitudinal stripe encoding; 与11位的纵向条纹编码相对应的,在投影正编码图案、反编码图案时,正编码图案共投影出11张场景图像,反编码图案共投影处11张场景图像,投影总共得到22张场景图像。Corresponding to the 11-bit longitudinal stripe code, when projecting the positive coding pattern and the reverse coding pattern, the positive coding pattern projects a total of 11 scene images, and the reverse coding pattern projects a total of 11 scene images, and a total of 22 scenes are projected image. 4.根据权利要求3所述基于编码结构光的图像编解码方法,其特征在于,在对场景图像进行三维重建时,使用的格雷码编码为长位宽的格雷码编码。4 . The image encoding and decoding method based on coded structured light according to claim 3 , wherein, when performing three-dimensional reconstruction on a scene image, the Gray code used is a long-bit-width Gray code. 5.根据权利要求4所述基于编码结构光的图像编解码方法,其特征在于,消除无效重建区域的过程包括:5. The image encoding and decoding method based on encoded structured light according to claim 4, wherein the process of eliminating invalid reconstruction areas comprises: 获取全部场景图像中每个像素点的最大灰度值Imax和最小灰度值Imin,然后计算最大灰度值Imax和最小灰度值Imin的差值Idis,计算公式如下:Obtain the maximum gray value I max and the minimum gray value I min of each pixel in all scene images, and then calculate the difference I dis between the maximum gray value I max and the minimum gray value I min , the calculation formula is as follows: Idis=Imax-IminIdis=Imax-Imin 若Idis小于设定的阈值,则该像素点位于无效重建区域中,然后将该像素点灰度值设为零,若Idis大于设定的阈值,则该像素点为可见点;If I dis is less than the set threshold, the pixel is located in the invalid reconstruction area, and then the pixel gray value is set to zero, if I dis is greater than the set threshold, then the pixel is a visible point; 将场景图像中Idis小于设定的阈值的全部像素点灰度值设为零后,获得消除无效重建区域后的拍摄图像。After setting the gray values of all pixels in the scene image whose I dis is smaller than the set threshold to zero, a captured image after eliminating the invalid reconstruction area is obtained. 6.根据权利要求5所述基于编码结构光的图像编解码方法,其特征在于,拍摄图像进行二值化运算的过程包括:6. The image encoding and decoding method based on encoded structured light according to claim 5, wherein the process of taking an image and performing a binarization operation comprises: 将一组包含相应正编码图案、反编码图案的拍摄图像重合,然后进行二值化判断,以判断的二值化结果代替像素点的灰度值得到二值化图像。Overlap a group of photographed images containing the corresponding positive coding pattern and reverse coding pattern, and then perform binarization judgment, and replace the gray value of the pixel with the judged binarization result to obtain a binarized image. 7.根据权利要求6所述基于编码结构光的图像编解码方法,其特征在于,二值化判断的过程包括:7. The image encoding and decoding method based on encoded structured light according to claim 6, wherein the process of binarization judgment comprises: 设I为像素点在三维重建后的拍摄图像中正编码图案的灰度值、
Figure FDA0003868033910000022
为像素点在三维重建后的拍摄图像中反编码图案的灰度值、m表示像素点二值化判断后的结果,则正编码图案、反编码图案进行重合时,像素点的二值化结果的判断公式如下:
Let I be the gray value of the positive coding pattern of the pixel in the three-dimensionally reconstructed captured image,
Figure FDA0003868033910000022
is the gray value of the reverse coding pattern of the pixel in the three-dimensionally reconstructed captured image, and m represents the result of the binarization judgment of the pixel. The judgment formula is as follows:
Figure FDA0003868033910000021
Figure FDA0003868033910000021
其中,1表示像素点二值化结果对应纵向条纹编码中的亮条纹,0表示像素点二值化结果对应纵向条纹编码中的暗条纹。Wherein, 1 indicates that the pixel point binarization result corresponds to the bright stripes in the longitudinal stripe coding, and 0 indicates that the pixel point binarization result corresponds to the dark stripes in the vertical stripe coding.
8.根据权利要求7所述基于编码结构光的图像编解码方法,其特征在于,二值化图像进行叠加构造解码图像的过程包括:8. The image encoding and decoding method based on encoded structured light according to claim 7, wherein the process of superimposing binarized images to construct a decoded image comprises: 对全部二值化图像进行叠加,将每张图像上同一位置像素点上的二值化结果进行累加得到累加值,然后将累加值设为灰度值,从而得到一张解码图像。Superimpose all the binarized images, accumulate the binarized results at the same pixel point on each image to obtain an accumulated value, and then set the accumulated value as a gray value to obtain a decoded image. 9.根据权利要求8所述基于编码结构光的图像编解码方法,其特征在于,对解码图像进行滤波去噪的方式具体为中值滤波。9 . The image encoding and decoding method based on encoded structured light according to claim 8 , wherein the way of filtering and denoising the decoded image is specifically median filtering.
CN202211187028.1A 2022-09-28 2022-09-28 An Image Codec Method Based on Coded Structured Light Pending CN115564893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211187028.1A CN115564893A (en) 2022-09-28 2022-09-28 An Image Codec Method Based on Coded Structured Light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211187028.1A CN115564893A (en) 2022-09-28 2022-09-28 An Image Codec Method Based on Coded Structured Light

Publications (1)

Publication Number Publication Date
CN115564893A true CN115564893A (en) 2023-01-03

Family

ID=84743156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211187028.1A Pending CN115564893A (en) 2022-09-28 2022-09-28 An Image Codec Method Based on Coded Structured Light

Country Status (1)

Country Link
CN (1) CN115564893A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117333560A (en) * 2023-12-01 2024-01-02 北京航空航天大学杭州创新研究院 Scene-adaptive stripe structured light decoding method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120237112A1 (en) * 2011-03-15 2012-09-20 Ashok Veeraraghavan Structured Light for 3D Shape Reconstruction Subject to Global Illumination
CN109000587A (en) * 2018-08-30 2018-12-14 无锡信捷电气股份有限公司 The method for obtaining accurate high density point cloud

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120237112A1 (en) * 2011-03-15 2012-09-20 Ashok Veeraraghavan Structured Light for 3D Shape Reconstruction Subject to Global Illumination
CN109000587A (en) * 2018-08-30 2018-12-14 无锡信捷电气股份有限公司 The method for obtaining accurate high density point cloud

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
GUPTA M ET AL: "Structured Light 3D Scanning in the Presence of Global Illumination", MITSUBISHI ELECTRIC RESEARCH LABORATORIES, 31 December 2011 (2011-12-31), pages 713 - 720 *
刘子华: "基于投影结构光法实现动态目标的三维重构", 中国优秀硕士学位论文全文数据库 信息科技辑, 15 October 2012 (2012-10-15), pages 138 - 2767 *
季桓勇: "基于结构光的墙面三维信息获取及缺陷检测", 中国优秀硕士学位论文全文数据库 信息科技辑, 15 January 2019 (2019-01-15), pages 140 - 1675 *
郭根: "基于振镜扫描的激光频闪成像三维视觉测量技术研究", 中国优秀硕士学位论文全文数据库 基础科学辑, 15 January 2020 (2020-01-15), pages 005 - 408 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117333560A (en) * 2023-12-01 2024-01-02 北京航空航天大学杭州创新研究院 Scene-adaptive stripe structured light decoding method, device, equipment and medium
CN117333560B (en) * 2023-12-01 2024-02-20 北京航空航天大学杭州创新研究院 Scene-adaptive stripe structure optical decoding method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110866924B (en) Line structured light center line extraction method and storage medium
CN107876970B (en) Robot multilayer multi-pass welding seam three-dimensional detection and welding seam inflection point identification method
Wolff et al. Point cloud noise and outlier removal for image-based 3D reconstruction
Chen et al. Light field stereo matching using bilateral statistics of surface cameras
US10739131B2 (en) Three-dimensional scanning device using structured light
CN118424232B (en) An underwater structure ranging system based on computer vision
CN113643372B (en) Three-dimensional weld extraction method and system
CN110298853B (en) Visual inspection method for surface difference
CN105809715B (en) A kind of visual movement object detection method adding up transformation matrices based on interframe
CN104408772A (en) Grid projection-based three-dimensional reconstructing method for free-form surface
CN115096206A (en) Part size high-precision measurement method based on machine vision
CN114280058A (en) A method for detecting surface defects of refractory bricks based on grating projection
CN113379902A (en) Laser scanning-based weld shape feature extraction and three-dimensional reconstruction method
CN116793247A (en) A fringe progression correction method for fringe projection profilometry based on regional statistics
CN115564893A (en) An Image Codec Method Based on Coded Structured Light
CN114494165A (en) A method and device for extracting light stripes based on clustering
CN109272542A (en) Method for determining volume of three-dimensional object
CN112330667B (en) A Morphology-Based Method for Extracting the Centerline of Laser Streaks
CN102393964B (en) Strip gap detection method
CN112508983B (en) A Point Cloud Downsampling Method Based on Image Edge Detection
CN108510544A (en) A kind of striation localization method of feature based cluster
CN105300319B (en) A kind of quick three-dimensional stereo reconstruction method based on chromatic grating
CN119714124A (en) A 3D vision reconstruction method based on differential Gray coded structured light
CN110715886B (en) Oil wear debris online monitoring method based on optical low-coherence imaging
CN118396970A (en) Fillet weld recognition and detection method based on 3D industrial camera

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