[go: up one dir, main page]

CN101846798B - Method and device for obtaining scene depth information - Google Patents

Method and device for obtaining scene depth information Download PDF

Info

Publication number
CN101846798B
CN101846798B CN 200910119330 CN200910119330A CN101846798B CN 101846798 B CN101846798 B CN 101846798B CN 200910119330 CN200910119330 CN 200910119330 CN 200910119330 A CN200910119330 A CN 200910119330A CN 101846798 B CN101846798 B CN 101846798B
Authority
CN
China
Prior art keywords
component
depth information
optical
encoding
point spread
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.)
Expired - Fee Related
Application number
CN 200910119330
Other languages
Chinese (zh)
Other versions
CN101846798A (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.)
Industrial Technology Research Institute ITRI
Original Assignee
Industrial Technology Research Institute ITRI
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 Industrial Technology Research Institute ITRI filed Critical Industrial Technology Research Institute ITRI
Priority to CN 200910119330 priority Critical patent/CN101846798B/en
Publication of CN101846798A publication Critical patent/CN101846798A/en
Application granted granted Critical
Publication of CN101846798B publication Critical patent/CN101846798B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention relates to a method and a device for obtaining depth information of an scenery, which improve the similarity of point spread functions under different field conditions through an optical device, and the point spread functions on an optical axis of the optical device still have difference, so that the depth information of the scenery can be obtained through the change situation of the point spread functions on the optical axis at different object distances.

Description

景物深度信息的取得方法与装置Method and device for obtaining scene depth information

技术领域 technical field

本发明涉及一种景物深度信息的取得,尤指一种景物深度信息的取得方法与装置。  The invention relates to an acquisition of scene depth information, in particular to a method and device for obtaining scene depth information. the

背景技术 Background technique

如何撷取实际景物中不同物体的距离或深度信息,在立体显示领域、测距系统或深度形廓显示系统中一直是一个重要的课题。传统的撷取方法与装置可分为“主动式”与“被动式”两种。在“被动式”系统中利用“视差”的概念,其方法主要使用双镜头、多镜头以及类似概念的多孔式光圈取像系统。然而,此类系统需要多个成像镜头、多个影像感测器才能获得立体影像信息。而“主动式”是通过使用一额外主动发射的信号源(通常为一光源),根据此信号源照射被拍摄物体后飞行时间(time of flight)的差异来求出不同物体的距离或是将特定形式的分布条纹投射至被拍摄物体,并利用此条纹在物体表面的变形程度来评估被拍摄物体间彼此的相对距离。  How to capture the distance or depth information of different objects in the actual scene has always been an important issue in the field of stereoscopic display, ranging system or depth profile display system. Traditional capture methods and devices can be divided into two types: "active" and "passive". In the "passive" system, the concept of "parallax" is used, and its method mainly uses dual-lens, multi-lens, and porous aperture imaging systems of similar concepts. However, such systems require multiple imaging lenses and multiple image sensors to obtain stereoscopic image information. The "active type" uses an additional active emission signal source (usually a light source), and calculates the distance of different objects according to the difference in time of flight (time of flight) after the signal source illuminates the object to be photographed A specific form of distribution fringe is projected onto the object to be photographed, and the degree of deformation of the fringe on the surface of the object is used to evaluate the relative distance between the objects to be photographed. the

此外,美国专利第5,521,695号揭示通过特殊设计的光学组件使一个物点在经该光学组件后,于其成像面上会形成四个像点,并通过四个像点的相对位置变化求出被拍摄物体的相对距离。  In addition, U.S. Patent No. 5,521,695 discloses that through a specially designed optical component, an object point will form four image points on its imaging surface after passing through the optical component, and the relative position changes of the four image points can be used to calculate the The relative distance of the photographed object. the

另一方面,在取像系统中,镜头的点扩散函数(Point SpreadFunction:PSF)会随着物距的不同而产生变化。因此,可依据此点扩散函数的特性来获得物距信息。然而,镜头的点扩散函数除了随物距不同而产生变化之外,在相同物距但不同视场的情况下,镜头的点扩散函数也将随之改变。因此,欲获得被拍摄物体间的距离差异及其深度信息,后端影像处理时需同时考虑点扩散函数随物距以及视场所造成的影响。  On the other hand, in the imaging system, the point spread function (Point Spread Function: PSF) of the lens will change with the object distance. Therefore, the object distance information can be obtained according to the characteristics of the point spread function. However, in addition to changing the point spread function of the lens with different object distances, the point spread function of the lens will also change under the same object distance but different field of view. Therefore, in order to obtain the distance difference and depth information between the objects to be photographed, the influence of the point spread function along with the object distance and the field of view must be considered at the same time in the back-end image processing. the

