TWI627604B - System and method for generating depth map using differential patterns - Google Patents

System and method for generating depth map using differential patterns Download PDF

Info

Publication number
TWI627604B
TWI627604B TW105131004A TW105131004A TWI627604B TW I627604 B TWI627604 B TW I627604B TW 105131004 A TW105131004 A TW 105131004A TW 105131004 A TW105131004 A TW 105131004A TW I627604 B TWI627604 B TW I627604B
Authority
TW
Taiwan
Prior art keywords
reliability
map
depth map
pattern
pixel
Prior art date
Application number
TW105131004A
Other languages
Chinese (zh)
Other versions
TW201814654A (en
Inventor
張婷婷
廖超康
Original Assignee
台灣愛美科股份有限公司
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 台灣愛美科股份有限公司 filed Critical 台灣愛美科股份有限公司
Priority to TW105131004A priority Critical patent/TWI627604B/en
Publication of TW201814654A publication Critical patent/TW201814654A/en
Application granted granted Critical
Publication of TWI627604B publication Critical patent/TWI627604B/en

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)

Abstract

本發明揭示一種產生一深度圖之方法。該方法包含回應於與一第一紋理化圖案相關的一第一對影像產生一第一候選深度圖;回應於與一第二紋理化圖案相關的一第二對影像產生一第二候選深度圖,該第二紋理化圖案與該第一紋理化圖案不同;判定在該第一候選深度圖與該第二候選深度圖的一相同位置之像素中比另一像素更可靠的一像素;及基於該一像素產生一深度圖。 A method of generating a depth map is disclosed. The method includes generating a first candidate depth map in response to a first pair of images associated with a first textured pattern; generating a second candidate depth map in response to a second pair of images associated with a second textured pattern The second texture pattern is different from the first texture pattern; determining a pixel that is more reliable than another pixel in the pixel of the first candidate depth map and the second candidate depth map; and based on The one pixel produces a depth map.

Description

利用差異化圖案產生深度圖的系統及方法 System and method for generating depth map by using differentiated pattern

本發明係關於一種利用差異化圖案產生深度圖的系統及方法。 The present invention relates to a system and method for generating a depth map using a differentiated pattern.

視差估測或深度提取為多年來受關注之主題。視差或深度代表物體與測量裝置之間的距離。為了提取場景中物體的深度資訊,立體匹配被用來估測從平行攝像機所擷取之一對立體影像或視頻中對應像素之間的視差距離。立體匹配有許多應用,諸如三維(three-dimensional,3D)手勢辨識、機器人成像、載具產業、視角合成、及立體電視(television,TV)。雖然立體匹配具有諸多有利特徵且已廣泛使用,但仍有許多限制。例如,若物體無紋理,則可能難以獲得緻密且高品質深度圖。立體匹配可找出兩個影像以上之間的對應點並計算3D深度資訊。當場景中的紋理度較低或呈重複,立體匹配於獲取精確深度便有困難。結果,無紋理之表面無法予以妥善立體匹配。 Parallax estimation or deep extraction is the subject of many years of attention. Parallax or depth represents the distance between the object and the measuring device. In order to extract depth information of objects in the scene, stereo matching is used to estimate the parallax distance between one of the stereo images or the corresponding pixels in the video captured from the parallel cameras. Stereo matching has many applications, such as three-dimensional (3D) gesture recognition, robot imaging, vehicle industry, perspective synthesis, and television (television, TV). Although stereo matching has many advantageous features and has been widely used, there are still many limitations. For example, if the object is untextured, it may be difficult to obtain a dense and high quality depth map. Stereo matching finds the corresponding points between the two images and calculates the 3D depth information. When the texture in the scene is low or repeating, stereo matching is difficult to obtain accurate depth. As a result, the untextured surface cannot be properly stereo-matched.

本發明係針對一種成像系統及方法,其用以藉由差異化之結構化光及信賴度圖產生一深度圖。 The present invention is directed to an imaging system and method for generating a depth map by differentiating structured light and reliability maps.

根據本發明的實施例提供一種成像系統,其包括一候選深度圖產生模 組、一信賴度判定模組、及一深度圖形成模組。該候選深度圖產生模組係用以回應於與一第一紋理化圖案相關的一第一對影像產生一第一候選深度圖,並回應於與一第二紋理化圖案相關的一第二對影像產生一第二候選深度圖,該第二紋理化圖案與該第一紋理化圖案不同。該信賴度判定模組係用以判定在該第一候選深度圖與該第二候選深度圖的一相同位置之像素中比另一像素更可靠的一像素。該深度圖形成模組係用以基於該一像素產生一深度圖。 An imaging system including a candidate depth map generation module is provided in accordance with an embodiment of the present invention. A group, a reliability determination module, and a depth map forming module. The candidate depth map generating module is configured to generate a first candidate depth map in response to a first pair of images associated with a first textured pattern, and in response to a second pair associated with a second textured pattern The image produces a second candidate depth map that is different from the first textured pattern. The reliability determination module is configured to determine a pixel that is more reliable than another pixel in the pixel of the first candidate depth map and the second candidate depth map. The depth map forming module is configured to generate a depth map based on the one pixel.

在一實施例中,該信賴度判定模組包括一信賴度計算模組,用以產生一第一信賴度圖,並產生一第二信賴度圖,該第一信賴度圖包括關於在該第一候選深度圖中像素之可靠性的資訊,及該第二信賴度圖包括關於在該第二候選深度圖中像素之可靠性的資訊。 In an embodiment, the reliability determination module includes a reliability calculation module for generating a first reliability map and generating a second reliability map, wherein the first reliability map includes Information about the reliability of the pixels in a candidate depth map, and the second reliability map includes information about the reliability of the pixels in the second candidate depth map.

在另一實施例中,該信賴度判定模組包括一信賴度比較模組,用以比較該第一信賴度圖與該第二信賴度圖,以識別該更可靠像素。 In another embodiment, the reliability determination module includes a reliability comparison module for comparing the first reliability map with the second reliability map to identify the more reliable pixels.

在又一實施例中,該第一紋理化圖案具有相對於該第二紋理化圖案的一平移位移。 In yet another embodiment, the first texturing pattern has a translational displacement relative to the second texturing pattern.

在再一實施例中,該第一紋理化圖案具有相對於該第二紋理化圖案的一角位移。 In still another embodiment, the first texturing pattern has an angular displacement relative to the second texturing pattern.

在又另一實施例中,該第一紋理化圖案涉及與該第二紋理化圖案不同的一圖案。 In yet another embodiment, the first texturing pattern relates to a different pattern than the second texturing pattern.

根據本發明的一些實施例提供一種產生一深度圖之方法。根據該方法,第一結構化光係投射到一物體上。再者,與該第一結構化光相關的一第一候選深度圖被產生,且一第一信賴度圖被產生,該第一信賴度圖包括關於在該第一候選深度圖的一第一位置的一第一像素之信賴度值的資訊。此 外,第二結構化光係投射到該物體上,其中該第二結構化光生產與該第一紋理化光不同的一紋理化圖案。再者,與該第二結構化光相關的一第二候選深度圖被產生,且一第二信賴度圖被產生,該第二信賴度圖包括關於在該第二候選深度圖的一第二位置的一第二像素之信賴度值的資訊,其中該第二候選深度圖中的該第二位置係與該第一候選深度圖中的該第一位置相同。後續,具有一較大信賴度值之該第一像素與該第二像素中之一者被判定成一第三像素。接著,使用該第三像素,一深度圖被產生。 Some embodiments in accordance with the present invention provide a method of generating a depth map. According to the method, the first structured light system is projected onto an object. Furthermore, a first candidate depth map associated with the first structured light is generated, and a first reliability map is generated, the first reliability map including a first one in the first candidate depth map Information on the reliability value of a first pixel of the location. this Additionally, a second structured light system is projected onto the object, wherein the second structured light produces a textured pattern that is different from the first textured light. Furthermore, a second candidate depth map associated with the second structured light is generated, and a second reliability map is generated, the second reliability map including a second in the second candidate depth map Information of a reliability value of a second pixel of the location, wherein the second location in the second candidate depth map is the same as the first location in the first candidate depth map. Subsequently, one of the first pixel and the second pixel having a large reliability value is determined to be a third pixel. Then, using the third pixel, a depth map is generated.

