[go: up one dir, main page]

WO2018196304A1 - Three-dimensional image reconstruction method and apparatus based on debruijn sequence - Google Patents

Three-dimensional image reconstruction method and apparatus based on debruijn sequence Download PDF

Info

Publication number
WO2018196304A1
WO2018196304A1 PCT/CN2017/107277 CN2017107277W WO2018196304A1 WO 2018196304 A1 WO2018196304 A1 WO 2018196304A1 CN 2017107277 W CN2017107277 W CN 2017107277W WO 2018196304 A1 WO2018196304 A1 WO 2018196304A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
coded
binarized image
sequence
feature points
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.)
Ceased
Application number
PCT/CN2017/107277
Other languages
French (fr)
Chinese (zh)
Other versions
WO2018196304A9 (en
Inventor
刘晓利
王若曦
彭翔
蔡泽伟
汤其剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
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 Shenzhen University filed Critical Shenzhen University
Publication of WO2018196304A1 publication Critical patent/WO2018196304A1/en
Publication of WO2018196304A9 publication Critical patent/WO2018196304A9/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Definitions

  • the present invention relates to the field of three-dimensional image reconstruction technology, and in particular, to a three-dimensional image reconstruction method and apparatus based on a DeBruijn sequence.
  • the commonly used three-dimensional image reconstruction technology is a structured light three-dimensional image reconstruction technology
  • the structured light three-dimensional image reconstruction technology mainly falls into two categories: spatial domain coding and time domain coding, wherein the spatial domain coding often only needs to project a pattern.
  • the codeword of each point in the pattern can be obtained according to the information of neighboring points around it (such as pixel, color and geometric information, etc.), but it is interfered by information such as pixels and colors during the decoding stage, which has noise interference, thus affecting decoding. Robustness.
  • the existing three-dimensional image reconstruction method has poor noise resistance and poor robustness.
  • the main object of the present invention is to provide a three-dimensional image reconstruction method and apparatus based on DeBruijn sequence, which aims to solve the technical problem of poor anti-noise ability and poor robustness existing in the existing three-dimensional image reconstruction method.
  • a first aspect of the present invention provides a three-dimensional image reconstruction method based on a DeBruijn sequence, the method comprising:
  • the image of the coded template is projected onto the surface of the object, image acquisition is performed, and a coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain a first binarized image, wherein
  • the first binarized image includes a plurality of coded feature points, each coded feature point including a central region;
  • a second aspect of the present invention provides a three-dimensional image reconstruction apparatus based on a DeBruijn sequence, the apparatus comprising:
  • a conversion module configured to perform binary conversion processing on the DeBruijn sequence to obtain a binary sequence, and sequentially fill the binary sequence in a gray area in a preset template image to obtain a coded template image;
  • An acquisition module configured to perform image acquisition after projecting the code template image onto an object surface, obtain a coded image including coded template image information and object information, and perform binarization processing on the coded image to obtain a first binarization An image, wherein the first binarized image comprises a plurality of coded feature points, each coded feature point comprising a central region;
  • a first determining module configured to determine location information of a central area of each of the encoded feature points based on the first binarized image
  • a second determining module configured to determine, according to the first binarized image and location information of each of the central regions, an encoded value of each of the encoded feature points, and perform three-dimensional image reconstruction by using the encoded value.
  • the present invention provides a three-dimensional image reconstruction method based on DeBruijn sequence.
  • a 4-level DeBruijn sequence is generated by using a shift register, and a binary sequence is obtained by performing a binary conversion process on the DeBruijn sequence, and the binary sequence is sequentially filled in the order.
  • the coded template image is obtained, and the coded template image is projected onto the surface of the object to perform image acquisition, and the coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain a first binarized image, wherein the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and position information of a central region of each coded feature point is determined based on the first binarized image Determining the coded value of each coded feature point based on the first binarized image and the position information of each central region, and performing three-dimensional image reconstruction using the coded value.
  • the embodiment of the present invention is based on the DeBruijn sequence.
  • Encoding the encoded template image obtained by encoding to Image acquisition is performed on the surface of the object to obtain a coded image, and the coded image is binarized.
  • the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better. Robustness.
  • FIG. 1 is a schematic flowchart of a method for reconstructing a three-dimensional image based on a DeBruijn sequence according to a first embodiment of the present invention
  • FIG. 3 is a schematic flow chart showing a refinement step of performing a binary conversion process on a DeBruijn sequence in step S102 in FIG. 1 to obtain a binary sequence;
  • FIG. 4 is a schematic diagram of conversion processing of a binary sequence by performing a binary conversion process on a DeBruijn sequence
  • Figure 5 is a first binarized image
  • step S104 is a schematic flow chart of the refinement step of step S104;
  • Figure 7 is a structural view of a peripheral area
  • step S105 is a schematic flow chart of the refinement step of step S105;
  • Figure 9 is a structural diagram of coded feature points
  • FIG. 10 is a schematic diagram of functional modules of a three-dimensional image reconstruction apparatus based on a DeBruijn sequence according to a second embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a refinement function module of the conversion module 1002 of FIG. 10;
  • FIG. 12 is a schematic diagram of a refinement function module of the first determining module 1004;
  • FIG. 13 is a schematic diagram of a refinement function module of the second determining module 1005.
  • FIG. 1 is a schematic flowchart of a method for reconstructing a three-dimensional image based on a DeBruijn sequence according to a first embodiment of the present invention, including:
  • Step S101 generating a 4-level 2-level DeBruijn sequence by using a shift register
  • the 4-bit 2-level DeBruijn sequence is generated by using the shift register, and the DeBruijn sequence is generated by first determining the first sub-sequence by using the shift register, obtaining the iterative function by using the original polynomial, and iterating by using the iterative function. The operation generates a subsequent subsequence, and the iteration ends when the current subsequence is identical to the first subsequence, and a 4-ary 2-level DeBruijn sequence is obtained.
  • the 4-level 2-level DeBruijn sequence is a pseudo-random sequence with 4 elements, a total length of 16, an arbitrary length, and no sub-sequences.
  • the 4-level 2-level DeBruijn sequence element has a value of 0, 1. 2 and 3.
  • Step S102 performing a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially filling the binary sequence in the gray region in the preset template image in order to obtain a coded template image;
  • the preset template image shown in FIG. 2 is a black and white checkerboard pattern, and the gray area 203 to be filled is set around each corner point, and the gray area is The area of 203 should be smaller than the area of the black checkerboard area 202 and the area of the white checkerboard area 201.
  • the binary sequence is sequentially filled in the gray area in the preset template image to obtain a coded template image.
  • the preset template image shown in FIG. 2 has a total of 7 rows of gray areas 203 to be filled, and each line has The gray area 203 of the seven grids, assuming that the first line binary sequence is 1100110, the first line binary sequence 1100110 is sequentially filled in order in the first gray line 203 of the preset template image to be filled in the gray area 203, the binary sequence The code word 1 in 1100110 causes the gray area 203 to become black, and the code word 0 in the binary sequence 1100110 causes the gray area 203 to become white, and the color of the 7 gray areas 203 after the first line is filled is displayed in black and white.
  • White black and white according to the above method, all the binary sequences are sequentially filled in the preset template image in order, and the encoded template image is obtained.
  • FIG. 3 is a schematic flowchart of a refinement step of performing binary conversion processing on the DeBruijn sequence in step S102 in FIG. 1 to obtain a binary sequence, including:
  • Step S301 converting each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arranging them into two upper and lower rows;
  • step S302 the binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows are up-and-down changed to obtain a binary sequence.
  • FIG. 4 is a schematic diagram of a conversion process of a binary sequence obtained by performing a binary conversion process on a DeBruijn sequence, where the 4-element 2-level DeBruijn sequence element takes values of 0, 1, 2, and 3, corresponding to The binary numbers are 00, 01, 10, and 11, respectively.
  • each codeword in the row DeBruijn sequence 401 is converted into a binary number distributed up and down, and arranged in two rows.
  • the binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows are up-and-down shifted to obtain a binary sequence as shown by 403.
  • Step S103 After the code template image is projected onto the surface of the object, the image is collected, and the coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain the first binarized image, wherein the first image is obtained.
  • the binarized image includes a plurality of coded feature points, each coded feature point including a central region;
  • the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and some coded feature points include a center.
  • the color of the area is black, such as 501, and some of the coded feature points include a central area whose color is white, such as 502.
  • Step S104 Determine location information of a central region of each of the encoded feature points based on the first binarized image
  • FIG. 6 is a schematic flowchart of the refinement step of step S104, including:
  • Step S601 performing a closing operation on the first binarized image, and removing a peripheral region of each of the encoded feature points to obtain a second binarized image;
  • Step S602 determining location information of a central region in which the color in the second binarized image is black
  • Step S603 performing black-and-white inversion processing on each pixel in the first binarized image, and performing a closed operation on the first binarized image subjected to the black-and-white inversion processing to remove the peripheral region of each of the encoded feature points.
  • Step S604 determining that the color in the third binarized image is the position information of the black central region.
  • each of the coded feature points includes four peripheral regions.
  • the four peripheral regions are 701, 702, 703, and 704, respectively, and the first binarized image is closed and removed.
  • a second binarized image is obtained for each peripheral region of the encoded feature point, and the position information of the central region of the black color in the second binarized image is determined, because only the central region of the black color can be closed. Therefore, in order to determine the position information of the central region of the color in the first binarized image, first, each pixel in the first binarized image is subjected to black and white inversion processing, and the black and white inversion processing is performed.
  • a binarized image is subjected to a closing operation to remove a peripheral region of each of the encoded feature points to obtain a third binarized image, and the position information of the central region in which the color in the third binarized image is black is determined, and the third binary value is obtained.
  • the position information of the central region in which the color in the image is black is the position information of the central region in which the color in the first binarized image is white, thereby determining the first binarization map. All the position information in the central region.
  • Step S105 Determine an encoding value of each coding feature point based on the first binarized image and position information of each central region, and perform three-dimensional image reconstruction using the encoded value.
  • FIG. 8 is a schematic flowchart of the refinement step of step S105, including:
  • Step S801 determining four adjacent central regions having the same color as the current central region based on the first binarized image and the position information of the current central region;
  • Step S802 connecting the current central area and the four adjacent central areas to obtain four peripheral areas on the connection line;
  • Step S803 calculating gray values of the four peripheral regions, and using the gray value of the four peripheral regions as the encoded value of the encoded feature points corresponding to the current central region.
  • the current central area is 901, and based on the first binarized image and the position information of the current central area 901, four adjacent central areas having the same color as the current central area are determined to be 902, respectively.
  • 903, 904, and 905 connecting the current central area and four adjacent central areas, obtaining four peripheral areas on the connecting line, and four peripheral areas are 906, 907, 908, and 909, and calculating gray values of four peripheral areas.
  • the color of 906 is black, the gray value of 906 is 1, and the color of 907 is white, then the gray value of 907 is 0, the color of 908 is white, and the gray value of 908 is 0.
  • the gradation value of 909 is 0, and the gradation values 1, 0, 0, and 0 of the four peripheral regions are used as the coding values of the coding feature points corresponding to the current central region, that is, the current central region.
  • the coded value of the corresponding coded feature point is 1, 0, 0, 0.
  • the embodiment of the present invention performs encoding based on the DeBruijn sequence, which can effectively avoid the singularity of the encoding, and image the encoded template image obtained by encoding onto the surface of the object for image acquisition.
  • the coded image is obtained, and the coded image is binarized.
  • the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better robustness.
  • FIG. 10 is a schematic diagram of functional modules of a three-dimensional image reconstruction apparatus based on a DeBruijn sequence according to a second embodiment of the present invention, including:
  • a generating module 1001 configured to generate a 4-ary 2-level DeBruijn sequence by using a shift register
  • the generating module 1001 generates a 4-level 2-level DeBruijn sequence by using a shift register, and the method for generating the DeBruijn sequence is: first, the first sub-sequence is determined by using the shift register, the iterative function is obtained by using the original polynomial, and the iteration is utilized. The function performs an iterative operation to generate a subsequent subsequence. When the current subsequence is identical to the first subsequence, the iteration ends, and a 4-level 2-level DeBruijn sequence is obtained.
  • the 4-level 2-level DeBruijn sequence is a pseudo-random sequence with 4 elements, a total length of 16, an arbitrary length, and no sub-sequences.
  • the 4-level 2-level DeBruijn sequence element has a value of 0, 1. 2 and 3.
  • the conversion module 1002 is configured to perform a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially fill the binary sequence in a gray area in the preset template image to obtain a coded template image;
  • the preset template image shown in FIG. 2 is a black and white checkerboard pattern, and the gray area 203 to be filled is set around each corner point, and the gray area is The area of 203 should be smaller than the area of the black checkerboard area 202 and the area of the white checkerboard area 201.
  • the conversion module 1002 sequentially fills the binary sequence in the gray area in the preset template image to obtain a coded template image.
  • the preset template image shown in FIG. 2 has a total of 7 rows of gray areas 203 to be filled. Each row has a gray area 203 of 7 grids. Assuming that the first line binary sequence is 1100110, the first line binary sequence 1100110 is sequentially filled in order in the first gray line 203 of the preset template image to be filled.
  • the code word 1 in the binary sequence 1100110 causes the gray area 203 to become black, and the code word 0 in the binary sequence 1100110 causes the gray area 203 to become white, and the color of the 7 gray areas 203 after the first line is filled
  • all the binary sequences are sequentially filled in the preset template image in order, and the encoded template image is obtained.
  • FIG. 11 is a schematic diagram of a refinement function module of the conversion module 1002 of FIG. 10, including:
  • the converting unit 1101 is configured to convert each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arrange the upper and lower two rows;
  • the permutation unit 1102 is configured to perform upper and lower positions on the binary numbers of the even columns among all the binary numbers arranged in the upper and lower two rows to obtain a binary sequence.
  • FIG. 4 is a schematic diagram of a conversion process of a binary sequence obtained by performing a binary conversion process on a DeBruijn sequence, where the 4-element 2-level DeBruijn sequence element takes values of 0, 1, 2, and 3, corresponding to The binary numbers are 00, 01, 10, and 11, respectively.
  • the conversion unit 1101 converts each codeword in the row DeBruijn sequence 401 into upper and lower distributed binary numbers, and arranges them up and down.
  • the permutation unit 1102 up-and-down the binary numbers of the even-numbered columns of all the binary numbers arranged in the upper and lower two rows to obtain a binary sequence as shown at 403.
  • the acquisition module 1003 is configured to perform image acquisition after projecting the code template image onto the surface of the object, obtain a coded image including the coded template image information and the object information, and perform binarization processing on the coded image to obtain a first binarized image, wherein
  • the first binarized image includes a plurality of coded feature points, each of the coded feature points including a central region;
  • the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and some coded feature points include a center.
  • the color of the area is black, such as 501, and some of the coded feature points include a central area whose color is white, such as 502.
  • a first determining module 1004 configured to determine location information of a central area of each of the encoded feature points based on the first binarized image
  • FIG. 12 is a schematic diagram of the refinement function module of the first determining module 1004, including:
  • a first closing operation unit 1201 configured to perform a closing operation on the first binarized image, and remove a peripheral region of each of the encoded feature points to obtain a second binarized image
  • a first determining unit 1202 configured to determine location information of a central area in which the color in the second binarized image is black
  • the second closing operation unit 1203 is configured to perform black and white inversion processing on each pixel in the first binarized image, and perform a closing operation on the first binarized image subjected to the black and white inversion processing to remove each encoding. a peripheral region of the feature point to obtain a third binarized image;
  • the second determining unit 1204 is configured to determine location information of a central area in which the color in the third binarized image is black.
  • each of the coded feature points includes four peripheral regions.
  • the four peripheral regions are respectively 701, 702, 703, and 704, and the first closed operation unit 1201 pairs the first binarized image.
  • the first determining unit 1202 determines the position information of the central region of the black color in the second binarized image, because only The central region of the black color is closed, so in order to determine the position information of the central region in which the color in the first binarized image is white, the second closing operation unit 1203 firstly sets each of the first binarized images.
  • the pixel performs black and white inversion processing, and performs a closing operation on the first binarized image subjected to the black and white inversion processing, and the second closing unit 1203 removes the peripheral region of each of the encoded feature points to obtain a third binarized image.
  • Determining position information of a central region in which the color in the third binarized image is black, and the position information of the central region in which the color in the third binarized image is black is the first binary value
  • the color in the image is the position information of the white central region, and the second determining unit 1204 thus determines the position information of all the central regions in the first binarized image.
  • the second determining module 1005 is configured to determine an encoding value of each coding feature point based on the first binarized image and position information of each central region, and perform three-dimensional image reconstruction using the encoded value.
  • FIG. 13 is a schematic diagram of the refinement function module of the second determining module 1005, including:
  • the third determining unit 1301 is configured to determine, according to the first binarized image and the location information of the current central region, four adjacent central regions that are the same color as the current central region;
  • the connecting unit 1302 is configured to connect the current central area and the four adjacent central areas to obtain four peripheral areas on the connecting line;
  • the calculating unit 1303 is configured to calculate grayscale values of the four peripheral regions, and use the grayscale values of the four peripheral regions as the encoded values of the encoded feature points corresponding to the current central region.
  • the current central area is 901
  • the third determining unit 1301 determines four neighbors having the same color as the current central area based on the first binarized image and the position information of the current central area 901.
  • the central areas are 902, 903, 904 and 905, respectively.
  • the connecting unit 1302 connects the current central area and the four adjacent central areas, and obtains four peripheral areas on the connecting line, and the four peripheral areas are 906, 907, 908 and 909, and the calculation is performed.
  • the unit 1303 calculates the gradation values of the four peripheral regions. As shown in FIG. 9, the color of 906 is black, the gradation value of 906 is 1, and the color of 907 is white, and the gradation value of 907 is 0, 908.
  • the gradation value of 908 is 0, the color of 909 is white, and the gradation value of 909 is 0, and the gradation values 1, 0, 0, and 0 of the four peripheral regions are taken as the current central region.
  • the coded value of the coded feature point that is, the coded value of the coded feature point corresponding to the current central region is 1, 0, 0, 0.
  • the embodiment of the present invention performs encoding based on the DeBruijn sequence, which can effectively avoid the singularity of the encoding, and image the encoded template image obtained by encoding onto the surface of the object for image acquisition.
  • the coded image is obtained, and the coded image is binarized.
  • the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better robustness.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are a three-dimensional image reconstruction method and apparatus based on a DeBruijn sequence. The method comprises: using a shift register to generate a four-element two-level DeBruijn sequence (101); carrying out binary conversion on the DeBruijn sequence to obtain binary sequences, and filling the binary sequences in a gray area in a pre-set template image in sequence to obtain a coded template image (102); carrying out image collection after the coded template image is projected onto a surface of an object to obtain a coded image including coded template image information and object information, and binarizing the coded image to obtain a first binarized image, wherein the first binarized image comprises a plurality of coded feature points, and each of the coded feature points comprises one central area (103); based on the first binarized image, determining position information about the central area of each of the coded feature points (104); and based on the first binarized image, and the position information about each central area, determining a coded value of each of the coded feature points, and using the coded value for three-dimensional image reconstruction (105). A higher anti-noise capacity and better robustness are achieved when the method is used for three-dimensional image reconstruction.

Description

基于DeBruijn序列的三维图像重建方法及装置Three-dimensional image reconstruction method and device based on DeBruijn sequence

本发明涉及三维图像重建技术领域,尤其涉及一种基于DeBruijn序列的三维图像重建方法及装置。The present invention relates to the field of three-dimensional image reconstruction technology, and in particular, to a three-dimensional image reconstruction method and apparatus based on a DeBruijn sequence.

现有技术中,常用的三维图像重建技术是结构光三维图像重建技术,结构光三维图像重建技术主要分为两类:空域编码和时域编码,其中,空域编码往往只需要投影一幅图案,图案中每一点的码字即可根据它周围临近点的信息(如像素、颜色和几何信息等) 得出,但是在解码阶段因受到像素和颜色等信息的干扰,具有噪声干扰,从而影响解码鲁棒性。In the prior art, the commonly used three-dimensional image reconstruction technology is a structured light three-dimensional image reconstruction technology, and the structured light three-dimensional image reconstruction technology mainly falls into two categories: spatial domain coding and time domain coding, wherein the spatial domain coding often only needs to project a pattern. The codeword of each point in the pattern can be obtained according to the information of neighboring points around it (such as pixel, color and geometric information, etc.), but it is interfered by information such as pixels and colors during the decoding stage, which has noise interference, thus affecting decoding. Robustness.

因此,现有的三维图像重建方法存在着具有较差的抗噪能力和较差的鲁棒性。Therefore, the existing three-dimensional image reconstruction method has poor noise resistance and poor robustness.

发明内容Summary of the invention

本发明的主要目的在于提供一种基于DeBruijn序列的三维图像重建方法及装置,旨在解决现有的三维图像重建方法存在的具有较差的抗噪能力和较差的鲁棒性的技术问题。The main object of the present invention is to provide a three-dimensional image reconstruction method and apparatus based on DeBruijn sequence, which aims to solve the technical problem of poor anti-noise ability and poor robustness existing in the existing three-dimensional image reconstruction method.

为实现上述目的,本发明第一方面提供一种基于DeBruijn序列的三维图像重建方法,所述方法包括:To achieve the above object, a first aspect of the present invention provides a three-dimensional image reconstruction method based on a DeBruijn sequence, the method comprising:

利用位移寄存器生成4元2级DeBruijn序列;Using a shift register to generate a 4-ary 2-level DeBruijn sequence;

对所述DeBruijn序列进行二进制转换处理得到二进制序列,并将所述二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;Performing a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially filling the binary sequence in a gray area in a preset template image to obtain a coded template image;

将所述编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对所述编码图像进行二值化处理,得到第一二值化图像,其中,所述第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;After the image of the coded template is projected onto the surface of the object, image acquisition is performed, and a coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain a first binarized image, wherein The first binarized image includes a plurality of coded feature points, each coded feature point including a central region;

基于所述第一二值化图像确定每一个编码特征点的中心区域的位置信息;Determining position information of a central region of each of the encoded feature points based on the first binarized image;

基于所述第一二值化图像及所述每一个中心区域的位置信息确定所述每一个编码特征点的编码值,并利用所述编码值进行三维图像重建。And determining, according to the first binarized image and the position information of each of the central regions, an encoded value of each of the encoded feature points, and performing three-dimensional image reconstruction using the encoded value.

为实现上述目的,本发明第二方面提供一种基于DeBruijn序列的三维图像重建装置,所述装置包括:To achieve the above object, a second aspect of the present invention provides a three-dimensional image reconstruction apparatus based on a DeBruijn sequence, the apparatus comprising:

生成模块,用于利用位移寄存器生成4元2级DeBruijn序列;Generating a module for generating a 4-ary 2-level DeBruijn sequence by using a shift register;

转换模块,用于对所述DeBruijn序列进行二进制转换处理得到二进制序列,并将所述二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;a conversion module, configured to perform binary conversion processing on the DeBruijn sequence to obtain a binary sequence, and sequentially fill the binary sequence in a gray area in a preset template image to obtain a coded template image;

采集模块,用于将所述编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对所述编码图像进行二值化处理,得到第一二值化图像,其中,所述第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;An acquisition module, configured to perform image acquisition after projecting the code template image onto an object surface, obtain a coded image including coded template image information and object information, and perform binarization processing on the coded image to obtain a first binarization An image, wherein the first binarized image comprises a plurality of coded feature points, each coded feature point comprising a central region;

第一确定模块,用于基于所述第一二值化图像确定每一个编码特征点的中心区域的位置信息;a first determining module, configured to determine location information of a central area of each of the encoded feature points based on the first binarized image;

第二确定模块,用于基于所述第一二值化图像及所述每一个中心区域的位置信息确定所述每一个编码特征点的编码值,并利用所述编码值进行三维图像重建。And a second determining module, configured to determine, according to the first binarized image and location information of each of the central regions, an encoded value of each of the encoded feature points, and perform three-dimensional image reconstruction by using the encoded value.

本发明提供一种基于DeBruijn序列的三维图像重建方法,本发明实施例利用位移寄存器生成4元2级DeBruijn序列,对DeBruijn序列进行二进制转换处理得到二进制序列,并将二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像,将编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对编码图像进行二值化处理,得到第一二值化图像,其中,第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域,基于第一二值化图像确定每一个编码特征点的中心区域的位置信息,基于第一二值化图像及每一个中心区域的位置信息确定每一个编码特征点的编码值,并利用编码值进行三维图像重建,与现有技术相比,本发明实施例将基于DeBruijn序列进行编码后得到的编码模板图像投影到物体表面后进行图像采集,得到编码图像,对编码图像进行二值化处理,其中,利用二值化处理可以克服物体表面的颜色干扰,三维图像的重建时具有更高的抗噪能力和较好的鲁棒性。The present invention provides a three-dimensional image reconstruction method based on DeBruijn sequence. In the embodiment of the present invention, a 4-level DeBruijn sequence is generated by using a shift register, and a binary sequence is obtained by performing a binary conversion process on the DeBruijn sequence, and the binary sequence is sequentially filled in the order. In the gray area in the template image, the coded template image is obtained, and the coded template image is projected onto the surface of the object to perform image acquisition, and the coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain a first binarized image, wherein the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and position information of a central region of each coded feature point is determined based on the first binarized image Determining the coded value of each coded feature point based on the first binarized image and the position information of each central region, and performing three-dimensional image reconstruction using the coded value. Compared with the prior art, the embodiment of the present invention is based on the DeBruijn sequence. Encoding the encoded template image obtained by encoding to Image acquisition is performed on the surface of the object to obtain a coded image, and the coded image is binarized. Among them, the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better. Robustness.

附图说明DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and those skilled in the art can obtain other drawings according to these drawings without any creative work.

图1为本发明第一实施例提供的一种基于DeBruijn序列的三维图像重建方法的流程示意图;1 is a schematic flowchart of a method for reconstructing a three-dimensional image based on a DeBruijn sequence according to a first embodiment of the present invention;

图2为本发明实施例中的预设模板图像;2 is a preset template image in an embodiment of the present invention;

图3为为图1中的步骤S102中的对DeBruijn序列进行二进制转换处理得到二进制序列的细化步骤的流程示意图;3 is a schematic flow chart showing a refinement step of performing a binary conversion process on a DeBruijn sequence in step S102 in FIG. 1 to obtain a binary sequence;

图4为对DeBruijn序列进行二进制转换处理得到二进制序列的转换处理示意图;4 is a schematic diagram of conversion processing of a binary sequence by performing a binary conversion process on a DeBruijn sequence;

图5为第一二值化图像;Figure 5 is a first binarized image;

图6为步骤S104的细化步骤的流程示意图;6 is a schematic flow chart of the refinement step of step S104;

图7为外围区域的结构图;Figure 7 is a structural view of a peripheral area;

图8为步骤S105的细化步骤的流程示意图;8 is a schematic flow chart of the refinement step of step S105;

图9为编码特征点的结构图;Figure 9 is a structural diagram of coded feature points;

图10为本发明第二实施例提供的一种基于DeBruijn序列的三维图像重建装置的功能模块示意图;FIG. 10 is a schematic diagram of functional modules of a three-dimensional image reconstruction apparatus based on a DeBruijn sequence according to a second embodiment of the present invention; FIG.

图11为图10中的转换模块1002的细化功能模块示意图;11 is a schematic diagram of a refinement function module of the conversion module 1002 of FIG. 10;

图12为第一确定模块1004的细化功能模块示意图;12 is a schematic diagram of a refinement function module of the first determining module 1004;

图13为第二确定模块1005的细化功能模块示意图。FIG. 13 is a schematic diagram of a refinement function module of the second determining module 1005.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. The embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.

请参阅图1,图1为本发明第一实施例提供的一种基于DeBruijn序列的三维图像重建方法的流程示意图,包括:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for reconstructing a three-dimensional image based on a DeBruijn sequence according to a first embodiment of the present invention, including:

步骤S101、利用位移寄存器生成4元2级DeBruijn序列;Step S101, generating a 4-level 2-level DeBruijn sequence by using a shift register;

在本发明实施例中,利用位移寄存器生成生成4元2级DeBruijn序列,生成DeBruijn序列的方法为:首先利用位移寄存器确定第一个子序列,利用原本多项式获取迭代函数,并利用迭代函数进行迭代运算,生成后续子序列,在当前的子序列与第一个子序列相同时迭代结束,得到4元2级DeBruijn序列。In the embodiment of the present invention, the 4-bit 2-level DeBruijn sequence is generated by using the shift register, and the DeBruijn sequence is generated by first determining the first sub-sequence by using the shift register, obtaining the iterative function by using the original polynomial, and iterating by using the iterative function. The operation generates a subsequent subsequence, and the iteration ends when the current subsequence is identical to the first subsequence, and a 4-ary 2-level DeBruijn sequence is obtained.

其中,该4元2级DeBruijn序列是一个元素个数为4、总长度为16、任意长度、子序列不重复出现的伪随机序列,该4元2级DeBruijn序列元素取值为0、1、2和3。The 4-level 2-level DeBruijn sequence is a pseudo-random sequence with 4 elements, a total length of 16, an arbitrary length, and no sub-sequences. The 4-level 2-level DeBruijn sequence element has a value of 0, 1. 2 and 3.

步骤S102、对DeBruijn序列进行二进制转换处理得到二进制序列,并将二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;Step S102, performing a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially filling the binary sequence in the gray region in the preset template image in order to obtain a coded template image;

在本发明实施例中,请参阅图2所示的预设模板图像,该预设模板图像为黑白相间的棋盘格图案,并以每个角点为中心设置待填充的灰色区域203,灰色区域203的面积应小于黑色棋盘格区域202的面积及白色棋盘格区域201的面积。In the embodiment of the present invention, please refer to the preset template image shown in FIG. 2, the preset template image is a black and white checkerboard pattern, and the gray area 203 to be filled is set around each corner point, and the gray area is The area of 203 should be smaller than the area of the black checkerboard area 202 and the area of the white checkerboard area 201.

其中,将二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像,例如,图2所示的预设模板图像中共有7行待填充的灰色区域203,每一行有7个格子的灰色区域203,假设第一行二进制序列为1100110,将第一行二进制序列1100110按顺序依次填充于预设模板图像中的第一行待填充的7个灰色区域203中,二进制序列1100110中的码字1使得灰色区域203变成黑色的,二进制序列1100110中的码字0使得灰色区域203变成白色的,则第一行填充后的7个灰色区域203的颜色显示为黑黑白白黑黑白,按照上述方法,将所有的二进制序列按照顺序依次填充于预设模板图像中,就会得到编码模板图像。The binary sequence is sequentially filled in the gray area in the preset template image to obtain a coded template image. For example, the preset template image shown in FIG. 2 has a total of 7 rows of gray areas 203 to be filled, and each line has The gray area 203 of the seven grids, assuming that the first line binary sequence is 1100110, the first line binary sequence 1100110 is sequentially filled in order in the first gray line 203 of the preset template image to be filled in the gray area 203, the binary sequence The code word 1 in 1100110 causes the gray area 203 to become black, and the code word 0 in the binary sequence 1100110 causes the gray area 203 to become white, and the color of the 7 gray areas 203 after the first line is filled is displayed in black and white. White black and white, according to the above method, all the binary sequences are sequentially filled in the preset template image in order, and the encoded template image is obtained.

进一步的,请参阅图3,图3为图1中的步骤S102中的对DeBruijn序列进行二进制转换处理得到二进制序列的细化步骤的流程示意图,包括:Further, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a refinement step of performing binary conversion processing on the DeBruijn sequence in step S102 in FIG. 1 to obtain a binary sequence, including:

步骤S301、将DeBruijn序列中的每一个码字转换成上下分布的二进制数,并排列成上下两行;Step S301, converting each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arranging them into two upper and lower rows;

步骤S302、将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到二进制序列。In step S302, the binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows are up-and-down changed to obtain a binary sequence.

在本发明实施例中,请参阅图4,图4为对DeBruijn序列进行二进制转换处理得到二进制序列的转换处理示意图,该4元2级DeBruijn序列元素取值为0、1、2及3,对应的二进制数分别为00、01、10及11,假设某一行DeBruijn序列401为3300311320210122,则将该行DeBruijn序列401中的每一个码字转换成上下分布的二进制数,并排列成上下两行,如402所示,将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到如403所示的二进制序列。In the embodiment of the present invention, refer to FIG. 4. FIG. 4 is a schematic diagram of a conversion process of a binary sequence obtained by performing a binary conversion process on a DeBruijn sequence, where the 4-element 2-level DeBruijn sequence element takes values of 0, 1, 2, and 3, corresponding to The binary numbers are 00, 01, 10, and 11, respectively. Assuming that a certain row DeBruijn sequence 401 is 3300311320210122, each codeword in the row DeBruijn sequence 401 is converted into a binary number distributed up and down, and arranged in two rows. As shown at 402, the binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows are up-and-down shifted to obtain a binary sequence as shown by 403.

步骤S103、将编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对编码图像进行二值化处理,得到第一二值化图像,其中,第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;Step S103: After the code template image is projected onto the surface of the object, the image is collected, and the coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain the first binarized image, wherein the first image is obtained. The binarized image includes a plurality of coded feature points, each coded feature point including a central region;

在本发明实施例中,请参阅图5,为第一二值化图像,第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域,有的编码特征点包括的中心区域的颜色为黑色,如501,有的编码特征点包括的中心区域的颜色为白色,如502。In the embodiment of the present invention, referring to FIG. 5, which is a first binarized image, the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and some coded feature points include a center. The color of the area is black, such as 501, and some of the coded feature points include a central area whose color is white, such as 502.

步骤S104、基于第一二值化图像确定每一个编码特征点的中心区域的位置信息;Step S104: Determine location information of a central region of each of the encoded feature points based on the first binarized image;

进一步地,请参阅图6,图6为步骤S104的细化步骤的流程示意图,包括:Further, please refer to FIG. 6. FIG. 6 is a schematic flowchart of the refinement step of step S104, including:

步骤S601、对第一二值化图像进行闭运算,并去除每一个编码特征点的外围区域,得到第二二值化图像;Step S601, performing a closing operation on the first binarized image, and removing a peripheral region of each of the encoded feature points to obtain a second binarized image;

步骤S602、确定第二二值化图像中的颜色为黑色的中心区域的位置信息;Step S602, determining location information of a central region in which the color in the second binarized image is black;

步骤S603、将第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,去除每一个编码特征点的外围区域,得到第三二值化图像;Step S603, performing black-and-white inversion processing on each pixel in the first binarized image, and performing a closed operation on the first binarized image subjected to the black-and-white inversion processing to remove the peripheral region of each of the encoded feature points. Obtaining a third binarized image;

步骤S604、确定第三二值化图像中的颜色为黑色的中心区域的位置信息。Step S604, determining that the color in the third binarized image is the position information of the black central region.

在本发明实施例中,每一个编码特征点包括4个外围区域,请参阅图7,4个外围区域分别为701、702、703及704,对第一二值化图像进行闭运算,并去除每一个编码特征点的外围区域,得到第二二值化图像,确定第二二值化图像中的颜色为黑色的中心区域的位置信息,因为只能对颜色为黑色的中心区域进行闭运算,所以为了确定第一二值化图像中的颜色为白色的中心区域的位置信息,首先将第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,去除每一个编码特征点的外围区域,得到第三二值化图像,确定第三二值化图像中的颜色为黑色的中心区域的位置信息,第三二值化图像中的颜色为黑色的中心区域的位置信息即为第一二值化图像中的颜色为白色的中心区域的位置信息,从而确定了第一二值化图像中的所有中心区域的位置信息。In the embodiment of the present invention, each of the coded feature points includes four peripheral regions. Referring to FIG. 7, the four peripheral regions are 701, 702, 703, and 704, respectively, and the first binarized image is closed and removed. A second binarized image is obtained for each peripheral region of the encoded feature point, and the position information of the central region of the black color in the second binarized image is determined, because only the central region of the black color can be closed. Therefore, in order to determine the position information of the central region of the color in the first binarized image, first, each pixel in the first binarized image is subjected to black and white inversion processing, and the black and white inversion processing is performed. A binarized image is subjected to a closing operation to remove a peripheral region of each of the encoded feature points to obtain a third binarized image, and the position information of the central region in which the color in the third binarized image is black is determined, and the third binary value is obtained. The position information of the central region in which the color in the image is black is the position information of the central region in which the color in the first binarized image is white, thereby determining the first binarization map. All the position information in the central region.

步骤S105、基于第一二值化图像及每一个中心区域的位置信息确定每一个编码特征点的编码值,并利用编码值进行三维图像重建。Step S105: Determine an encoding value of each coding feature point based on the first binarized image and position information of each central region, and perform three-dimensional image reconstruction using the encoded value.

进一步地,请参阅图8,图8为步骤S105的细化步骤的流程示意图,包括:Further, please refer to FIG. 8. FIG. 8 is a schematic flowchart of the refinement step of step S105, including:

步骤S801、基于第一二值化图像及当前中心区域的位置信息确定与当前中心区域的颜色相同的4个邻近中心区域;Step S801, determining four adjacent central regions having the same color as the current central region based on the first binarized image and the position information of the current central region;

步骤S802、连接当前中心区域及4个邻近中心区域,得到连线上的4个外围区域;Step S802, connecting the current central area and the four adjacent central areas to obtain four peripheral areas on the connection line;

步骤S803、计算4个外围区域的灰度值,将4个外围区域的灰度值作为当前中心区域所对应的编码特征点的编码值。Step S803, calculating gray values of the four peripheral regions, and using the gray value of the four peripheral regions as the encoded value of the encoded feature points corresponding to the current central region.

在本发明实施例中,请参阅图9,当前中心区域为901,基于第一二值化图像及当前中心区域901的位置信息确定与当前中心区域的颜色相同的4个邻近中心区域分别为902、903、904及905,连接当前中心区域及4个邻近中心区域,得到连线上的4个外围区域,4个外围区域为906、907、908及909,计算4个外围区域的灰度值,如图9中,906的颜色为黑色,则906的灰度值为1,907的颜色为白色,则907的灰度值为0,908的颜色为白色,则908的灰度值为0,909的颜色为白色,则909的灰度值为0,将4个外围区域的灰度值1、0、0、0作为当前中心区域所对应的编码特征点的编码值,即当前中心区域所对应的编码特征点的编码值为1、0、0、0。In the embodiment of the present invention, referring to FIG. 9, the current central area is 901, and based on the first binarized image and the position information of the current central area 901, four adjacent central areas having the same color as the current central area are determined to be 902, respectively. 903, 904, and 905, connecting the current central area and four adjacent central areas, obtaining four peripheral areas on the connecting line, and four peripheral areas are 906, 907, 908, and 909, and calculating gray values of four peripheral areas. As shown in FIG. 9, the color of 906 is black, the gray value of 906 is 1, and the color of 907 is white, then the gray value of 907 is 0, the color of 908 is white, and the gray value of 908 is 0. If the color of 909 is white, the gradation value of 909 is 0, and the gradation values 1, 0, 0, and 0 of the four peripheral regions are used as the coding values of the coding feature points corresponding to the current central region, that is, the current central region. The coded value of the corresponding coded feature point is 1, 0, 0, 0.

在本发明实施例中,与现有技术相比,本发明实施例基于DeBruijn序列进行编码,能够有效的避免编码的奇异性,将编码后得到的编码模板图像投影到物体表面后进行图像采集,得到编码图像,对编码图像进行二值化处理,其中,利用二值化处理可以克服物体表面的颜色干扰,三维图像的重建时具有更高的抗噪能力和较好的鲁棒性。In the embodiment of the present invention, compared with the prior art, the embodiment of the present invention performs encoding based on the DeBruijn sequence, which can effectively avoid the singularity of the encoding, and image the encoded template image obtained by encoding onto the surface of the object for image acquisition. The coded image is obtained, and the coded image is binarized. Among them, the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better robustness.

请参阅图10,图10为本发明第二实施例提供的一种基于DeBruijn序列的三维图像重建装置的功能模块示意图,包括:Referring to FIG. 10, FIG. 10 is a schematic diagram of functional modules of a three-dimensional image reconstruction apparatus based on a DeBruijn sequence according to a second embodiment of the present invention, including:

生成模块1001,用于利用位移寄存器生成4元2级DeBruijn序列;a generating module 1001, configured to generate a 4-ary 2-level DeBruijn sequence by using a shift register;

在本发明实施例中,生成模块1001利用位移寄存器生成生成4元2级DeBruijn序列,生成DeBruijn序列的方法为:首先利用位移寄存器确定第一个子序列,利用原本多项式获取迭代函数,并利用迭代函数进行迭代运算,生成后续子序列,在当前的子序列与第一个子序列相同时迭代结束,得到4元2级DeBruijn序列。In the embodiment of the present invention, the generating module 1001 generates a 4-level 2-level DeBruijn sequence by using a shift register, and the method for generating the DeBruijn sequence is: first, the first sub-sequence is determined by using the shift register, the iterative function is obtained by using the original polynomial, and the iteration is utilized. The function performs an iterative operation to generate a subsequent subsequence. When the current subsequence is identical to the first subsequence, the iteration ends, and a 4-level 2-level DeBruijn sequence is obtained.

其中,该4元2级DeBruijn序列是一个元素个数为4、总长度为16、任意长度、子序列不重复出现的伪随机序列,该4元2级DeBruijn序列元素取值为0、1、2和3。The 4-level 2-level DeBruijn sequence is a pseudo-random sequence with 4 elements, a total length of 16, an arbitrary length, and no sub-sequences. The 4-level 2-level DeBruijn sequence element has a value of 0, 1. 2 and 3.

转换模块1002,用于对DeBruijn序列进行二进制转换处理得到二进制序列,并将二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;The conversion module 1002 is configured to perform a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially fill the binary sequence in a gray area in the preset template image to obtain a coded template image;

在本发明实施例中,请参阅图2所示的预设模板图像,该预设模板图像为黑白相间的棋盘格图案,并以每个角点为中心设置待填充的灰色区域203,灰色区域203的面积应小于黑色棋盘格区域202的面积及白色棋盘格区域201的面积。In the embodiment of the present invention, please refer to the preset template image shown in FIG. 2, the preset template image is a black and white checkerboard pattern, and the gray area 203 to be filled is set around each corner point, and the gray area is The area of 203 should be smaller than the area of the black checkerboard area 202 and the area of the white checkerboard area 201.

其中,转换模块1002将二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像,例如,图2所示的预设模板图像中共有7行待填充的灰色区域203,每一行有7个格子的灰色区域203,假设第一行二进制序列为1100110,将第一行二进制序列1100110按顺序依次填充于预设模板图像中的第一行待填充的7个灰色区域203中,二进制序列1100110中的码字1使得灰色区域203变成黑色的,二进制序列1100110中的码字0使得灰色区域203变成白色的,则第一行填充后的7个灰色区域203的颜色显示为黑黑白白黑黑白,按照上述方法,将所有的二进制序列按照顺序依次填充于预设模板图像中,就会得到编码模板图像。The conversion module 1002 sequentially fills the binary sequence in the gray area in the preset template image to obtain a coded template image. For example, the preset template image shown in FIG. 2 has a total of 7 rows of gray areas 203 to be filled. Each row has a gray area 203 of 7 grids. Assuming that the first line binary sequence is 1100110, the first line binary sequence 1100110 is sequentially filled in order in the first gray line 203 of the preset template image to be filled. The code word 1 in the binary sequence 1100110 causes the gray area 203 to become black, and the code word 0 in the binary sequence 1100110 causes the gray area 203 to become white, and the color of the 7 gray areas 203 after the first line is filled In the black, black, white, black and white, according to the above method, all the binary sequences are sequentially filled in the preset template image in order, and the encoded template image is obtained.

进一步的,请参阅图11,图11为图10中的转换模块1002的细化功能模块示意图,包括:Further, please refer to FIG. 11. FIG. 11 is a schematic diagram of a refinement function module of the conversion module 1002 of FIG. 10, including:

转换单元1101,用于将DeBruijn序列中的每一个码字转换成上下分布的二进制数,并排列成上下两行;The converting unit 1101 is configured to convert each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arrange the upper and lower two rows;

置换单元1102,用于将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到二进制序列。The permutation unit 1102 is configured to perform upper and lower positions on the binary numbers of the even columns among all the binary numbers arranged in the upper and lower two rows to obtain a binary sequence.

在本发明实施例中,请参阅图4,图4为对DeBruijn序列进行二进制转换处理得到二进制序列的转换处理示意图,该4元2级DeBruijn序列元素取值为0、1、2及3,对应的二进制数分别为00、01、10及11,假设某一行DeBruijn序列401为3300311320210122,转换单元1101则将该行DeBruijn序列401中的每一个码字转换成上下分布的二进制数,并排列成上下两行,如402所示,置换单元1102将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到如403所示的二进制序列。In the embodiment of the present invention, refer to FIG. 4. FIG. 4 is a schematic diagram of a conversion process of a binary sequence obtained by performing a binary conversion process on a DeBruijn sequence, where the 4-element 2-level DeBruijn sequence element takes values of 0, 1, 2, and 3, corresponding to The binary numbers are 00, 01, 10, and 11, respectively. Assuming that a certain row DeBruijn sequence 401 is 3300311320210122, the conversion unit 1101 converts each codeword in the row DeBruijn sequence 401 into upper and lower distributed binary numbers, and arranges them up and down. In two rows, as shown at 402, the permutation unit 1102 up-and-down the binary numbers of the even-numbered columns of all the binary numbers arranged in the upper and lower two rows to obtain a binary sequence as shown at 403.

采集模块1003,用于将编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对编码图像进行二值化处理,得到第一二值化图像,其中,第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;The acquisition module 1003 is configured to perform image acquisition after projecting the code template image onto the surface of the object, obtain a coded image including the coded template image information and the object information, and perform binarization processing on the coded image to obtain a first binarized image, wherein The first binarized image includes a plurality of coded feature points, each of the coded feature points including a central region;

在本发明实施例中,请参阅图5,为第一二值化图像,第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域,有的编码特征点包括的中心区域的颜色为黑色,如501,有的编码特征点包括的中心区域的颜色为白色,如502。In the embodiment of the present invention, referring to FIG. 5, which is a first binarized image, the first binarized image includes a plurality of coded feature points, each coded feature point includes a central region, and some coded feature points include a center. The color of the area is black, such as 501, and some of the coded feature points include a central area whose color is white, such as 502.

第一确定模块1004,用于基于第一二值化图像确定每一个编码特征点的中心区域的位置信息;a first determining module 1004, configured to determine location information of a central area of each of the encoded feature points based on the first binarized image;

进一步地,请参阅图12,图12为第一确定模块1004的细化功能模块示意图,包括:Further, please refer to FIG. 12, which is a schematic diagram of the refinement function module of the first determining module 1004, including:

第一闭运算单元1201,用于对第一二值化图像进行闭运算,并去除每一个编码特征点的外围区域,得到第二二值化图像;a first closing operation unit 1201, configured to perform a closing operation on the first binarized image, and remove a peripheral region of each of the encoded feature points to obtain a second binarized image;

第一确定单元1202,用于确定第二二值化图像中的颜色为黑色的中心区域的位置信息;a first determining unit 1202, configured to determine location information of a central area in which the color in the second binarized image is black;

第二闭运算单元1203,用于将第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,去除每一个编码特征点的外围区域,得到第三二值化图像;The second closing operation unit 1203 is configured to perform black and white inversion processing on each pixel in the first binarized image, and perform a closing operation on the first binarized image subjected to the black and white inversion processing to remove each encoding. a peripheral region of the feature point to obtain a third binarized image;

第二确定单元1204,用于确定第三二值化图像中的颜色为黑色的中心区域的位置信息。The second determining unit 1204 is configured to determine location information of a central area in which the color in the third binarized image is black.

在本发明实施例中,每一个编码特征点包括4个外围区域,请参阅图7,4个外围区域分别为701、702、703及704,第一闭运算单元1201对第一二值化图像进行闭运算,并去除每一个编码特征点的外围区域,得到第二二值化图像,第一确定单元1202确定第二二值化图像中的颜色为黑色的中心区域的位置信息,因为只能对颜色为黑色的中心区域进行闭运算,所以为了确定第一二值化图像中的颜色为白色的中心区域的位置信息,第二闭运算单元1203首先将第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,第二闭运算单元1203去除每一个编码特征点的外围区域,得到第三二值化图像,确定第三二值化图像中的颜色为黑色的中心区域的位置信息,第三二值化图像中的颜色为黑色的中心区域的位置信息即为第一二值化图像中的颜色为白色的中心区域的位置信息,第二确定单元1204从而确定了第一二值化图像中的所有中心区域的位置信息。In the embodiment of the present invention, each of the coded feature points includes four peripheral regions. Referring to FIG. 7, the four peripheral regions are respectively 701, 702, 703, and 704, and the first closed operation unit 1201 pairs the first binarized image. Performing a closing operation and removing the peripheral region of each of the encoded feature points to obtain a second binarized image, and the first determining unit 1202 determines the position information of the central region of the black color in the second binarized image, because only The central region of the black color is closed, so in order to determine the position information of the central region in which the color in the first binarized image is white, the second closing operation unit 1203 firstly sets each of the first binarized images. The pixel performs black and white inversion processing, and performs a closing operation on the first binarized image subjected to the black and white inversion processing, and the second closing unit 1203 removes the peripheral region of each of the encoded feature points to obtain a third binarized image. Determining position information of a central region in which the color in the third binarized image is black, and the position information of the central region in which the color in the third binarized image is black is the first binary value The color in the image is the position information of the white central region, and the second determining unit 1204 thus determines the position information of all the central regions in the first binarized image.

第二确定模块1005,用于基于第一二值化图像及每一个中心区域的位置信息确定每一个编码特征点的编码值,并利用编码值进行三维图像重建。The second determining module 1005 is configured to determine an encoding value of each coding feature point based on the first binarized image and position information of each central region, and perform three-dimensional image reconstruction using the encoded value.

进一步地,请参阅图13,图13为第二确定模块1005的细化功能模块示意图,包括:Further, please refer to FIG. 13, which is a schematic diagram of the refinement function module of the second determining module 1005, including:

第三确定单元1301,用于基于第一二值化图像及当前中心区域的位置信息确定与当前中心区域的颜色相同的4个邻近中心区域;The third determining unit 1301 is configured to determine, according to the first binarized image and the location information of the current central region, four adjacent central regions that are the same color as the current central region;

连接单元1302,用于连接当前中心区域及4个邻近中心区域,得到连线上的4个外围区域;The connecting unit 1302 is configured to connect the current central area and the four adjacent central areas to obtain four peripheral areas on the connecting line;

计算单元1303,用于计算4个外围区域的灰度值,将4个外围区域的灰度值作为当前中心区域所对应的编码特征点的编码值。The calculating unit 1303 is configured to calculate grayscale values of the four peripheral regions, and use the grayscale values of the four peripheral regions as the encoded values of the encoded feature points corresponding to the current central region.

在本发明实施例中,请参阅图9,当前中心区域为901,第三确定单元1301基于第一二值化图像及当前中心区域901的位置信息确定与当前中心区域的颜色相同的4个邻近中心区域分别为902、903、904及905,连接单元1302连接当前中心区域及4个邻近中心区域,得到连线上的4个外围区域,4个外围区域为906、907、908及909,计算单元1303计算4个外围区域的灰度值,如图9中,906的颜色为黑色,则906的灰度值为1,907的颜色为白色,则907的灰度值为0,908的颜色为白色,则908的灰度值为0,909的颜色为白色,则909的灰度值为0,将4个外围区域的灰度值1、0、0、0作为当前中心区域所对应的编码特征点的编码值,即当前中心区域所对应的编码特征点的编码值为1、0、0、0。In the embodiment of the present invention, referring to FIG. 9, the current central area is 901, and the third determining unit 1301 determines four neighbors having the same color as the current central area based on the first binarized image and the position information of the current central area 901. The central areas are 902, 903, 904 and 905, respectively. The connecting unit 1302 connects the current central area and the four adjacent central areas, and obtains four peripheral areas on the connecting line, and the four peripheral areas are 906, 907, 908 and 909, and the calculation is performed. The unit 1303 calculates the gradation values of the four peripheral regions. As shown in FIG. 9, the color of 906 is black, the gradation value of 906 is 1, and the color of 907 is white, and the gradation value of 907 is 0, 908. If it is white, the gradation value of 908 is 0, the color of 909 is white, and the gradation value of 909 is 0, and the gradation values 1, 0, 0, and 0 of the four peripheral regions are taken as the current central region. The coded value of the coded feature point, that is, the coded value of the coded feature point corresponding to the current central region is 1, 0, 0, 0.

在本发明实施例中,与现有技术相比,本发明实施例基于DeBruijn序列进行编码,能够有效的避免编码的奇异性,将编码后得到的编码模板图像投影到物体表面后进行图像采集,得到编码图像,对编码图像进行二值化处理,其中,利用二值化处理可以克服物体表面的颜色干扰,三维图像的重建时具有更高的抗噪能力和较好的鲁棒性。In the embodiment of the present invention, compared with the prior art, the embodiment of the present invention performs encoding based on the DeBruijn sequence, which can effectively avoid the singularity of the encoding, and image the encoded template image obtained by encoding onto the surface of the object for image acquisition. The coded image is obtained, and the coded image is binarized. Among them, the binarization process can overcome the color interference of the surface of the object, and the reconstruction of the three-dimensional image has higher anti-noise ability and better robustness.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be another division manner, for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only)                 Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are all focused, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.