发明内容  Invention content

本发明提供一种景物深度信息的取得方法及其光学取得装置,其通过具有编码组件的装置,使不同视场条件的点扩散函数相似性提高,而沿着该光学装置光轴上的点扩散函数仍具差异性,进而通过轴上点扩散函数在不同物距的变化情形得到景物的深度信息。  The invention provides a method for obtaining depth information of a scene and an optical obtaining device thereof, which improves the similarity of point spread functions of different viewing field conditions through a device with a coding component, and the point spread along the optical axis of the optical device The function is still different, and then the depth information of the scene can be obtained through the variation of the on-axis point spread function at different object distances. the

本发明提出一种景物深度信息的光学取得装置,其包含一光学组件及一编码组件。其中,该编码组件置于行经该光学组件的景物光的路径上,用以调变该光学取得装置的点扩散函数。  The present invention provides an optical acquisition device for scene depth information, which includes an optical component and a coding component. Wherein, the encoding component is placed on the path of the scene light passing through the optical component to adjust the point spread function of the optical acquisition device. the

本发明提出一种景物深度信息的取得方法,其包含:通过一光学取得装置取得一影像;取得该光学取得装置至少一点扩散函数信息;以及扫瞄该影像不同区域并根据该点扩散函数信息执行还原比对程序。  The present invention proposes a method for obtaining depth information of a scene, which includes: obtaining an image through an optical obtaining device; obtaining at least one point spread function information of the optical obtaining device; and scanning different regions of the image and executing according to the point spread function information. Restore the comparison program. the

附图说明 Description of drawings

图1显示本发明一实施例的景物深度信息取得装置的方块图;  Fig. 1 shows the block diagram of the scene depth information acquisition device of an embodiment of the present invention;

图2A绘示使用光学组件来成像物距为1000mm的景物时,不同视场的点扩散函数的斑点图;  Figure 2A shows the speckle diagrams of the point spread functions of different fields of view when an optical component is used to image a scene whose object distance is 1000mm;

图2B绘示使用深度信息取得装置来成像物距为1000mm的景物时,不同视场的点扩散函数的斑点图;  Figure 2B shows the speckle diagrams of the point spread functions of different fields of view when the depth information acquisition device is used to image a scene with an object distance of 1000mm;

图3A绘示使用光学组件来成像物距为790mm的景物时,不同视场的点扩散函数的斑点图;  Figure 3A shows the speckle diagrams of the point spread functions of different fields of view when an optical component is used to image a scene whose object distance is 790mm;

图3B绘示使用深度信息取得装置来成像物距为790mm的景物时,不同视场的点扩散函数的斑点图;  Figure 3B shows the speckle diagrams of the point spread functions of different fields of view when the depth information acquisition device is used to image a scene with an object distance of 790mm;

图4A绘示使用光学组件来成像物距为513mm的景物时,不同视场的点扩散函数的斑点图;  Figure 4A shows the speckle diagrams of the point spread functions of different fields of view when the optical component is used to image a scene whose object distance is 513 mm;

图4B绘示使用深度信息取得装置来成像物距为513mm的景物时,不同视场的点扩散函数的斑点图;  Figure 4B shows the speckle diagrams of the point spread functions of different fields of view when the depth information acquisition device is used to image a scene with an object distance of 513 mm;

图5绘示使用深度信息取得装置(未使用xy耦合项)来成像不同物距景物时,不同像高位置的点扩散函数的斑点图;  Fig. 5 shows the speckle diagram of the point spread function at different image height positions when using the depth information acquisition device (without using the xy coupling term) to image different object distance scenes;

图6绘示使用深度信息取得装置(使用xy耦合项)来成像不同物距景物时,不同像高位置的点扩散函数的斑点图;  Fig. 6 shows the speckle diagram of the point spread function at different image height positions when using the depth information acquisition device (using the xy coupling term) to image different object distance scenes;

图7显示相同物距但在不同视场的点扩散函数相似性比较图;  Figure 7 shows the similarity comparison diagram of the point spread function at the same object distance but in different fields of view;

图8显示不同物距下沿深度信息取得装置光轴上点扩散函数相似性比较图;  Figure 8 shows the similarity comparison diagram of the point spread function on the optical axis of the depth information acquisition device under different object distances;

图9显示本发明实施例的深度信息取得方法的步骤流程图;  Fig. 9 shows the flow chart of the steps of the depth information acquisition method of the embodiment of the present invention;

图10显示一扫描示意图;  Figure 10 shows a schematic diagram of scanning;

图11A显示物距为1000mm的还原影像;  Figure 11A shows a restored image with an object distance of 1000 mm;