根據本發明的實施例也提供一種產生一深度圖之方法。根據該方法,基於一第一紋理化圖案,第一像素的一第一深度圖被產生及一第一信賴度圖被產生,該第一信賴度圖包括關於該第一像素之可靠性的資訊。再者,基於一第二紋理化圖案,第二像素的一第二深度圖被產生及一第二信賴度圖被產生,該第二信賴度圖包括關於該第二像素之可靠性的資訊。又者,基於一第三紋理化圖案,第三像素的一第三深度圖被產生及一第三信賴度圖被產生,該第三信賴度圖包括關於該第三像素之可靠性的資訊。後續,藉由比較該第一信賴度圖、該第二信賴度圖與該第三信賴度圖,在該第一信賴度圖、該第二信賴度圖與該第三信賴度圖的一相同位置之該第一像素、該第二像素與第三像素中更可靠的一像素被識別出,及使用該一像素,一深度圖被產生。 A method of generating a depth map is also provided in accordance with an embodiment of the present invention. According to the method, a first depth map of the first pixel is generated and a first reliability map is generated based on a first texture pattern, the first reliability map including information about the reliability of the first pixel . Moreover, based on a second texturing pattern, a second depth map of the second pixel is generated and a second reliability map is generated, the second reliability map including information about the reliability of the second pixel. Moreover, based on a third texturing pattern, a third depth map of the third pixel is generated and a third reliability map is generated, the third reliability map including information about the reliability of the third pixel. Subsequently, by comparing the first reliability map, the second reliability map, and the third reliability map, the first reliability map, the second reliability map, and the third reliability map are the same A more reliable one of the first pixel, the second pixel, and the third pixel is identified, and a depth map is generated using the pixel.

前文廣泛地概述本發明的特徵及技術優點,以使後續之本發明詳細說明能更好理解。將於後文中描述本發明的額外特徵及優點,並形成本發明之申請專利範圍的標的。所屬技術領域中具有通常知識者應了解,為了實現本發明之相同目的,可輕易地利用所揭示之概念及特定實施例作為用以修改或設計其它結構或製程之基礎。所屬技術領域中具有通常知識者也應 理解,此等均等架構不悖離如所附申請專利範圍中陳述之本發明的精神及範疇。 The features and technical advantages of the present invention are broadly described in the foregoing, so that the detailed description of the invention will be understood. Additional features and advantages of the invention will be set forth in the description of the appended claims. It is to be understood by those of ordinary skill in the art that the present invention may be utilized as a basis for the modification or design of other structures or processes. Those with ordinary knowledge in the technical field should also It is to be understood that the equivalents are not to be construed as being limited to the spirit and scope of the invention as set forth in the appended claims.

100‧‧‧系統 100‧‧‧ system

10‧‧‧攝像機與投影器總成 10‧‧‧Camera and projector assembly

11‧‧‧立體攝像機 11‧‧‧ Stereo camera

11L‧‧‧感測器或攝像機 11L‧‧‧Sensor or camera

11R‧‧‧感測器或攝像機 11R‧‧‧Sensor or camera

12‧‧‧投影器 12‧‧‧Projector

14‧‧‧一對原始影像 14‧‧‧A pair of original images

15‧‧‧校正與矯正模組 15‧‧‧Correction and correction module

16‧‧‧成像系統 16‧‧‧ imaging system

18‧‧‧深度圖 18‧‧‧Depth map

28‧‧‧物體 28‧‧‧ objects

48‧‧‧交叉檢查模組 48‧‧‧ cross check module

71‧‧‧操作 71‧‧‧ operation

72‧‧‧操作 72‧‧‧ operations

73‧‧‧操作 73‧‧‧ operations

74‧‧‧操作 74‧‧‧ operations

75‧‧‧操作 75‧‧‧ operation

76‧‧‧操作 76‧‧‧ operations

77‧‧‧操作 77‧‧‧ operations

78‧‧‧操作 78‧‧‧Operation

81‧‧‧操作 81‧‧‧ operation

82‧‧‧操作 82‧‧‧ operations

83‧‧‧操作 83‧‧‧ operation

84‧‧‧操作 84‧‧‧ operation

85‧‧‧操作 85‧‧‧ operation

86‧‧‧操作 86‧‧‧ operation

87‧‧‧操作 87‧‧‧ operation

88‧‧‧操作 88‧‧‧ operation

91‧‧‧第一影像 91‧‧‧First image

92‧‧‧第二影像 92‧‧‧Second image

95‧‧‧(候選)深度圖 95‧‧‧ (candidate) depth map

97‧‧‧信賴度圖 97‧‧‧reliability map

102‧‧‧操作 102‧‧‧ operation

104‧‧‧操作 104‧‧‧Operation

106‧‧‧操作 106‧‧‧ operation

108‧‧‧操作 108‧‧‧ operation

110‧‧‧操作 110‧‧‧ operation

112‧‧‧操作 112‧‧‧ operation

151‧‧‧第一影像 151‧‧‧ first image

152‧‧‧第二影像 152‧‧‧second image

162‧‧‧候選深度圖產生模組 162‧‧‧ candidate depth map generation module

165‧‧‧信賴度判定模組 165‧‧‧reliability determination module

168‧‧‧深度圖形成模組 168‧‧‧Deep map forming module

280‧‧‧深度圖 280‧‧Deep map

281‧‧‧第一候選深度圖 281‧‧‧First candidate depth map

282‧‧‧第二候選深度圖 282‧‧‧Second candidate depth map

401‧‧‧第一普查轉換模組 401‧‧‧ first census conversion module

402‧‧‧第二普查轉換模組 402‧‧‧Second census conversion module

411‧‧‧第一代價計算與加總模組 411‧‧‧First Cost Calculation and Addition Module

412‧‧‧第二代價計算與加總模組 412‧‧‧ Second Cost Calculation and Addition Module

421‧‧‧第一代價加總模組 421‧‧‧First Cost Addition Module

422‧‧‧第二代價加總模組 422‧‧‧Second cost plus module

431‧‧‧第一視差計算模組 431‧‧‧First parallax calculation module

432‧‧‧第二視差計算模組 432‧‧‧Second Parallax Calculation Module

451‧‧‧第一贏者全取模組 451‧‧‧The first winner is the full module

452‧‧‧第二贏者全取模組 452‧‧‧Second winners take all modules

461‧‧‧信賴度計算模組 461‧‧‧reliability calculation module

462‧‧‧信賴度比較模組 462‧‧‧Reliability comparison module

471‧‧‧信賴度計算模組 471‧‧‧Reliability calculation module

472‧‧‧信賴度比較模組 472‧‧‧Reliability comparison module

481‧‧‧交叉檢查模組 481‧‧‧ cross check module

48‧‧‧交叉檢查模組 48‧‧‧ cross check module

P1‧‧‧第一圖案 P1‧‧‧ first pattern

P2‧‧‧第二圖案 P2‧‧‧ second pattern

C1‧‧‧第一位置 C1‧‧‧ first position

C2‧‧‧第二位置 C2‧‧‧second position

C‧‧‧相同位置 C‧‧‧ same location

本發明之目的及優點於閱讀下文說明及參考隨附圖式後更形彰顯,其中:圖1係根據本發明實施例之用以產生深度圖之系統的塊狀圖;圖2係根據本發明實施例之圖1所顯示攝像機與投影器總成的示意圖;圖3係根據本發明實施例繪示藉由使用差異化光圖案來產生深度圖之概念模型的示意圖;圖4A係根據本發明實施例之圖1所顯示成像系統的塊狀圖;圖4B係根據本發明另一實施例之圖1所顯示成像系統的塊狀圖;圖5A係結構化光之例示性圖案的示意圖;圖5B與5C係根據本發明一些實施例之差異化圖案相對於圖5A中所繪示例示性圖案的示意圖;圖6A係另一例示性圖案的示意圖;圖6B係根據本發明一些實施例之差異化圖案相對於圖6A中所繪示例示性圖案的示意圖;圖7係根據本發明實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖;圖8係根據本發明另一實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖;圖9係根據本發明另一實施例繪示藉由使用差異化圖案來產生深度圖之概念模型的示意圖;及 圖10係根據本發明再一實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖。 BRIEF DESCRIPTION OF THE DRAWINGS The present invention is further described with reference to the accompanying drawings in which: FIG. 1 is a block diagram of a system for generating a depth map in accordance with an embodiment of the present invention; 1 is a schematic diagram of a camera and projector assembly shown in FIG. 1; FIG. 3 is a schematic diagram showing a conceptual model for generating a depth map by using a differentiated light pattern according to an embodiment of the present invention; FIG. 4A is implemented according to the present invention. 1B is a block diagram of the imaging system shown in FIG. 1; FIG. 5B is a block diagram of the imaging system shown in FIG. 1 according to another embodiment of the present invention; FIG. 5A is a schematic diagram of an exemplary pattern of structured light; 5C is a schematic diagram of a differentiated pattern according to some embodiments of the present invention with respect to the exemplary pattern depicted in FIG. 5A; FIG. 6A is a schematic diagram of another exemplary pattern; FIG. 6B is a differential according to some embodiments of the present invention. A schematic diagram of a pattern relative to the exemplary pattern depicted in FIG. 6A; FIG. 7 is a flow chart illustrating a method of generating a depth map by using a differentiated pattern, in accordance with an embodiment of the present invention; FIG. 8 is another embodiment in accordance with the present invention. Example illustrates by using the difference pattern to produce a flowchart of a method of depth map; FIG. 9 shows a schematic system by using the difference pattern to produce a depth map of the conceptual model of a further embodiment of the present invention embodiment; and FIG. 10 is a flow chart showing a method of generating a depth map by using a differentiated pattern according to still another embodiment of the present invention.