以上为对本发明所提供的一种基于DeBruijn序列的三维图像重建方法及装置的描述,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a method and an apparatus for reconstructing a three-dimensional image based on the DeBruijn sequence provided by the present invention. For those skilled in the art, the idea of the embodiment of the present invention may be changed in the specific implementation manner and the application range. In conclusion, the contents of this specification are not to be construed as limiting the invention.

Claims (8)

一种基于DeBruijn序列的三维图像重建方法,其特征在于,所述方法包括:
利用位移寄存器生成4元2级DeBruijn序列;
对所述DeBruijn序列进行二进制转换处理得到二进制序列,并将所述二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;
将所述编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对所述编码图像进行二值化处理,得到第一二值化图像,其中,所述第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;
基于所述第一二值化图像确定每一个编码特征点的中心区域的位置信息;
基于所述第一二值化图像及所述每一个中心区域的位置信息确定所述每一个编码特征点的编码值,并利用所述编码值进行三维图像重建。
A three-dimensional image reconstruction method based on DeBruijn sequence, characterized in that the method comprises:
Using a shift register to generate a 4-ary 2-level DeBruijn sequence;
Performing a binary conversion process on the DeBruijn sequence to obtain a binary sequence, and sequentially filling the binary sequence in a gray area in a preset template image to obtain a coded template image;
After the image of the coded template is projected onto the surface of the object, image acquisition is performed, and a coded image including the coded template image information and the object information is obtained, and the coded image is binarized to obtain a first binarized image, wherein The first binarized image includes a plurality of coded feature points, each coded feature point including a central region;
Determining position information of a central region of each of the encoded feature points based on the first binarized image;
And determining, according to the first binarized image and the position information of each of the central regions, an encoded value of each of the encoded feature points, and performing three-dimensional image reconstruction using the encoded value.
根据权利要求1所述的方法,其特征在于,所述对所述DeBruijn序列进行二进制转换处理得到二进制序列的步骤包括:
将所述DeBruijn序列中的每一个码字转换成上下分布的二进制数,并排列成上下两行;
将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到所述二进制序列。
The method according to claim 1, wherein the step of performing binary conversion processing on the DeBruijn sequence to obtain a binary sequence comprises:
Converting each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arranging the upper and lower two rows;
The binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows are up-and-down shifted to obtain the binary sequence.
根据权利要求1所述的方法,其特征在于,每一个编码特征点包括4个外围区域,所述基于所述第一二值化图像确定每一个编码特征点的中心区域的位置信息的步骤包括:
对所述第一二值化图像进行闭运算,并去除所述每一个编码特征点的外围区域,得到第二二值化图像;
确定所述第二二值化图像中的颜色为黑色的中心区域的位置信息;
将所述第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,去除所述每一个编码特征点的外围区域,得到第三二值化图像;
确定所述第三二值化图像中的颜色为黑色的中心区域的位置信息。
The method according to claim 1, wherein each of the coded feature points includes four peripheral regions, and the step of determining location information of a central region of each of the coded feature points based on the first binarized image includes :
Performing a closing operation on the first binarized image, and removing a peripheral region of each of the encoded feature points to obtain a second binarized image;
Determining position information of a central region in which the color in the second binarized image is black;
And performing black and white inversion processing on each of the first binarized images, and performing a closing operation on the first binarized image subjected to the black and white inversion processing to remove a peripheral region of each of the encoded feature points , obtaining a third binarized image;
The position information of the central region in which the color in the third binarized image is black is determined.
根据权利要求3所述的方法,其特征在于,所述基于所述第一二值化图像及所述每一个中心区域的位置信息确定所述每一个编码特征点的编码值的步骤包括:
基于所述第一二值化图像及当前中心区域的位置信息确定与所述当前中心区域的颜色相同的4个邻近中心区域;
连接所述当前中心区域及所述4个邻近中心区域,得到连线上的4个外围区域;
计算所述4个外围区域的灰度值,将所述4个外围区域的灰度值作为所述当前中心区域所对应的编码特征点的编码值。
The method according to claim 3, wherein the determining the encoded value of each of the encoded feature points based on the first binarized image and the location information of each of the central regions comprises:
Determining four adjacent central regions having the same color as the current central region based on the first binarized image and position information of the current central region;
Connecting the current central area and the four adjacent central areas to obtain four peripheral areas on the connection line;
Calculating gray values of the four peripheral regions, and using the gray values of the four peripheral regions as the encoded values of the encoded feature points corresponding to the current central region.
一种基于DeBruijn序列的三维图像重建装置,其特征在于,所述装置包括:
生成模块,用于利用位移寄存器生成4元2级DeBruijn序列;
转换模块,用于对所述DeBruijn序列进行二进制转换处理得到二进制序列,并将所述二进制序列按顺序依次填充于预设模板图像中的灰色区域中,得到编码模板图像;
采集模块,用于将所述编码模板图像投影到物体表面后进行图像采集,得到包含编码模板图像信息和物体信息的编码图像,对所述编码图像进行二值化处理,得到第一二值化图像,其中,所述第一二值化图像包括若干编码特征点,每一个编码特征点包括一个中心区域;
第一确定模块,用于基于所述第一二值化图像确定每一个编码特征点的中心区域的位置信息;
第二确定模块,用于基于所述第一二值化图像及所述每一个中心区域的位置信息确定所述每一个编码特征点的编码值,并利用所述编码值进行三维图像重建。
A three-dimensional image reconstruction device based on a DeBruijn sequence, characterized in that the device comprises:
Generating a module for generating a 4-ary 2-level DeBruijn sequence by using a shift register;
a conversion module, configured to perform binary conversion processing on the DeBruijn sequence to obtain a binary sequence, and sequentially fill the binary sequence in a gray area in a preset template image to obtain a coded template image;
An acquisition module, configured to perform image acquisition after projecting the code template image onto an object surface, obtain a coded image including coded template image information and object information, and perform binarization processing on the coded image to obtain a first binarization An image, wherein the first binarized image comprises a plurality of coded feature points, each coded feature point comprising a central region;
a first determining module, configured to determine location information of a central area of each of the encoded feature points based on the first binarized image;
And a second determining module, configured to determine, according to the first binarized image and location information of each of the central regions, an encoded value of each of the encoded feature points, and perform three-dimensional image reconstruction by using the encoded value.
根据权利要求5所述的装置,其特征在于,所述转换模块包括:
转换单元,用于将所述DeBruijn序列中的每一个码字转换成上下分布的二进制数,并排列成上下两行;
置换单元,用于将排列成上下两行的所有二进制数中的偶数列的二进制数进行上下位置换,得到所述二进制序列。
The apparatus according to claim 5, wherein the conversion module comprises:
a converting unit, configured to convert each codeword in the DeBruijn sequence into binary numbers distributed up and down, and arranged in two rows;
And a permutation unit, configured to perform upper and lower positional replacement of the binary numbers of the even columns of all the binary numbers arranged in the upper and lower two rows to obtain the binary sequence.
根据权利要求5所述的装置,其特征在于,每一个编码特征点包括4个外围区域,所述第一确定模块包括:
第一闭运算单元,用于对所述第一二值化图像进行闭运算,并去除所述每一个编码特征点的外围区域,得到第二二值化图像;
第一确定单元,用于确定所述第二二值化图像中的颜色为黑色的中心区域的位置信息;
第二闭运算单元,用于将所述第一二值化图像中的每一个像素进行黑白反转处理,并对进行黑白反转处理后的第一二值化图像进行闭运算,去除所述每一个编码特征点的外围区域,得到第三二值化图像;
第二确定单元,用于确定所述第三二值化图像中的颜色为黑色的中心区域的位置信息。
The apparatus according to claim 5, wherein each of the coded feature points comprises four peripheral regions, and the first determining module comprises:
a first closed operation unit, configured to perform a closing operation on the first binarized image, and remove a peripheral region of each of the encoded feature points to obtain a second binarized image;
a first determining unit, configured to determine location information of a central area in which the color in the second binarized image is black;
a second closing operation unit configured to perform black and white inversion processing on each of the first binarized images, and perform a closing operation on the first binarized image subjected to the black and white inversion processing to remove the a third binarized image is obtained for each peripheral region of the encoded feature point;
And a second determining unit, configured to determine position information of a central area in which the color in the third binarized image is black.
根据权利要求7所述的装置,其特征在于,所述第二确定模块包括:
第三确定单元,用于基于所述第一二值化图像及当前中心区域的位置信息确定与所述当前中心区域的颜色相同的4个邻近中心区域;
连接单元,用于连接所述当前中心区域及所述4个邻近中心区域,得到连线上的4个外围区域;
计算单元,用于计算所述4个外围区域的灰度值,将所述4个外围区域的灰度值作为所述当前中心区域所对应的编码特征点的编码值。
The apparatus according to claim 7, wherein the second determining module comprises:
a third determining unit, configured to determine, according to the first binarized image and location information of the current central region, four adjacent central regions that are the same color as the current central region;
a connecting unit, configured to connect the current central area and the four adjacent central areas to obtain four peripheral areas on the connecting line;
And a calculating unit, configured to calculate a gray value of the four peripheral regions, and use a gray value of the four peripheral regions as an encoded value of the encoded feature point corresponding to the current central region.
PCT/CN2017/107277 2017-04-28 2017-10-23 Three-dimensional image reconstruction method and apparatus based on debruijn sequence Ceased WO2018196304A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710293917.9 2017-04-28
CN201710293917.9A CN107240135B (en) 2017-04-28 2017-04-28 Three-dimensional image reconstruction method and device based on DeBruijn sequence