图11B显示物距为980mm的还原影像;  Figure 11B shows a restored image with an object distance of 980mm;

图11C显示物距为900mm的还原影像;  Figure 11C shows a restored image with an object distance of 900mm;

图11D显示物距为790mm的还原影像;及  Figure 11D shows a restored image with an object distance of 790 mm; and

图11E显示物距为513mm的还原影像。  FIG. 11E shows a restored image with an object distance of 513 mm. the

主要组件符号说明  Description of main component symbols

100       景物深度信息取得的装置  100 A device for acquiring scene depth information

101       光学组件  101 Optical components

102       编码组件  102 Encoding components

S901-S905 步骤  S901-S905 steps

具体实施方式Detailed ways

图1是根据本发明的一实施例的深度信息取得装置的方块图。入射的景物光线通过深度信息取得装置100后,由感测器所接收。该深度信息取得装置100包含一光学组件101及一编码组件102。此用以成像的光学组件101可为单一透镜、一透镜组或一反射成像镜组等。编码组件102可为一波前相位编码组件、一波前振幅编码组件或一波前相位及振幅混合编码组件,其中,该编码组件102为波前相位编码组件时,其编码方式可为具轴对称的编码方式。该编码组件102的波前编码可用相互正交的座标系统表示。在本实施例中,编码组件102的波前编码以下列方程式表示:  FIG. 1 is a block diagram of an apparatus for obtaining depth information according to an embodiment of the present invention. The incident scene light is received by the sensor after passing through the depth information obtaining device 100 . The depth information obtaining device 100 includes an optical component 101 and a coding component 102 . The optical component 101 for imaging can be a single lens, a lens group, or a reflective imaging mirror group. The encoding component 102 can be a wavefront phase encoding component, a wavefront amplitude encoding component or a wavefront phase and amplitude hybrid encoding component, wherein, when the encoding component 102 is a wavefront phase encoding component, its encoding method can be a shaft Symmetrical encoding. The wavefront encoding of the encoding component 102 can be represented by a mutually orthogonal coordinate system. In the present embodiment, the wavefront coding of coding assembly 102 is represented by the following equation:

WW (( xx ,, ythe y )) == EE. nno ,, ll ,, mm AA nxnx xx 22 nno ++ AA nyno ythe y 22 nno ++ AA lmxylmxy xx ll ythe y mm ,,

其中x及y分别为该编码组件x轴方向及y轴方向的座标位置、n为正整数、l+m为偶数、Anx及Any分别为第n项在x轴方向及y轴方向上的系数大小、Almxy为xy耦合项的系数大小。  Where x and y are the coordinate positions of the encoding component in the x-axis direction and y-axis direction respectively, n is a positive integer, l+m is an even number, A nx and Any are the nth item in the x-axis direction and y-axis direction respectively The size of the coefficient on A lmxy is the size of the coefficient of the xy coupling term.

该编码组件102可放置于深度信息取得装置100的光圈处、光圈处 附近、出瞳面、出瞳面附近、入瞳面或入瞳面附近。该编码组件102亦可与光学组件101结合在一起,例如该编码组件102可制作在光学组件101中镜片表面上。结合后的波前编码可以下列方程式表示:  The encoding component 102 can be placed at the aperture of the depth information acquisition device 100, near the aperture, the exit pupil surface, near the exit pupil surface, the entrance pupil surface or near the entrance pupil surface. The coding component 102 can also be combined with the optical component 101 , for example, the coding component 102 can be made on the surface of the lens in the optical component 101 . The combined wavefront code can be expressed by the following equation:

W′(x,y)=W(x,y)+W0(x,y)  W'(x,y)=W(x,y)+W 0 (x,y)

其中W′(x,y)为深度信息取得装置100加入编码组件102后的波前、W0(x,y)为深度信息取得装置100未加入编码组件102的波前。本领域技术人员了解上述的W′(x,y)、W(x,y)及W0(x,y)亦可以壬尼克(zernike)多项式表示。以上所述编码组件102的放置方式是使通过深度信息取得装置100的被撷取景物光的波前在加入此编码组件后所产生的光学波前主要由W(x,y)构成。此外,该编码组件102可为一折射组件或一衍射组件或同时具有上述两者光学性质的组件。  Where W'(x, y) is the wavefront after the depth information acquisition device 100 adds the encoding component 102, W 0 (x, y) is the wavefront without the depth information acquisition device 100 adding the encoding component 102. Those skilled in the art understand that the above W′(x, y), W(x, y) and W 0 (x, y) can also be represented by Zernike polynomials. The encoding component 102 is placed in such a way that the wavefront of the captured scene light passing through the depth information acquisition device 100 is mainly composed of W(x, y) after being added to the encoding component. In addition, the encoding element 102 can be a refractive element or a diffractive element or an element having both optical properties above.