本發明之實施例如下文說明與圖式所示,其中相似或相同組件係以相似參考符號指明。 The embodiments of the present invention are illustrated in the following description, and the same or similar components are designated by like reference numerals.

圖1係根據本發明實施例之用以產生深度圖之系統100的塊狀圖。參考圖1,系統100包括攝像機與投影器總成10、校正與矯正模組15及成像系統16。 1 is a block diagram of a system 100 for generating a depth map in accordance with an embodiment of the present invention. Referring to FIG. 1, system 100 includes a camera and projector assembly 10, a correction and correction module 15 and an imaging system 16.

攝像機與投影器總成10包括立體攝像機11及投影器12。立體攝像機11從視野中的不同視角擷取場景中物體的一對原始影像。物體可以是低紋理或甚至無紋理。投影器12向物體照明具有圖案之結構化光。具有該圖案,結構化光在物體上提供紋理化圖案並促進系統100產生精確深度圖。結果,攝像機與投影器總成10提供具有紋理化圖案的一對原始影像14給校正與矯正模組15。 The camera and projector assembly 10 includes a stereo camera 11 and a projector 12. The stereo camera 11 captures a pair of original images of objects in the scene from different perspectives in the field of view. Objects can be low or even textureless. The projector 12 illuminates the object with patterned structured light. With this pattern, the structured light provides a textured pattern on the object and facilitates the system 100 to produce a precise depth map. As a result, the camera and projector assembly 10 provides a pair of original images 14 having a textured pattern to the correction and correction module 15.

矯正模組15校正原始影像14以移除透鏡畸變並矯正原始影像14以移除共平面及極錯配,以便包括第一影像151及第二影像152的一對輸出影像可在單一或多個線對線基礎上比對。 The correction module 15 corrects the original image 14 to remove the lens distortion and correct the original image 14 to remove the coplanar and polar mismatches, so that the pair of output images including the first image 151 and the second image 152 can be in single or multiple Line-to-line comparisons are based.

成像系統16包括候選深度圖產生模組162、信賴度判定模組165、及深度圖形成模組168。候選深度圖產生模組162回應於使用第一結構化光獲得的第一對影像產生第一候選深度圖,並回應於使用第二結構化光獲得的第二對影像產生第二候選深度圖。第一結構化光及第二結構化光當投射到物體28上時在物體28上展現差異紋理化圖案。第一候選深度圖及第二候選深度圖之各者在各像素上包括深度資訊,諸如深度值。信賴度判定模組165 判定深度資訊的信賴度(或可靠性)。再者,信賴度判定模組165在第一信賴度圖中的各像素上產生第一信賴度圖,其包括信賴度資訊,諸如信賴度值;並在第二信賴度圖中的各像素上產生第二信賴度圖,其包括信賴度資訊。在第一候選深度圖與第二候選深度圖的相同位置的像素係於信賴度彼此比較。在第一候選深度圖與第二候選深度圖的相同位置之具有較大信賴度值之像素中的一者被識別。深度圖形成模組168藉由使用經識別像素作為在深度圖18中的相同位置之像素來產生深度圖18。 The imaging system 16 includes a candidate depth map generation module 162, a reliability determination module 165, and a depth map formation module 168. The candidate depth map generation module 162 generates a first candidate depth map in response to the first pair of images obtained using the first structured light, and generates a second candidate depth map in response to the second pair of images obtained using the second structured light. The first structured light and the second structured light exhibit a differential textured pattern on the object 28 when projected onto the object 28. Each of the first candidate depth map and the second candidate depth map includes depth information, such as a depth value, on each pixel. Reliability determination module 165 Determine the reliability (or reliability) of the depth information. Furthermore, the reliability determination module 165 generates a first reliability map on each pixel in the first reliability map, which includes reliability information, such as a reliability value, and is displayed on each pixel in the second reliability map. A second reliability map is generated that includes reliability information. The pixels at the same position of the first candidate depth map and the second candidate depth map are compared with each other in reliability. One of the pixels having a larger reliability value at the same position of the first candidate depth map and the second candidate depth map is identified. The depth map forming module 168 generates the depth map 18 by using the identified pixels as pixels at the same position in the depth map 18.

用語"深度圖"係通常用在三維(3D)計算機圖形應用中,以描述含有與從攝像機視角到場景中物體表面的距離有關之資訊的影像。深度圖18提供場景中物體距立體攝像機11的距離資訊。深度圖18係用以實施,例如3D手勢辨識、視角合成、及立體電視演示。 The term "depth map" is commonly used in three-dimensional (3D) computer graphics applications to describe images containing information about the distance from the camera's perspective to the surface of the object in the scene. The depth map 18 provides distance information of the object from the stereo camera 11 in the scene. The depth map 18 is used for implementation, such as 3D gesture recognition, perspective synthesis, and stereoscopic television presentation.

圖2係根據本發明實施例之圖1所顯示攝像機與投影器總成10的示意圖。參考圖2,立體攝像機11包括對準在極線上的兩個感測器或攝像機11L及11R以擷取物體28的一對原始影像或視頻。取決於不同應用,攝像機11L及11R可積體在一個設備中或分開配置。 2 is a schematic illustration of the camera and projector assembly 10 shown in FIG. 1 in accordance with an embodiment of the present invention. Referring to FIG. 2, stereo camera 11 includes two sensors or cameras 11L and 11R aligned on a pole line to capture a pair of original images or video of object 28. Depending on the application, the cameras 11L and 11R can be integrated in one device or separately.

投影器12發射結構化光到投影器12之視野中的物體28上。所發射結構化光具有圖案,圖案可包括條、斑、點、三角形、格線或其它。在本實施例中,攝像機11L及11R係設置在投影器12的共同側上。在另一實施例中,投影器12係設置在攝像機11L與11R之間。又者,攝像機11L,11R及投影器12可如本實施例積體在一個設備中或分開配置以適應不同應用。 Projector 12 emits structured light onto object 28 in the field of view of projector 12. The emitted structured light has a pattern, which may include stripes, spots, dots, triangles, ruled lines, or the like. In the present embodiment, the cameras 11L and 11R are disposed on a common side of the projector 12. In another embodiment, the projector 12 is disposed between the cameras 11L and 11R. Moreover, the cameras 11L, 11R and the projector 12 can be integrated into one device or separately configured as in this embodiment to suit different applications.

在一實施例中,投影器12可包括例如具有700奈米(nm)至3,000nm波長之紅外光雷射,包括具有0.75微米(mm)至1.4mm波長之近紅外光、具有3mm至8mm波長之中波長紅外光、及具有8mm至15mm波長之長波長紅 外光。在另一實施例中,投影器12可包括產生可見光之光源。在再一實施例中,投影器12可包括產生紫外光之光源。再者,投影器12所產生之光不限於任何特定波長,只要光可被攝像機11L及11R偵測。投影器12也可包括繞射光學元件(diffractive optical element,DOE),繞射光學元件接收雷射光並輸出多個經繞射光束。一般,DOE係用以從單一經準直光束提供多個較小光束,諸如數千個較小光束。各較小光束具有單一經準直光束的功率的一小部分且較小且經繞射光束可具有標稱相等強度。 In an embodiment, the projector 12 may include, for example, an infrared light laser having a wavelength of from 700 nanometers (nm) to 3,000 nm, including near-infrared light having a wavelength of 0.75 micrometers (mm) to 1.4 mm, having a wavelength of from 3 mm to 8 mm. Medium wavelength infrared light and long wavelength red with a wavelength of 8mm to 15mm External light. In another embodiment, projector 12 can include a light source that produces visible light. In still another embodiment, projector 12 can include a source of ultraviolet light. Moreover, the light generated by the projector 12 is not limited to any particular wavelength as long as the light can be detected by the cameras 11L and 11R. The projector 12 may also include a diffractive optical element (DOE) that receives the laser light and outputs a plurality of diffracted beams. Typically, DOE is used to provide multiple smaller beams, such as thousands of smaller beams, from a single collimated beam. Each of the smaller beams has a fraction of the power of a single collimated beam and is smaller and the diffracted beams can have a nominally equal intensity.