Publications (2)

Publication Number Publication Date
WO2018196304A1 true WO2018196304A1 (en) 2018-11-01
WO2018196304A9 WO2018196304A9 (en) 2018-12-27

Family

ID=59984219

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107277 Ceased WO2018196304A1 (en) 2017-04-28 2017-10-23 Three-dimensional image reconstruction method and apparatus based on debruijn sequence

Country Status (2)

Country Link
CN (1) CN107240135B (en)
WO (1) WO2018196304A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240135B (en) * 2017-04-28 2020-07-10 深圳大学 Three-dimensional image reconstruction method and device based on DeBruijn sequence
CN110288673B (en) * 2019-05-08 2023-01-31 深圳大学 Method and system for mapping instruction sequences into images

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103400366A (en) * 2013-07-03 2013-11-20 西安电子科技大学 Method for acquiring dynamic scene depth based on fringe structure light
CN103776392A (en) * 2006-11-21 2014-05-07 曼蒂斯影像有限公司 3D geometric modeling and 3d video content creation
CN105069789A (en) * 2015-08-05 2015-11-18 西安电子科技大学 Structured light dynamic scene depth acquiring method based on encoding network template
CN105357511A (en) * 2015-12-08 2016-02-24 上海图漾信息科技有限公司 Depth data detection system
CN107240135A (en) * 2017-04-28 2017-10-10 深圳大学 Three-dimensional image reconstruction method and device based on DeBruijn sequences

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838428A (en) * 1997-02-28 1998-11-17 United States Of America As Represented By The Secretary Of The Navy System and method for high resolution range imaging with split light source and pattern mask
BR9812246A (en) * 1997-09-18 2000-07-18 Nokia Mobile Phones Ltd Time diversity in tdma system
KR20020058608A (en) * 2000-12-30 2002-07-12 오길록 A Blending Method In Imposing Continuity Between B-Spline Curves/Surfaces
US9030470B2 (en) * 2012-08-14 2015-05-12 Hong Kong Applied Science and Technology Research Institute Company Limited Method and system for rapid three-dimensional shape measurement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103776392A (en) * 2006-11-21 2014-05-07 曼蒂斯影像有限公司 3D geometric modeling and 3d video content creation
CN103400366A (en) * 2013-07-03 2013-11-20 西安电子科技大学 Method for acquiring dynamic scene depth based on fringe structure light
CN105069789A (en) * 2015-08-05 2015-11-18 西安电子科技大学 Structured light dynamic scene depth acquiring method based on encoding network template
CN105357511A (en) * 2015-12-08 2016-02-24 上海图漾信息科技有限公司 Depth data detection system
CN107240135A (en) * 2017-04-28 2017-10-10 深圳大学 Three-dimensional image reconstruction method and device based on DeBruijn sequences