根据本发明的一实施例,光学组件101的有效焦距为10.82mm、F#为5、全视角大小为10.54度。感测器103对角线长度为2mm。相位编码组件102使用上述的波前方程式进行编码,其中n=2、A2x=A2y=22.8PI、A1mxy=0。  According to an embodiment of the present invention, the effective focal length of the optical component 101 is 10.82 mm, F# is 5, and the full viewing angle is 10.54 degrees. The diagonal length of the sensor 103 is 2mm. The phase encoding component 102 performs encoding using the above wavefront equation, where n=2, A 2x =A 2y =22.8PI, A 1mxy =0.

图2A绘示使用光学组件101来成像物距为1000mm的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长486.1nm的景物光在不同视场的点扩散函数的斑点图(Spot diagram)。图2B绘示使用光学组件101结合相位编码组件102的景物深度信息取得装置100来成像物距为1000mm的景物时,不同视场的点扩散函数的斑点图。  Fig. 2A shows when the optical component 101 is used to image a scene with an object distance of 1000mm, the point spread functions of the scene light with a wavelength of 656.3nm, a wavelength of 587.6nm and a wavelength of 486.1nm expressed as red, green and blue light bands in different fields of view Spot diagram. FIG. 2B shows the speckle diagrams of PSFs of different fields of view when the object distance is 1000 mm using the optical component 101 combined with the phase encoding component 102 to image the scene with the depth information acquisition device 100 . the

图3A绘示使用光学组件101来成像物距为790mm的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长486.1nm的景物光在不同视场的点扩散函数的斑点图。图3B绘示使用光学组件101结合相位编码组件102的深度信息取得装置100来成像物距为790mm的景物时,不同视场的点扩散函数的斑点图。  FIG. 3A shows the point spread function of the scene light with a wavelength of 656.3 nm, a wavelength of 587.6 nm and a wavelength of 486.1 nm expressed as red, green and blue light bands in different fields of view when the optical component 101 is used to image a scene with an object distance of 790 mm. dot plot. 3B shows the speckle diagrams of PSFs of different fields of view when the depth information acquisition device 100 using the optical component 101 combined with the phase encoding component 102 is used to image a scene with an object distance of 790 mm. the

图4A绘示使用光学组件101来成像物距为513mm的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长486.1nm的景物光在不同视场的点扩散函数的斑点图。图4B绘示使用光学组件101结合相位编码组件102的深度信息取得装置100来成像物距为513mm的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长 486.1nm的景物光在不同视场的点扩散函数的斑点图。  FIG. 4A shows the point spread function of the scene light with a wavelength of 656.3nm, a wavelength of 587.6nm and a wavelength of 486.1nm expressed as red, green and blue light bands in different fields of view when the optical component 101 is used to image a scene with an object distance of 513mm. dot plot. Fig. 4B shows that when the depth information acquisition device 100 using the optical component 101 combined with the phase encoding component 102 is used to image a scene with an object distance of 513mm, the wavelengths of 656.3nm, 587.6nm and 486.1nm expressed as red, green and blue light bands Speckle plots of the point spread function of scene light in different fields of view. the

根据本发明的另一实施例,光学组件101的有效焦距为10.82mm、F#为5、全视角大小为10.54度。感测器103对角线长度为2mm。相位编码组件102使用上述的波前方程式进行编码,其中n=3、A3x=A3y=12.7PI、Almxy=0。根据本发明的另一实施例,图5绘示使用光学组件101结合相位编码组件102的深度信息取得装置100来成像不同物距(513mm、790mm及1000mm)的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长486.1nm的景物光在不同视场(即像高位置为0mm、0.7mm及1mm)的点扩散函数的斑点图。  According to another embodiment of the present invention, the effective focal length of the optical assembly 101 is 10.82 mm, F# is 5, and the full viewing angle is 10.54 degrees. The diagonal length of the sensor 103 is 2 mm. The phase encoding component 102 performs encoding using the above-mentioned wavefront equation, where n=3, A 3x =A 3y =12.7PI, A lmxy =0. According to another embodiment of the present invention, FIG. 5 shows the depth information acquisition device 100 using the optical component 101 combined with the phase encoding component 102 to image scenes with different object distances (513mm, 790mm and 1000mm), expressed as red, green and Speckle diagrams of the point spread function of the scene light with a wavelength of 656.3nm, a wavelength of 587.6nm and a wavelength of 486.1nm in the blue light band at different fields of view (that is, the image height positions are 0mm, 0.7mm and 1mm).