圖3係根據本發明實施例繪示藉由使用差異結構化光圖案來產生深度圖之概念模型的示意圖。參考圖3,也參考圖2,具有第一圖案P1(以虛線圓顯示)的第一結構化光被投影器12向第一位置C1發射到物體28上。第一位置C1係例如第一圖案P1的地理中心或質心。由第一結構化光所生產之具有第一紋理化圖案之物體28的影像係藉由立體攝像機11拍攝。成像系統16產生第一候選深度圖281及第一信賴度圖。在第一候選深度圖281中,在實質上圍繞第一位置C1之區域(以實線顯示)中之像素係更可能具有較大於在其它區域(以虛線顯示)中之像素的信賴度值並因此它們的深度值係更可靠。 3 is a schematic diagram showing a conceptual model for generating a depth map by using a differential structured light pattern, in accordance with an embodiment of the present invention. Referring to FIG. 3, also referring to FIG. 2, the first structured light having the first pattern P1 (shown in dashed circle) is emitted by the projector 12 onto the object 28 toward the first position C1. The first position C1 is, for example, the geographic center or centroid of the first pattern P1. The image of the object 28 having the first textured pattern produced by the first structured light is captured by the stereo camera 11. Imaging system 16 generates a first candidate depth map 281 and a first reliability map. In the first candidate depth map 281, the pixel system in the region substantially substantially surrounding the first position C1 (shown in solid lines) is more likely to have a greater confidence value than the pixels in other regions (shown in dashed lines) and Therefore their depth values are more reliable.

後續,具有第二圖案P2(以虛線圓顯示)的第二結構化光被投影器12向第二位置C2發射到物體28上。類似地,第二位置C2係第二圖案P2的地理中心或質心。由第二結構化光所生產之具有第二紋理化圖案之物體28的影像係藉由立體攝像機11拍攝。第一紋理化圖案與第二紋理化圖案係彼此不同。於紋理化圖案中之差異係從相對於第一位置C1移動或改變第二位置C2的位置所得,如藉由箭頭顯示。成像系統16產生第二候選深度圖282及第二信賴度圖。相似地,在第二候選深度圖282中,在實質上圍繞第二位置C2之區域(以實線顯示)中之像素係更可能具有較大於在其它區域(以虛線 顯示)中之像素的信賴度值並因此它們的深度值係更可靠。 Subsequently, the second structured light having the second pattern P2 (shown in dashed circle) is emitted by the projector 12 onto the object 28 to the second position C2. Similarly, the second location C2 is the geographic center or centroid of the second pattern P2. The image of the object 28 having the second textured pattern produced by the second structured light is captured by the stereo camera 11. The first textured pattern and the second textured pattern are different from each other. The difference in the textured pattern results from moving or changing the position of the second position C2 relative to the first position C1, as indicated by the arrows. Imaging system 16 generates a second candidate depth map 282 and a second reliability map. Similarly, in the second candidate depth map 282, the pixel system in the region (shown in solid lines) substantially surrounding the second location C2 is more likely to be larger than in other regions (with a dashed line) The confidence values of the pixels in the display are displayed and thus their depth values are more reliable.

藉由跨在第一候選深度圖與第二候選深度圖281與282中之像素比較第一信賴度圖與第二信賴度圖,具有較大於在第一候選深度圖與第二候選深度圖281與282的相同位置之其它者之信賴度值之像素被識別。這些經識別像素,其係根據信賴度值從第一候選深度圖與第二候選深度圖281與282選出,係填入深度圖280中,進而形成深度圖280。由於深度圖280中的各像素表示最大信賴度值,深度圖280係更可靠且因此比第一候選深度圖及第二候選深度圖281及282更精確。 Comparing the first reliability map with the second reliability graph by pixels across the first candidate depth map and the second candidate depth maps 281 and 282, having greater than the first candidate depth map and the second candidate depth map 281 Pixels of the confidence value of the other of the same position as 282 are identified. The identified pixels are selected from the first candidate depth map and the second candidate depth maps 281 and 282 according to the reliability values, and are filled in the depth map 280 to form a depth map 280. Since each pixel in depth map 280 represents a maximum confidence value, depth map 280 is more reliable and therefore more accurate than first candidate depth map and second candidate depth maps 281 and 282.

圖4A係根據本發明實施例之圖1所顯示成像系統16的塊狀圖。參考圖4A,成像系統16包括第一代價計算與加總模組411、第二代價計算與加總模組412、第一視差計算模組431、第二視差計算模組432、信賴度計算模組461、信賴度比較模組462、交叉檢查模組481及深度圖形成模組168。 4A is a block diagram of the imaging system 16 shown in FIG. 1 in accordance with an embodiment of the present invention. Referring to FIG. 4A, the imaging system 16 includes a first cost calculation and summation module 411, a second cost calculation and summation module 412, a first parallax calculation module 431, a second parallax calculation module 432, and a reliability calculation module. The group 461, the reliability comparison module 462, the cross-check module 481, and the depth map forming module 168.

包括第一窗緩衝器(未顯示)之第一代價計算與加總模組411係用以獲得第一影像151的相關度線、計算第一影像151的相關度線的正確匹配代價、及使用第一窗緩衝器加總匹配代價。相似地,包括第二窗緩衝器(未顯示)之第二代價計算與加總模組412係用以獲得第二影像152的相關度線、計算第二影像152的相關度線的正確匹配代價、及使用第二窗緩衝器加總匹配代價。在物體上投射第一紋理化圖案之際,物體的第一影像151及第二影像152被拍攝。 The first cost calculation and summation module 411 including the first window buffer (not shown) is used to obtain the correlation line of the first image 151, calculate the correct matching cost of the correlation line of the first image 151, and use The first window buffer adds the total matching cost. Similarly, the second cost calculation and summation module 412 including the second window buffer (not shown) is used to obtain the correlation line of the second image 152, and the correct matching cost of the correlation line of the second image 152 is calculated. And use the second window buffer to add the total matching cost. When the first textured pattern is projected on the object, the first image 151 and the second image 152 of the object are captured.

於左及右攝像機11L及11R所看見物體的影像位置的差異係在第一視差計算模組431及第二視差計算模組432中計算,分別得到第一視差圖及第二視差圖。基於第一視差圖及第二視差圖,信賴度計算模組461產生與第一紋理化圖案相關的第一信賴度圖。後續,信賴度計算模組461產生與第二紋 理化圖案相關的第二信賴度圖。第一信賴度圖與第二信賴度圖係藉由信賴度比較模組462在像素對像素之基礎上彼此比較,以判定像素的可靠性。 The difference in image positions of the objects seen by the left and right cameras 11L and 11R is calculated by the first parallax calculation module 431 and the second parallax calculation module 432, and the first parallax map and the second parallax map are obtained, respectively. Based on the first disparity map and the second disparity map, the reliability calculation module 461 generates a first reliability map related to the first texturing pattern. Subsequently, the reliability calculation module 461 generates and the second pattern A second reliability map related to physical and chemical patterns. The first reliability map and the second reliability map are compared with each other on the basis of pixel-to-pixel by the reliability comparison module 462 to determine the reliability of the pixel.

另外,交叉檢查模組481係用以交叉檢查第一信賴度圖與第二信賴度圖,以識別第一視差圖與第二視差圖之間的一或多個錯配視差水平。結果,獲得與第一紋理化圖案相關的第一候選深度圖。後續,獲得與第二紋理化圖案相關的第二候選深度圖。深度圖形成模組168基於來自信賴度比較模組462之比較結果與來自交叉模組481之候選深度圖來產生深度圖。 In addition, the cross-check module 481 is configured to cross-check the first reliability map and the second reliability map to identify one or more mismatched parallax levels between the first disparity map and the second disparity map. As a result, a first candidate depth map associated with the first texturing pattern is obtained. Subsequently, a second candidate depth map associated with the second texturing pattern is obtained. The depth map forming module 168 generates a depth map based on the comparison result from the reliability comparison module 462 and the candidate depth map from the cross module 481.