Also Published As

Publication number Publication date
WO2018196304A9 (en) 2018-12-27
CN107240135A (en) 2017-10-10
CN107240135B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
JP7276697B2 (en) Point cloud geometry padding
CN103237216B (en) The decoding method and coding and decoding device of depth image
CN109410123B (en) Deep learning-based mosaic removing method and device and electronic equipment
JP2009166474A5 (en)
JP2018520428A (en) Image processing method and apparatus
CN101388950B (en) Content adaptive contrast enhancement method and apparatus for digital images
CN104718755A (en) Method, program, and device for reducing data volume of multiple images containing mutually similar information, and data structure representing multiple images containing mutually similar information
JP2017130751A5 (en)
CN113066027A (en) Screen shot image moire removing method facing Raw domain
WO2018196304A1 (en) Three-dimensional image reconstruction method and apparatus based on debruijn sequence
CN114742911A (en) Image compressed sensing reconstruction method, system, equipment and medium
CN116579957A (en) Image processing method, terminal device and computer storage medium
CN108259908A (en) For coding and decoding the method and apparatus of pixel list
CN115345994A (en) Three-dimensional reconstruction method, device and system
CN115641260A (en) Image processing method, module, device, storage medium and program product
CN114463450A (en) Computer image compression method and system based on artificial intelligence
JP3637993B2 (en) Image encoding apparatus and image decoding apparatus
US11727536B2 (en) Method and apparatus for geometric smoothing
CN114612317A (en) Secret image sharing method and system for resisting mean filtering
Kouge et al. Accelerating digital halftoning using the local exhaustive search on the GPU
JP2021180417A (en) Coding device, coding method, and program
CN113382243B (en) Image compression method, device, electronic equipment and storage medium
JP2009135564A (en) Image processor, image processing method, and program
JP3793105B2 (en) Image signal digitizing method, image signal restoring method, image signal encoding method, image signal decoding method, image signal digitizing program and recording medium recording the program, image signal restoring program and program recording the same Recording medium, image signal encoding program and recording medium recording the program, image signal decoding program and recording medium recording the program
JP2001045287A5 (en)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17908031

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04.02.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17908031

Country of ref document: EP

Kind code of ref document: A1