根据本发明的再一实施例,光学组件101的有效焦距为10.82mm、F#为5、全视角大小为10.54度。感测器103对角线长度为2mm。相位编码组件102使用上述的波前方程式进行编码,其中n=2、A2x=A2y=19.1PI、A22xy=9.55PI。根据本发明的再一实施例,图6绘示使用光学组件101结合相位编码组件102的深度信息取得装置100来成像不同物距(513mm、790mm及1000mm)的景物时,表示为红、绿及蓝光波段的波长656.3nm、波长587.6nm及波长486.1nm的景物光在不同视场(即像高位置为0mm、0.7mm及1mm))的点扩散函数的斑点图。  According to yet another embodiment of the present invention, the effective focal length of the optical assembly 101 is 10.82 mm, F# is 5, and the full viewing angle is 10.54 degrees. The diagonal length of the sensor 103 is 2mm. The phase encoding component 102 performs encoding using the above wavefront equation, where n=2, A 2x =A 2y =19.1PI, A 22xy =9.55PI. According to yet another embodiment of the present invention, FIG. 6 shows the depth information acquisition device 100 using the optical component 101 combined with the phase encoding component 102 to image scenes with different object distances (513mm, 790mm and 1000mm), expressed as red, green and The speckle diagrams of the point spread function of the scene light with a wavelength of 656.3nm, a wavelength of 587.6nm and a wavelength of 486.1nm in the blue light band at different fields of view (that is, the image height positions are 0mm, 0.7mm and 1mm).

相比于仅使用光学组件101的点扩散函数,由图2A至图6可以看出本发明实施例的深度信息取得装置100在相同物距但不同视场的情况下,其点扩散函数的外观形状的变异程度相当小。为了近一步确认点扩散函数相似性的改善程度,使用希尔伯特空间角度(Hilbert spaceangle)进行点扩散函数的相似性计算。图7显示相同物距但在不同视场的点扩散函数相似性比较图(比较基准物距为790mm)。图8显示不同物距下沿着光轴上点扩散函数相似性比较图。从图7中可以看出,本发明实施例的深度信息取得装置100的点扩散函数在不同视场下的相似性提高(在希尔伯特空间角度中,所计算的数值越小代表相似性越高)。另一方面,从图8中可以看出深度信息取得装置100的光轴上点扩散函数在不同物距时仍具备差异性。  Compared with the point spread function using only the optical component 101, it can be seen from Fig. 2A to Fig. 6 that the appearance of the point spread function of the depth information acquisition device 100 according to the embodiment of the present invention is under the same object distance but different field of view. The degree of variation in shape is fairly small. In order to further confirm the degree of improvement of the similarity of the point spread function, the Hilbert space angle (Hilbert space angle) is used to calculate the similarity of the point spread function. Figure 7 shows the similarity comparison diagram of the point spread function at the same object distance but in different fields of view (the reference object distance is 790mm). Figure 8 shows the similarity comparison diagram of the point spread function along the optical axis under different object distances. It can be seen from FIG. 7 that the similarity of the point spread function of the depth information acquisition device 100 of the embodiment of the present invention is improved under different fields of view (in the Hilbert space angle, the smaller the calculated value is, the smaller the similarity is). higher). On the other hand, it can be seen from FIG. 8 that the point spread function on the optical axis of the depth information acquisition device 100 still has differences at different object distances. the

此外,可依光学组件101或深度信息取得装置100实际工作时的景物光波长波段,由前述的波前编码方程式设计与光学组件101结合的相位编码组件102,并不限于波长656.3nm、波长587.6nm及波长486.1nm 的景物光波段。  In addition, according to the wavelength band of the scene light when the optical component 101 or the depth information acquisition device 100 actually works, the phase encoding component 102 combined with the optical component 101 can be designed according to the aforementioned wavefront encoding equation, and is not limited to wavelengths of 656.3 nm and 587.6 nm. nm and the scene light band with a wavelength of 486.1nm. the

为了使本领域通常知识者可以通过本实施例的教导实施本发明,以下搭配上述景物深度信息取得的装置,另提出一方法实施例。  In order to enable those skilled in the art to implement the present invention through the teaching of this embodiment, another method embodiment is proposed below in combination with the above-mentioned device for obtaining scene depth information. the