圖4B係根據本發明實施例之圖1所顯示成像系統16的塊狀圖。參考圖4B,除了包括形成深度圖模組168之外,成像系統16還包括第一普查轉換模組401、第一代價加總模組421、第一贏者全取(winner-take-all,WTA)模組451、第二普查轉換模組402、第二代價加總模組422、第二WTA模組452、信賴度計算模組471、信賴度比較模組472及交叉檢查模組482。在立體匹配中,由於視差估測及交叉檢查係已知方法,它們的功能係簡短地於下面討論。 4B is a block diagram of the imaging system 16 shown in FIG. 1 in accordance with an embodiment of the present invention. Referring to FIG. 4B, in addition to including the depth map module 168, the imaging system 16 further includes a first census conversion module 401, a first cost summation module 421, and a first winner-take-all (winner-take-all, The WTA module 451, the second census conversion module 402, the second cost addition module 422, the second WTA module 452, the reliability calculation module 471, the reliability comparison module 472, and the cross check module 482. In stereo matching, since parallax estimation and cross-checking are known methods, their functions are briefly discussed below.

第一普查轉換模組401考慮例如僅1至4個最靠近相鄰像素,得到與在第一影像151中處理的像素相比較表示高或較低影像強度的1至4個二進位制數字。相似地,第二普查轉換模組402考慮1至4個最靠近相鄰像素,得到與在第二影像152中處理的像素相比較表示高或較低影像強度的1至4個二進位制數字。接下來,為了判定匹配代價,從第一普查轉換模組401與第二普查轉換模組402計算來的二進位制數字係彼此相比較具有不同視差距離。在第一代價加總模組421及第二代價加總模組422中,指示第一影像151及第二影像152之間像素之相似性的匹配代價係可藉由使用具有合理大小之移動窗,在各視差水平上加總。接著,經加總代價被送到第一WTA模組 451及第二WTA模組452,以找出具有最小代價之視差,具有最小代價之視差係作為用於像素之經判定視差。後續,藉由比較來自第一WTA模組451及第二WTA模組452的視差結果,交叉檢查模組48藉由參考視差圖中之物體邊緣所判定之周圍區域的視差來校正大部分的不可靠深度結果。 The first census conversion module 401 considers, for example, only 1 to 4 closest neighboring pixels, and obtains 1 to 4 binary digits representing higher or lower image intensities compared to pixels processed in the first image 151. Similarly, the second census conversion module 402 considers 1 to 4 nearest neighbor pixels to obtain 1 to 4 binary digits representing higher or lower image intensities compared to pixels processed in the second image 152. . Next, in order to determine the matching cost, the binary numbers calculated from the first census conversion module 401 and the second census conversion module 402 have different parallax distances compared to each other. In the first cost summation module 421 and the second cost summation module 422, the matching cost indicating the similarity between the pixels between the first image 151 and the second image 152 can be obtained by using a moving window having a reasonable size. , add up to the level of each parallax. Then, the total cost is sent to the first WTA module. The 451 and the second WTA module 452 are used to find the parallax with the least cost, and the parallax with the least cost is used as the determined disparity for the pixel. Subsequently, by comparing the parallax results from the first WTA module 451 and the second WTA module 452, the cross-check module 48 corrects most of the non-parallax by referring to the parallax of the surrounding area determined by the edge of the object in the disparity map. Reliable depth results.

信賴度計算模組471及信賴度比較模組472構成提及圖1時描述與繪示之信賴度判定模組165。在代價加總階段之後,係獲得costMap(x,y,d),其中x及y表示目前像素的位置,及d表示視差。costMap(x,y,d)紀錄於具有不同視差之各像素的第一影像及第二影像151,152之間的匹配代價。在代價加總階段之後,信賴度計算模組471藉由為各像素計算代價值來產生信賴度圖。最小代價值(min_cost)表示於目前像素的最匹配視差水平。此處之平均代價值AvgCost(x,y)係藉由下列式計算: The reliability calculation module 471 and the reliability comparison module 472 constitute a reliability determination module 165 that is described and illustrated in reference to FIG. After the cost summation phase, the costMap(x, y, d) is obtained, where x and y represent the position of the current pixel, and d represents the disparity. The costMap(x, y, d) records the matching cost between the first image and the second image 151, 152 of each pixel having different parallaxes. After the cost summation phase, the reliability calculation module 471 generates a reliability map by calculating a surrogate value for each pixel. The minimum generation value (min_cost) is expressed as the best matching disparity level of the current pixel. The average value of AvgCost(x,y) here is calculated by the following formula:

其中“totalCost(x,y)”表示於目前像素(x,y)具有各視差水平之代價值的總和,及"N"表示視差水平的總數目。於像素(x,y),藉由AvgCost減min_cost,我們可獲得於目前像素(x,y)的對應信賴度:CL(x,y)=AvgCost(x,y)-min_cos t(x,y) Where "totalCost(x, y)" indicates that the current pixel (x, y) has a sum of the values of the disparity levels, and "N" represents the total number of disparity levels. For the pixel (x, y), by subtracting min_cost from AvgCost, we can obtain the corresponding reliability of the current pixel (x, y): CL ( x , y ) = AvgCost ( x , y )-min_cos t ( x , y )

一般,對於想要的深度值而言,min_cost應該是接近零且AvgCost與min_cost之間的差異應該盡可能地大。結果,深度值越是可靠,則信賴度值越大。 In general, for a desired depth value, min_cost should be close to zero and the difference between AvgCost and min_cost should be as large as possible. As a result, the more reliable the depth value, the greater the reliability value.

信賴度比較模組472比較第一信賴度圖與第二信賴度圖,並為各像素位置判定第一信賴度圖與第二信賴度圖中具有較大信賴度值之像素。基於 在信賴度比較模組472經識別像素,深度圖形成模組168產生深度圖18。 The reliability comparison module 472 compares the first reliability map with the second reliability map, and determines pixels having a larger reliability value in the first reliability map and the second reliability map for each pixel position. based on The depth map forming module 168 generates a depth map 18 after the reliability comparison module 472 has identified the pixels.

在本實施例中,信賴度計算模組471係耦合至第一代價加總模組421以判定信賴度圖。在另一實施例中,信賴度計算模組471係耦合至第二代價加總模組422而非第一代價加總模組421。在又一實施例中,第一信賴度計算模組係耦合至第一代價加總模組421,而第二信賴度計算模組係耦合至第二代價加總模組422。又者,為了判定信賴度圖,信賴度計算模組471係不限於上述特定式。再者,信賴度計算模組471可不耦合至第一代價加總模組422或第二代價加總模組421。結果,在使用差異結構化光圖案的成像系統中用以判定信賴度圖的其它演算法或機制也落在本發明所涵蓋的範疇內。 In the present embodiment, the reliability calculation module 471 is coupled to the first cost summation module 421 to determine the reliability map. In another embodiment, the reliability calculation module 471 is coupled to the second cost summation module 422 instead of the first cost total module 421. In yet another embodiment, the first reliability calculation module is coupled to the first cost summation module 421 and the second reliability calculation module is coupled to the second cost addition module 422. Further, in order to determine the reliability map, the reliability calculation module 471 is not limited to the above-described specific expression. Moreover, the reliability calculation module 471 may not be coupled to the first cost summation module 422 or the second cost addition module 421. As a result, other algorithms or mechanisms for determining the reliability map in imaging systems that use differentially structured light patterns are also within the scope of the present invention.

成像系統16可於硬體中,諸如於現場可程式閘極陣列(Field Programmable Gate Array,FPGA)中或於特定應用積體電路(Application-Specific Integrated Circuit,ASIC)中實現、或於使用一般目的計算機系統之軟體中實現,或其組合。與軟體實現相比較,硬體實現可達成較高性能但有較高設計成本。對於即時應用而言,由於速度要求所致,硬體實現係通常被選。 The imaging system 16 can be implemented in a hardware, such as in a Field Programmable Gate Array (FPGA) or in an Application-Specific Integrated Circuit (ASIC), or for general purposes. Implemented in a software system of a computer system, or a combination thereof. Compared to software implementations, hardware implementations can achieve higher performance but higher design costs. For instant applications, hardware implementations are often chosen due to speed requirements.

圖5A係結構化光之例示性圖案P1的示意圖。參考圖5A,具有第一圖案P1之第一結構化光係向第一位置C1投射。 Figure 5A is a schematic illustration of an exemplary pattern P1 of structured light. Referring to FIG. 5A, a first structured light system having a first pattern P1 is projected toward a first position C1.

圖5B與5C係根據本發明一些實施例之差異化圖案P2相對於圖5A中所繪示例示性圖案P1的示意圖。參考圖5B且也參考圖5A,具有第二圖案P2之第二結構化光係向第二位置C2投射。第二結構化光或第二圖案P2係相對於第一結構化光或第一圖案P1從C1位移到C2。在本實施例中,第二圖案P2係與第一圖案P1相同但具有從第一圖案P1之平移位移。有效地,藉由移動或改變結構化光的位置,係獲致不同紋理化圖案。 5B and 5C are schematic illustrations of a differentiated pattern P2 relative to the exemplary pattern P1 depicted in FIG. 5A, in accordance with some embodiments of the present invention. Referring to Figure 5B and also to Figure 5A, a second structured light system having a second pattern P2 is projected toward a second position C2. The second structured light or second pattern P2 is displaced from C1 to C2 relative to the first structured light or first pattern P1. In the present embodiment, the second pattern P2 is the same as the first pattern P1 but has a translational displacement from the first pattern P1. Effectively, different texturing patterns are obtained by moving or changing the position of the structured light.

參考圖5C且也參考圖5A,具有第二圖案P2之第二結構化光係向第一位置C2投射。再者,第二圖案P2係與第一圖案P1相同。然而,第二圖案P2具有從第一圖案P1之角位移。有效地,藉由旋轉結構化光的位置,係獲致不同紋理化圖案。 Referring to Figure 5C and also to Figure 5A, a second structured light system having a second pattern P2 is projected toward a first location C2. Furthermore, the second pattern P2 is the same as the first pattern P1. However, the second pattern P2 has an angular displacement from the first pattern P1. Effectively, by rotating the position of the structured light, different textured patterns are obtained.

圖6A係另一例示性圖案的示意圖,且圖6B係根據本發明一些實施例之差異化圖案相對於圖6A中所繪示例示性圖案的示意圖。參考圖6A及6B,第一結構化光及第一結構化光係向相同位置C投射。再者,第一位置P1與第二位置P2係彼此不同。有效地,藉由使用不同圖案,即使具有不同圖案之結構化光係向與先前結構化光相同位置投射,係獲致不同紋理化圖案。 6A is a schematic illustration of another exemplary pattern, and FIG. 6B is a schematic illustration of a differentiated pattern relative to the exemplary pattern depicted in FIG. 6A, in accordance with some embodiments of the present invention. Referring to Figures 6A and 6B, the first structured light and the first structured light system are projected toward the same position C. Furthermore, the first position P1 and the second position P2 are different from each other. Effectively, by using different patterns, even if the structured light system with different patterns is projected to the same position as the previously structured light, a different textured pattern is obtained.

圖7係根據本發明實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖。參考圖7,且也藉由參考圖1中繪示之系統100,於操作71中,係投射第一結構化光到物體上。接著,於操作72中,係產生與第一結構化光相關的一第一候選深度圖。再者,於操作73中,係產生一第一信賴度圖,該第一信賴度圖包括關於在第一候選深度圖的第一位置的第一像素之信賴度值的資訊。 7 is a flow chart showing a method of generating a depth map by using a differentiated pattern, in accordance with an embodiment of the present invention. Referring to Figure 7, and also by reference to system 100 illustrated in Figure 1, in operation 71, the first structured light is projected onto the object. Next, in operation 72, a first candidate depth map associated with the first structured light is generated. Moreover, in operation 73, a first reliability map is generated, the first reliability map including information about a reliability value of the first pixel at the first position of the first candidate depth map.

後續,於操作74中,係投射第二結構化光到物體上。第二結構化光生產與第一結構化光不同的紋理化圖案。接著,於操作75中,係產生與第二結構化光相關的第二候選深度圖。再者,於操作76中,係產生第二信賴度圖,該第二信賴度圖包括關於在第二候選深度圖的第二位置的第二像素之信賴度值的資訊。第二候選深度圖中的第二位置係與第一候選深度圖中的第一位置於像素座標上相同。 Subsequently, in operation 74, the second structured light is projected onto the object. The second structured light produces a textured pattern that is different from the first structured light. Next, in operation 75, a second candidate depth map associated with the second structured light is generated. Moreover, in operation 76, a second reliability map is generated, the second reliability map including information regarding a confidence value of the second pixel at the second location of the second candidate depth map. The second position in the second candidate depth map is the same as the first position in the first candidate depth map on the pixel coordinates.

於操作77中,係將具有較大信賴度值之第一像素與第二像素中之一者 判定成一第三像素。接著於操作78中,係利用與第一像素及第二像素相同位置之第三像素產生一深度圖。據此,最終深度圖可藉由比較在第一信賴度圖與第二信賴度圖的相同位置之像素之信賴度值並將具有較大信賴度值的像素填入深度圖中之它們的相對像素座標中而產生。 In operation 77, one of the first pixel and the second pixel having a larger reliability value is used. Determined to be a third pixel. Next, in operation 78, a depth map is generated using the third pixel at the same location as the first pixel and the second pixel. Accordingly, the final depth map can be compared by comparing the reliability values of the pixels at the same position of the first reliability map and the second reliability map and filling the pixels with the larger reliability values into their depth maps. Produced in the pixel coordinates.

圖8係根據本發明另一實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖。參考圖8,且也藉由參考圖1或圖4中繪示之成像系統16,於操作81中,係接收與一第一紋理化圖案相關的第一對影像。接著,於操作82中,係基於第一對影像產生一第一深度圖。又者,於操作83中,係產生一第一信賴度圖,該第一信賴度圖包括關於在第一深度圖中像素之可靠性的資訊。 8 is a flow chart showing a method of generating a depth map by using a differentiated pattern, in accordance with another embodiment of the present invention. Referring to Figure 8, and also by reference to the imaging system 16 illustrated in Figure 1 or Figure 4, in operation 81, a first pair of images associated with a first texturing pattern is received. Next, in operation 82, a first depth map is generated based on the first pair of images. Moreover, in operation 83, a first reliability map is generated, the first reliability map including information regarding the reliability of the pixels in the first depth map.

後續,於操作84中,係接收與一第二紋理化圖案相關的第二對影像。第二紋理化圖案係與第一紋理化圖案不同。接著,於操作85中,係基於第二對影像產生一第二深度圖。又者,於操作86中,係產生一第二信賴度圖,該第二信賴度圖包括關於在第二深度圖中像素之可靠性的資訊。 Subsequently, in operation 84, a second pair of images associated with a second texturing pattern is received. The second textured pattern is different from the first textured pattern. Next, in operation 85, a second depth map is generated based on the second pair of images. Moreover, in operation 86, a second reliability map is generated, the second reliability map including information regarding the reliability of the pixels in the second depth map.

於操作87中,係比較第一信賴度圖與第二信賴度圖,以判定在第一信賴度圖與第二信賴度圖的相同位置於深度值上更可靠之像素。接著於操作88中,係基於更可靠像素產生一第三深度圖。 In operation 87, the first reliability map and the second reliability map are compared to determine pixels that are more reliable in the depth value at the same position of the first reliability map and the second reliability map. Next in operation 88, a third depth map is generated based on the more reliable pixels.

在上述實施例中,兩個(候選)深度圖及兩個信賴度圖被產生,以判定最終深度圖。然而,在其它實施例中,為了產生更精確深度圖,可使用三或更多個(候選)深度圖及相同數目的信賴度圖。圖9係根據本發明另一實施例繪示藉由使用差異化圖案來產生深度圖之概念模型的示意圖。參考圖9,成像系統16可用以接收M組的第一影像91及第二影像92,第一影像91及第二影像92係使用差異結構化光成對產生,M係大於2之自然數。對於各組 成對之第一影像及第二影像,第一影像91係藉由使用第一結構化光獲得且第二影像92係藉由使用第二結構化光獲得,第二結構化光具有與第一結構化光不同之紋理化圖案。成像系統16產生M個(候選)深度圖95及M個信賴度圖97,且接著判定最終深度圖。 In the above embodiment, two (candidate) depth maps and two reliability maps are generated to determine the final depth map. However, in other embodiments, to produce a more accurate depth map, three or more (candidate) depth maps and the same number of reliability maps may be used. 9 is a schematic diagram showing a conceptual model for generating a depth map by using a differentiated pattern, in accordance with another embodiment of the present invention. Referring to Figure 9, imaging system 16 can be used to receive a first image 91 and a second image 92 of group M, the first image 91 and the second image 92 being generated in pairs using differentially structured light, M being a natural number greater than two. For each group a pair of first image and second image, the first image 91 is obtained by using the first structured light and the second image 92 is obtained by using the second structured light, the second structured light having the first Structured light with different textured patterns. Imaging system 16 generates M (candidate) depth maps 95 and M reliability maps 97, and then determines the final depth map.

例如,成像系統16回應於使用第一結構化光獲得之第一對影像產生第一候選深度圖及第一信賴度圖。再者,成像系統16回應於使用第二結構化光獲得之第二對影像產生第二候選深度圖及第二信賴度圖。接著,成像系統16回應於使用第三結構化光獲得之第三對影像產生第三候選深度圖及第三信賴度圖,第三結構化光產生與第一結構化光及第二結構化光不同之紋理化圖案。後續,為了判定最終深度圖,成像系統16比較第一信賴度圖、第二信賴度圖與第三信賴度圖。 For example, imaging system 16 generates a first candidate depth map and a first reliability map in response to the first pair of images obtained using the first structured light. Furthermore, imaging system 16 generates a second candidate depth map and a second reliability map in response to the second pair of images obtained using the second structured light. Next, the imaging system 16 generates a third candidate depth map and a third reliability map in response to the third pair of images obtained using the third structured light, the third structured light generating and the first structured light and the second structured light. Different textured patterns. Subsequently, to determine the final depth map, imaging system 16 compares the first reliability map, the second reliability map, and the third reliability map.

圖10係根據本發明再一實施例繪示藉由使用差異化圖案來產生深度圖之方法的流程圖。參考圖10,且也藉由參考圖9中繪示之概念模型,於操作102中,係基於一紋理化圖案產生像素的一深度圖及一信賴度圖。又,於操作104中,係基於與先前紋理化圖案不同之另一紋理化圖案產生像素的另一深度圖及另一信賴度圖。接著,於操作106中,其係判定是否要產生再一深度圖。例如,可預先決定N組的深度圖及信賴度圖係用以判定最終深度圖。如果是肯定,於操作108中,係基於與先前紋理化圖案不同之再一紋理化圖案產生像素的再一深度圖及再一信賴度圖。係重複操作106及108直到獲得預先決定數目的深度圖及信賴度圖。當獲得時,於操作110中,係藉由比較該等信賴度圖,識別出這些信賴度圖的相同位置之像素中具有最大信賴度值之一者。後續,於操作112中,係使用在相同位置之經識別像素產生一深度圖。 FIG. 10 is a flow chart showing a method of generating a depth map by using a differentiated pattern according to still another embodiment of the present invention. Referring to FIG. 10, and also by referring to the conceptual model illustrated in FIG. 9, in operation 102, a depth map and a reliability map of the pixels are generated based on a textured pattern. Also, in operation 104, another depth map of the pixel and another reliability map are generated based on another textured pattern that is different from the previous textured pattern. Next, in operation 106, it is determined whether a further depth map is to be generated. For example, the depth map and the reliability map of the N sets can be determined in advance to determine the final depth map. If so, in operation 108, a further depth map and a further reliability map of the pixel are generated based on a further textured pattern that is different from the previous textured pattern. Operations 106 and 108 are repeated until a predetermined number of depth maps and reliability maps are obtained. When obtained, in operation 110, by comparing the reliability maps, one of the pixels having the same position in the same position of the reliability maps is identified. Subsequently, in operation 112, a depth map is generated using the identified pixels at the same location.

總之,本發明提供一種成像系統及方法,其藉由差異結構化光及信賴度來圖改善深度圖之品質而不增加系統複雜度。具有改善之深度圖品質及經控制複雜度,本發明係適於諸如3D手勢辨識、視角合成、及立體電視之應用。 In summary, the present invention provides an imaging system and method that improves the quality of a depth map without increasing system complexity by differentially structuring light and reliability. With improved depth map quality and controlled complexity, the present invention is suitable for applications such as 3D gesture recognition, perspective synthesis, and stereoscopic television.

雖然已詳細描述本發明及其優點,應理解可在不悖離如所附申請專利範圍中界定之本發明的精神及範疇下,作出各種改變、取代、及替代。例如,上文所討論操作流程可以不同方法實施並可被其他流程或其組合予以置換。 Having described the invention and its advantages, it is understood that various changes, substitutions, and substitutions may be made without departing from the spirit and scope of the invention as defined in the appended claims. For example, the operational flow discussed above can be implemented in different ways and can be replaced by other processes or a combination thereof.

再者,本申請案的範疇並無意限制成說明書中所描述之製程、機器、製造、物質的組成物、手段、方法、及步驟的特定實施例。本技術領域中具有通常知識者由本發明之揭露可輕易地了解到,根據本發明可利用目前存在或待於日後開發出之製程、機器、製造、物質的組成物、手段、方法、或步驟來實施與本文中所述之相應實施例實質上相同之功能或達成與本文中所述之相應實施例實質上相同之結果。據此,隨附之申請專利範圍其範疇意欲涵蓋此等製程、機器、製造、物質的組成物、手段、方法、或步驟。 Further, the scope of the present application is not intended to be limited to the specific embodiments of the process, machine, manufacture, compositions, means, methods, and steps described in the specification. It will be readily apparent to those skilled in the art from this disclosure that the present invention may be utilized in a process, machine, manufacture, composition, method, method, or step The functions substantially the same as the corresponding embodiments described herein are achieved or substantially the same results as the corresponding embodiments described herein are achieved. Accordingly, the scope of the appended claims is intended to cover such processes, machines, manufacture, compositions, means, methods, or steps.

Claims (20)

一種成像系統,包含: 一候選深度圖產生模組,用以回應於與一第一紋理化圖案相關的一第一對影像產生一第一候選深度圖,並回應於與一第二紋理化圖案相關的一第二對影像產生一第二候選深度圖,該第二紋理化圖案與該第一紋理化圖案不同; 一信賴度判定模組,用以判定在該第一候選深度圖與該第二候選深度圖的一相同位置之像素中比另一像素更可靠的一像素;及 一深度圖形成模組,用以基於該一像素產生一深度圖。An imaging system includes: a candidate depth map generating module for generating a first candidate depth map in response to a first pair of images associated with a first textured pattern, and responsive to a second textured pattern Correlating a second pair of images to generate a second candidate depth map, the second texture pattern is different from the first texture pattern; a reliability determination module, configured to determine the first candidate depth map and the first a pixel in the same position of the second candidate depth map is more reliable than the other pixel; and a depth map forming module for generating a depth map based on the pixel. 如申請專利範圍第1項之成像系統,其中該信賴度判定模組包括一信賴度計算模組,用以產生一第一信賴度圖,並產生一第二信賴度圖,該第一信賴度圖包括關於在該第一候選深度圖中像素之可靠性的資訊,及該第二信賴度圖包括關於在該第二候選深度圖中像素之可靠性的資訊。The imaging system of claim 1, wherein the reliability determination module includes a reliability calculation module for generating a first reliability map and generating a second reliability map, the first reliability The map includes information regarding the reliability of the pixels in the first candidate depth map, and the second reliability map includes information regarding the reliability of the pixels in the second candidate depth map. 如申請專利範圍第2項之成像系統,其中該信賴度計算模組基於下列式產生該第一信賴度圖或該第二信賴度圖: ,及 其中costMap (x, y, d)表示該第一對影像與該第二對影像之間的一匹配代價,x及y表示一像素的位置,d表示視差,及N表示視差水平的總數目。 The imaging system of claim 2, wherein the reliability calculation module generates the first reliability map or the second reliability map based on the following formula: ,and Where costMap (x, y, d) represents a matching cost between the first pair of images and the second pair of images, x and y represent the position of one pixel, d represents the parallax, and N represents the total number of disparity levels. 如申請專利範圍第3項之成像系統,其中該信賴度計算模組基於下式判定該像素的該信賴度: 其中min_cost (x, y)表示於該像素的最匹配視差水平。 The imaging system of claim 3, wherein the reliability calculation module determines the reliability of the pixel based on the following formula: Where min_cost (x, y) represents the best matching disparity level for that pixel. 如申請專利範圍第2項之成像系統,其中該信賴度判定模組包括一信賴度比較模組,用以比較該第一信賴度圖與該第二信賴度圖,以識別該更可靠像素。The imaging system of claim 2, wherein the reliability determination module comprises a reliability comparison module for comparing the first reliability map with the second reliability map to identify the more reliable pixels. 如申請專利範圍第1項之成像系統,其中該第一紋理化圖案具有相對於該第二紋理化圖案的一平移位移。The imaging system of claim 1, wherein the first texturing pattern has a translational displacement relative to the second texturing pattern. 如申請專利範圍第1項之成像系統,其中該第一紋理化圖案具有相對於該第二紋理化圖案的一角位移。The imaging system of claim 1, wherein the first texturing pattern has an angular displacement relative to the second texturing pattern. 如申請專利範圍第1項之成像系統,其中該第一紋理化圖案涉及與該第二紋理化圖案不同的一圖案。The imaging system of claim 1, wherein the first texturing pattern relates to a pattern different from the second texturing pattern. 一種產生一深度圖之方法,該方法包含: 投射第一結構化光到一物體上; 產生與該第一結構化光相關的一第一候選深度圖; 產生一第一信賴度圖,該第一信賴度圖包括關於在該第一候選深度圖的一第一位置的一第一像素之信賴度值的資訊; 投射第二結構化光到該物體上,該第二結構化光生產與該第一紋理化光不同的一紋理化圖案; 產生與該第二結構化光相關的一第二候選深度圖; 產生一第二信賴度圖,該第二信賴度圖包括關於在該第二候選深度圖的一第二位置的一第二像素之信賴度值的資訊,該第二候選深度圖中的該第二位置係與該第一候選深度圖中的該第一位置相同; 將具有一較大信賴度值之該第一像素與該第二像素中之一者判定成一第三像素;及 使用該第三像素產生一深度圖。A method of generating a depth map, the method comprising: projecting a first structured light onto an object; generating a first candidate depth map associated with the first structured light; generating a first reliability map, the first A reliability map includes information about a confidence value of a first pixel at a first location of the first candidate depth map; projecting second structured light onto the object, the second structured light production and First texturing a different texture pattern; generating a second candidate depth map associated with the second structured light; generating a second reliability map, the second reliability map including Information about a reliability value of a second pixel of a second position of the depth map, the second location in the second candidate depth map being the same as the first location in the first candidate depth map; Determining one of the first pixel and the second pixel of the greater reliability value as a third pixel; and generating a depth map using the third pixel. 如申請專利範圍第9項之產生一深度圖之方法,其中該第一結構化光具有相對於該第二結構化光的一平移位移。A method of producing a depth map according to claim 9 wherein the first structured light has a translational displacement relative to the second structured light. 如申請專利範圍第9項之產生一深度圖之方法,其中該第一結構化光具有相對於該第二結構化光的一角位移。A method of producing a depth map according to claim 9 wherein the first structured light has an angular displacement relative to the second structured light. 如申請專利範圍第9項之產生一深度圖之方法,其中該第一結構化光包括與該第二結構化光不同的一圖案。A method of producing a depth map according to claim 9 wherein the first structured light comprises a pattern different from the second structured light. 如申請專利範圍第9項之產生一深度圖之方法,其中產生該第一信賴度圖或產生該第二信賴度圖包含基於下列式計算: ,及 其中costMap (x, y, d)表示該第一對影像與該第二對影像之間的一匹配代價,x及y表示一像素的位置,d表示視差,及N表示視差水平的總數目。 A method for generating a depth map according to claim 9 wherein the generating the first reliability map or generating the second reliability map comprises calculating based on the following formula: ,and Where costMap (x, y, d) represents a matching cost between the first pair of images and the second pair of images, x and y represent the position of one pixel, d represents the parallax, and N represents the total number of disparity levels. 如申請專利範圍第13項之產生一深度圖之方法,其中產生該第一信賴度圖或產生該第二信賴度圖進一步包含基於下式計算: 其中min_cost (x, y)表示於該像素的最匹配視差水平。 The method for generating a depth map according to claim 13 , wherein generating the first reliability map or generating the second reliability map further comprises calculating according to the following formula: Where min_cost (x, y) represents the best matching disparity level for that pixel. 一種產生一深度圖之方法,該方法包含: 基於一第一紋理化圖案,產生第一像素的一第一深度圖及一第一信賴度圖,該第一信賴度圖包括關於該第一像素之可靠性的資訊; 基於一第二紋理化圖案,產生第二像素的一第二深度圖及一第二信賴度圖,該第二信賴度圖包括關於該第二像素之可靠性的資訊; 基於一第三紋理化圖案,產生第三像素的一第三深度圖及一第三信賴度圖,該第三信賴度圖包括關於該第三像素之可靠性的資訊; 比較該第一信賴度圖、該第二信賴度圖與該第三信賴度圖,以識別出在該第一信賴度圖、該第二信賴度圖與該第三信賴度圖的一相同位置之該第一像素、該第二像素與第三像素中更可靠的一像素;及 使用該一像素產生一深度圖。A method for generating a depth map, the method comprising: generating a first depth map of a first pixel and a first reliability map based on a first texture pattern, the first reliability map including the first pixel Information about reliability; generating a second depth map of the second pixel and a second reliability map based on a second texture pattern, the second reliability map including information about reliability of the second pixel; Generating a third depth map of the third pixel and a third reliability map based on a third texture pattern, the third reliability map including information about reliability of the third pixel; comparing the first reliability a second reliability map and the third reliability map to identify the first pixel at the same position of the first reliability map, the second reliability map, and the third reliability map, a more reliable one of the second pixel and the third pixel; and using the one pixel to generate a depth map. 如申請專利範圍第15項之產生一深度圖之方法,其中該第一紋理化圖案、第二紋理化圖案與該第三紋理化圖案係彼此不同。A method of producing a depth map according to claim 15 wherein the first texturing pattern, the second texturing pattern and the third texturing pattern are different from each other. 如申請專利範圍第15項之產生一深度圖之方法,進一步包含: 投射具有一第一圖案的第一結構化光到一物體上以生產該第一紋理化圖案;及 投射具有一第二圖案的第二結構化光到該物體上以生產該第二紋理化圖案。The method for generating a depth map according to claim 15 of the patent application, further comprising: projecting the first structured light having a first pattern onto an object to produce the first textured pattern; and projecting the second pattern The second structured light is incident on the object to produce the second textured pattern. 如申請專利範圍第17項之產生一深度圖之方法,其中該第一圖案具有相對於該第二圖案的一平移位移。A method of producing a depth map according to claim 17 wherein the first pattern has a translational displacement relative to the second pattern. 如申請專利範圍第17項之產生一深度圖之方法,其中該第一圖案具有相對於該第二圖案的一角位移。A method of producing a depth map according to claim 17 wherein the first pattern has an angular displacement relative to the second pattern. 如申請專利範圍第17項之產生一深度圖之方法,其中該第一圖案與第二圖案係彼此不同。A method of producing a depth map according to claim 17 wherein the first pattern and the second pattern are different from each other.
TW105131004A 2016-09-26 2016-09-26 System and method for generating depth map using differential patterns TWI627604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105131004A TWI627604B (en) 2016-09-26 2016-09-26 System and method for generating depth map using differential patterns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105131004A TWI627604B (en) 2016-09-26 2016-09-26 System and method for generating depth map using differential patterns

Publications (2)

Publication Number Publication Date
TW201814654A TW201814654A (en) 2018-04-16
TWI627604B true TWI627604B (en) 2018-06-21

Family

ID=62639603

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105131004A TWI627604B (en) 2016-09-26 2016-09-26 System and method for generating depth map using differential patterns

Country Status (1)

Country Link
TW (1) TWI627604B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150142B2 (en) * 2007-04-02 2012-04-03 Prime Sense Ltd. Depth mapping using projected patterns
US20160267665A1 (en) * 2008-05-20 2016-09-15 Pelican Imaging Corporation Systems and Methods for Generating Depth Maps Using Light Focused on an Image Sensor by a Lens Element Array

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150142B2 (en) * 2007-04-02 2012-04-03 Prime Sense Ltd. Depth mapping using projected patterns
US20160267665A1 (en) * 2008-05-20 2016-09-15 Pelican Imaging Corporation Systems and Methods for Generating Depth Maps Using Light Focused on an Image Sensor by a Lens Element Array

Also Published As

Publication number Publication date
TW201814654A (en) 2018-04-16

Similar Documents

Publication Publication Date Title
US20180091798A1 (en) System and Method for Generating a Depth Map Using Differential Patterns
JP7300438B2 (en) Method and system for large-scale determination of RGBD camera pose
EP2064675B1 (en) Method for determining a depth map from images, device for determining a depth map
US9025862B2 (en) Range image pixel matching method
JP6596433B2 (en) Structured optical matching of a set of curves from two cameras
CN106875435B (en) Method and system for obtaining depth image
CN111524233B (en) Three-dimensional reconstruction method of static scene dynamic target
US11398085B2 (en) Systems, methods, and media for directly recovering planar surfaces in a scene using structured light
WO2024032233A1 (en) Stereophotogrammetric method based on binocular vision
CN112001973B (en) Quick three-dimensional human head measuring method based on digital speckle correlation
JP7184203B2 (en) Image processing device, three-dimensional measurement system, image processing method
Ann et al. Study on 3D scene reconstruction in robot navigation using stereo vision
TWI571099B (en) Device and method for depth estimation
CN110443228B (en) Pedestrian matching method and device, electronic equipment and storage medium
Um et al. Three-dimensional scene reconstruction using multiview images and depth camera
TWI627604B (en) System and method for generating depth map using differential patterns
Tehrani et al. A new approach to 3D modeling using structured light pattern
Li et al. Accurate depth estimation using structured light and passive stereo disparity estimation
CN107610170B (en) Multi-view image refocusing depth acquisition method and system
KR20120056668A (en) Apparatus and method for recovering 3 dimensional information
Mkhitaryan et al. RGB-D sensor data correction and enhancement by introduction of an additional RGB view
Yu et al. Registration and fusion for ToF camera and 2D camera reading
Gumaste et al. Optical tracking system for auto-registration of multiple views of a 3D scanner for 3D shape reconstruction of components
Huang et al. a critical analysis of internal reliability for uncertainty quantification of dense image matching in multi-view stereo
Ouji et al. A space-time depth super-resolution scheme for 3D face scanning