图9根据本发明一实施例的深度信息取得方法的步骤流程图。在步骤S901中使用取得装置100取得不同物距的点扩散函数信息。此些点扩散函数信息可通过量测该装置100或根据装置100在不同物距下的设计参数取得。在步骤S902中储存此些点扩散函数信息。另一方面在步骤S903中取得装置100取得一包含深度信息的影像。接下来,在步骤S904中使用已储存的点扩散函数信息分别针对该影像中不同区域影像执行扫瞄及还原比对程序。图10显示一扫描示意图。藉由一滤波核心(filterkernel)104在X方向及Y方向上移动,以对该影像中不同区域及不同物距之景物101、102及103执行扫瞄及还原比对程序。在此还原比对程序可运用维纳滤波器(Wiener filter)或直接逆转(direct inverse)运算来还原影像。该区域影像还原之后,分别求取该些还原影像的均方根差(meansquare error,MSE)并与使用者预先设定的阈值做比较。在步骤S905中即可根据比较结果判断该影像的物距,进而取得其深度信息。此外,在步骤S904中也可采用界线边缘是否分明的方法评价该还原影像品质,进而在步骤S905中判断该影像的物距并取得其深度信息。  FIG. 9 is a flowchart of steps of a method for obtaining depth information according to an embodiment of the present invention. In step S901 , the obtaining device 100 is used to obtain point spread function information of different object distances. Such point spread function information can be obtained by measuring the device 100 or according to design parameters of the device 100 under different object distances. In step S902, the point spread function information is stored. On the other hand, in step S903 the obtaining device 100 obtains an image including depth information. Next, in step S904, the stored point spread function information is used to perform scanning and restoration comparison procedures for different regions of the image. Fig. 10 shows a schematic diagram of scanning. A filter kernel (filterkernel) 104 moves in the X direction and the Y direction, so as to perform scanning and restoration comparison procedures on the scenes 101, 102 and 103 in different regions and different object distances in the image. In the restore comparison program, the Wiener filter or direct inverse operation can be used to restore the image. After the images in the area are restored, the mean square error (MSE) of the restored images is calculated respectively and compared with the threshold value preset by the user. In step S905, the object distance of the image can be determined according to the comparison result, and then the depth information thereof can be obtained. In addition, in step S904 , the quality of the reconstructed image may also be evaluated by determining whether the boundaries and edges are clear, and then in step S905 , the object distance of the image is determined and the depth information thereof is obtained. the

根据本发明一实施例,所拍摄景物范围介于513mm与1000mm之间,同时在513,790,900,980以及1000mm处均有一个Lena景物,这些景物除了所在物距不同之外同时也放置于不同视角。图11A显示物距为1000mm的还原影像。图11B显示物距为980mm的还原影像。图11C显示物距为900mm的还原影像。图11D显示物距为790mm的还原影像。图11E显示物距为513mm的还原影像。因为使用物距为1000mm时的点扩散函数信息执行扫瞄及还原比对程序,故相比于其它物距的影像,物距为1000mm的还原效果最佳,其均方根差(MSE)为2.4×10-7。因此在步骤S905中即可得知此影像的深度的信息为1000mm。  According to an embodiment of the present invention, the shooting range of the scene is between 513mm and 1000mm, and at the same time there is a Lena scene at 513, 790, 900, 980 and 1000mm, these scenes are also placed in the different perspectives. FIG. 11A shows a restored image with an object distance of 1000 mm. FIG. 11B shows a restored image with an object distance of 980 mm. FIG. 11C shows a restored image with an object distance of 900 mm. FIG. 11D shows a restored image with an object distance of 790 mm. FIG. 11E shows a restored image with an object distance of 513 mm. Because the point spread function information when the object distance is 1000mm is used to perform the scanning and restoration comparison procedures, compared with images with other object distances, the restoration effect of the object distance is 1000mm is the best, and its root mean square error (MSE) is 2.4×10 -7 . Therefore, in step S905 , it can be known that the depth information of the image is 1000 mm.

现有技术的系统,其后端影像处理时需同时考虑点扩散函数随物距以及视场所造成的影响。本发明实施例通过具有编码组件102的取得装置100,使其不同视场条件的点扩散函数相似性提高,并保持轴上点扩散函数的差异性,进而通过轴上点扩散函数在不同物距的变化情形 得到景物的深度信息。本发明的技术内容及技术特点已揭示如上,然而本领域技术人员仍可能基于本发明的教示及揭示而作种种不背离本发明精神的替换及修饰。因此,本发明的保护范围应不限于实施例所揭示者,而应包括各种不背离本发明的替换及修饰,并为申请专利范围所涵盖。  In the prior art system, the impact of the point spread function along with the object distance and field of view needs to be considered at the same time during the back-end image processing. In the embodiment of the present invention, the obtaining device 100 with the encoding component 102 improves the similarity of the point spread function of different field of view conditions, and maintains the difference of the point spread function on the axis, and then through the point spread function on the axis at different object distances The change situation of the scene gets the depth information of the scene. The technical content and technical features of the present invention have been disclosed above, but those skilled in the art may still make various substitutions and modifications based on the teaching and disclosure of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to those disclosed in the embodiments, but should include various replacements and modifications that do not depart from the present invention, and are covered by the scope of the patent application. the

Claims (10)

1.一种景物深度信息取得装置,包含:1. A device for acquiring scene depth information, comprising: 一光学组件;以及an optical assembly; and 一编码组件,其中,该编码组件置于行经该光学组件的景物光的路径上,用以调变该光学组件的点扩散函数,该编码组件为轴对称编码组件,该编码组件的编码用相互正交的坐标系统表示,并由方程式W(x,y)=∑Anxx2n+Anyy2n+Almxyx1ym表示,其中x及y分别为该编码组件x轴方向及y轴方向的座标位置、n为正整数、1+m为偶数、Anx及Any分别为第n项在x轴方向及y轴方向上的系数大小、Almxy为xy耦合项的系数大小,或者方程式W(x,y)由壬尼克多项式表示,其中该编码组件为波前相位编码组件;An encoding component, wherein the encoding component is placed on the path of the scene light passing through the optical component to adjust the point spread function of the optical component, the coding component is an axisymmetric coding component, and the coding of the coding component uses mutual Orthogonal coordinate system representation, and represented by the equation W(x, y)=∑A nx x 2n +A ny y 2n +A lmxy x 1 y m , where x and y are the x-axis direction and y of the encoding component respectively The coordinate position in the axial direction, n is a positive integer, 1+m is an even number, A nx and Any are the coefficient sizes of the nth item in the x-axis direction and the y-axis direction, Al lmxy is the coefficient size of the xy coupling item , or the equation W(x, y) is represented by a nononic polynomial, where the encoding component is a wavefront phase encoding component; 扫描该取得影像的区域,并根据该点扩散函数信息执行还原比对程序;以及Scanning the area where the image is obtained, and performing a restoration comparison procedure according to the point spread function information; and 根据该还原比对程序的结果取得一深度信息。Obtain a depth information according to the result of the reduction comparison program. 2.根据权利要求1所述的装置,其中该光学组件为单一透镜、一透镜组或一反射成像镜组。2. The device according to claim 1, wherein the optical component is a single lens, a lens group or a reflective imaging mirror group. 3.根据权利要求1所述的装置,其中该编码组件置于该装置的光圈附近、出瞳面、出瞳面附近、入瞳面或入瞳面附近。3. The device according to claim 1, wherein the encoding component is placed near the aperture, the exit pupil plane, near the exit pupil plane, the entrance pupil plane or near the entrance pupil plane of the device. 4.根据权利要求1所述的装置,其中该编码组件为一折射组件或一衍射组件或同时具有上述两者光学性质的组件。4. The device according to claim 1, wherein the encoding element is a refractive element or a diffractive element or an element having both optical properties. 5.根据权利要求1所述的装置,其中该编码组件与该光学组件合而为一。5. The device of claim 1, wherein the encoding component is integrated with the optical component. 6.一种景物深度信息取得的方法,包含:6. A method for obtaining depth information of a scene, comprising: 通过一光学装置取得一影像;obtaining an image through an optical device; 取得该光学装置至少一点扩散函数信息;obtaining at least one point of spread function information of the optical device; 扫描该取得影像的区域,并根据该点扩散函数信息执行还原比对程序;以及Scanning the area where the image is obtained, and performing a restoration comparison procedure according to the point spread function information; and 根据该还原比对程序的结果取得一深度信息;obtaining a depth information according to the result of the reduction comparison program; 该光学装置具备一编码组件,该编码组件为轴对称编码组件,该编码组件的编码用相互正交的坐标系统表示,并由方程式W(x,y)=∑Anxx2n+Anyy2n+Almxyx1ym表示,其中x及y分别为该编码组件x轴方向及y轴方向的座标位置、n为正整数、1+m为偶数、Anx及Any分别为第n项在x轴方向及y轴方向上的系数大小、Almxy为xy耦合项的系数大小,或者方程式W(x,y)由壬尼克多项式表示,其中该编码组件为波前相位编码组件。The optical device has an encoding component, which is an axisymmetric encoding component, and the encoding of the encoding component is expressed by a mutually orthogonal coordinate system, and is represented by the equation W(x, y)=∑A nx x 2n +A ny y 2n +A lmxy x 1 y m , where x and y are the coordinate positions of the encoding component in the x-axis direction and y-axis direction, n is a positive integer, 1+m is an even number, A nx and Any are respectively The magnitude of the coefficient of the n term in the x-axis direction and the y-axis direction, A lmxy is the coefficient magnitude of the xy coupling term, or the equation W(x, y) is represented by a nononic polynomial, wherein the encoding component is a wavefront phase encoding component. 7.根据权利要求6所述的方法,其中该点扩散函数信息通过量测该光学装置或根据该光学装置的设计参数取得。7. The method according to claim 6, wherein the point spread function information is obtained by measuring the optical device or according to design parameters of the optical device. 8.根据权利要求6所述的方法,其中该还原比对程序运用维纳滤波器或直接逆转运算。8. The method of claim 6, wherein the uncomparison procedure uses a Wiener filter or a direct inverse operation. 9.根据权利要求6所述的方法,其中该还原比对程序包含均方根差运算。9. The method according to claim 6, wherein the back-to-back comparison procedure comprises a root mean square difference operation. 10.根据权利要求9所述的方法,其中该还原比对程序另包含将该均方差运算结果与一使用者设定的阈值做比较。10. The method according to claim 9, wherein the restore comparison procedure further comprises comparing the mean square error calculation result with a user-set threshold.
CN 200910119330 2009-03-24 2009-03-24 Method and device for obtaining scene depth information Expired - Fee Related CN101846798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910119330 CN101846798B (en) 2009-03-24 2009-03-24 Method and device for obtaining scene depth information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910119330 CN101846798B (en) 2009-03-24 2009-03-24 Method and device for obtaining scene depth information

Publications (2)

Publication Number Publication Date
CN101846798A CN101846798A (en) 2010-09-29
CN101846798B true CN101846798B (en) 2013-02-27

Family

ID=42771468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910119330 Expired - Fee Related CN101846798B (en) 2009-03-24 2009-03-24 Method and device for obtaining scene depth information

Country Status (1)

Country Link
CN (1) CN101846798B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI467226B (en) 2011-11-15 2015-01-01 Ind Tech Res Inst Microscope system for phase object

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1575431A (en) * 2001-08-31 2005-02-02 科罗拉多州大学评议会 Optical system with improved modulation transfer function using a phase mask with constant phase in the central region
US6928182B1 (en) * 1998-10-15 2005-08-09 Kui Ming Chui Imaging
CN101118317A (en) * 2002-02-27 2008-02-06 Cdm光学有限公司 Optimal Image Processing for Wavefront Encoded Imaging Systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928182B1 (en) * 1998-10-15 2005-08-09 Kui Ming Chui Imaging
CN1575431A (en) * 2001-08-31 2005-02-02 科罗拉多州大学评议会 Optical system with improved modulation transfer function using a phase mask with constant phase in the central region
CN101118317A (en) * 2002-02-27 2008-02-06 Cdm光学有限公司 Optimal Image Processing for Wavefront Encoded Imaging Systems

Also Published As

Publication number Publication date
CN101846798A (en) 2010-09-29

Similar Documents

Publication Publication Date Title
TWI399524B (en) Method and apparatus for extracting scenery depth imformation
JP5358039B1 (en) Imaging device
JP6545997B2 (en) Image processing device
WO2013080552A1 (en) Imaging device and imaging system
EP2581877A2 (en) System and method for depth from defocus imaging
CN104834088B (en) Wavefront coding imaging system and super-resolution processing method based on single image amplification
CN102472621B (en) Image processing apparatus and image processing method
CN107995424A (en) Depth-map-based light field all-focus image generation method
KR20170094968A (en) Member for measuring depth between camera module, and object and camera module having the same
Kagawa et al. A three‐dimensional multifunctional compound‐eye endoscopic system with extended depth of field
JP6376809B2 (en) Projection device and imaging device used in three-dimensional shape measurement system
CN107590828B (en) Blurring processing method and device for shot image
CN113574436A (en) Imaging device, image capturing optical system, and mobile apparatus
JP4807986B2 (en) Image input device
CN107613239A (en) Video communication background display method and device
CN101846798B (en) Method and device for obtaining scene depth information
CN107529020B (en) Image processing method and apparatus, electronic apparatus, and computer-readable storage medium
US20150062399A1 (en) Imaging apparatus and method for controlling imaging apparatus
CN104949659B (en) Distance detection device and method, imaging device and parallax amount detecting device
JP2013236291A (en) Stereoscopic imaging apparatus
CN107563302B (en) Face restoration method and device for removing glasses
JP6446794B2 (en) Stereo camera and optical system
CN107742071A (en) Equipment unlocking method and electronic device for online game
JP2018164249A (en) Method for modeling image device, corresponding computer program product, and computer-readable carrier medium
US9869859B2 (en) Focus depth extension image forming optical system, focus depth extension element, and imaging apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130227