TWI613904B - Stereo image generating method and electronic apparatus utilizing the method - Google Patents

Stereo image generating method and electronic apparatus utilizing the method Download PDF

Info

Publication number
TWI613904B
TWI613904B TW105131125A TW105131125A TWI613904B TW I613904 B TWI613904 B TW I613904B TW 105131125 A TW105131125 A TW 105131125A TW 105131125 A TW105131125 A TW 105131125A TW I613904 B TWI613904 B TW I613904B
Authority
TW
Taiwan
Prior art keywords
image
camera
electronic device
reference image
module
Prior art date
Application number
TW105131125A
Other languages
Chinese (zh)
Other versions
TW201801528A (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 US15/369,906 priority Critical patent/US10469821B2/en
Publication of TW201801528A publication Critical patent/TW201801528A/en
Application granted granted Critical
Publication of TWI613904B publication Critical patent/TWI613904B/en

Links

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Studio Devices (AREA)

Abstract

一種立體影像產生方法及使用此方法的電子裝置,此電子裝置包括適於拍攝立體影像的第一相機與第二相機,且第一相機的解析度大於第二相機的解析度。此方法利用第一相機拍攝第一影像,並利用第二相機拍攝第二影像,接著將第二影像放大至第一相機的解析度,而利用第一影像與放大後的第二影像產生深度圖。然後,參考此深度圖,將第一影像重新投射以重建第二影像的參考影像。之後則偵測參考影像中的遮蔽區域,並利用放大後的第二影像填補此遮蔽區域。最後產生包括第一影像及填補後的參考影像的立體影像。A method for generating a stereo image and an electronic device using the method. The electronic device includes a first camera and a second camera suitable for capturing stereo images, and a resolution of the first camera is greater than a resolution of the second camera. In this method, a first camera is used to capture a first image, a second camera is used to capture a second image, and then the second image is enlarged to the resolution of the first camera, and a depth map is generated using the first image and the enlarged second image. . Then, referring to the depth map, the first image is reprojected to reconstruct a reference image of the second image. Then, the masked area in the reference image is detected, and the masked area is filled with the enlarged second image. Finally, a stereo image including a first image and a filled reference image is generated.

Description

立體影像產生方法及使用此方法的電子裝置Stereoscopic image generation method and electronic device using the method

本發明是有關於一種影像處理方法及裝置,且特別是有關於一種立體影像產生方法及使用此方法的電子裝置。The present invention relates to an image processing method and device, and more particularly, to a method for generating a three-dimensional image and an electronic device using the method.

隨著影像擷取技術的日益進步,數位相機的畫素大幅增加,但相機尺寸則相對縮小,而可配置在手機、平板電腦等可攜式電子裝置上,讓使用者能夠隨時隨地拍攝影像。目前市面上有部分手機更配置有雙鏡頭相機,藉由雙鏡頭相機拍攝左右不同視角的影像,可生成立體影像提供使用者觀看。此外,根據左右影像中對應物件之間的像差,相機可進一步計算出影像中各個物件的深度資訊,並應用於物件偵測、景深調整、焦距切換等進階功能,而增加相機的運用空間。With the increasing progress of image capture technology, the digital camera's pixels have increased significantly, but the camera size has been relatively reduced, and it can be deployed on portable electronic devices such as mobile phones and tablets, allowing users to shoot images anytime, anywhere. At present, some mobile phones on the market are further equipped with a dual-lens camera. The dual-lens camera can capture images with different angles of left and right, which can generate stereo images for users to watch. In addition, according to the aberrations between the corresponding objects in the left and right images, the camera can further calculate the depth information of each object in the image and apply it to advanced functions such as object detection, depth of field adjustment, and focus switching to increase the use of the camera .

然而,在相機上配置規格相同的雙鏡頭等同增加一倍的成本,此將使得配置雙鏡頭相機的裝置成本大幅增加。因此,如何能以最少的成本實現類似上述雙鏡頭相機所提供的功能,實為本領域業者極欲解決的問題之一。However, arranging a dual lens with the same specifications on the camera doubles the cost, which will greatly increase the cost of the device with a dual lens camera. Therefore, how to realize the functions similar to those provided by the dual-lens camera at the least cost is really one of the problems that the industry players are eager to solve.

本發明提供一種電子裝置及其立體影像產生方法,藉由對低解析度相機及高解析度相機所拍攝影像進行處理,可產生高解析度的立體影像。The present invention provides an electronic device and a method for generating a stereo image. By processing images captured by a low-resolution camera and a high-resolution camera, a high-resolution stereo image can be generated.

本發明的立體影像產生方法適用於包括第一相機與第二相機的電子裝置,其中第一相機與第二相機適於拍攝立體影像,且第一相機的解析度大於第二相機的解析度。此方法利用第一相機拍攝第一影像,並利用第二相機拍攝第二影像,並將第二影像放大(upscale)至第一相機的解析度,而利用第一影像與放大後的第二影像產生深度圖。然後,參考此深度圖,將第一影像重新投射以重建第二影像的參考影像。之後則偵測參考影像中的遮蔽區域,並利用放大後的第二影像填補此遮蔽區域。最後產生包括第一影像及填補後的參考影像的立體影像。The method for generating a stereo image of the present invention is applicable to an electronic device including a first camera and a second camera, wherein the first camera and the second camera are suitable for capturing a stereo image, and the resolution of the first camera is greater than the resolution of the second camera. In this method, a first camera is used to capture a first image, a second camera is used to capture a second image, and the second image is upscaled to the resolution of the first camera, and the first image and the enlarged second image are used. Generate a depth map. Then, referring to the depth map, the first image is reprojected to reconstruct a reference image of the second image. Then, the masked area in the reference image is detected, and the masked area is filled with the enlarged second image. Finally, a stereo image including a first image and a filled reference image is generated.

在本發明的一實施例中,上述參考深度圖,將該第一影像重新投射以重建第二影像的參考影像的步驟更包括參考深度圖中的深度資訊及第一相機與第二相機之間的基線(baseline)距離,計算第一影像與第二影像的參考影像之間的像差資訊,而根據此像差資訊擷取重新投射於三維空間中的第一影像的影像資料,以作為第二影像的參考影像。In an embodiment of the present invention, the step of re-projecting the first image to reconstruct the reference image of the second image in the reference depth map further includes depth information in the reference depth map and between the first camera and the second camera. Baseline distance, calculate the aberration information between the first image and the reference image of the second image, and extract the image data of the first image re-projected in the three-dimensional space based on this aberration information as the first Reference image for two images.

在本發明的一實施例中,上述參考深度圖,將第一影像重新投射以重建第二影像的參考影像的步驟更包括偵測電子裝置的使用者的兩眼距離,而根據兩眼距離及第一相機與第二相機之間的基線距離,計算基線距離調整值,然後參考深度圖及此基線距離調整值,將第一影像重新投射以重建第二影像的參考影像,使得參考影像與第一影像之間的像差資訊符合所述兩眼距離。In an embodiment of the present invention, in the above reference depth map, the step of reprojecting the first image to reconstruct the reference image of the second image further includes detecting a binocular distance of the user of the electronic device, and according to the binocular distance and Baseline distance between the first camera and the second camera, calculate the baseline distance adjustment value, and then refer to the depth map and this baseline distance adjustment value to reproject the first image to reconstruct the reference image of the second image so that the reference image and the The aberration information between an image matches the distance between the two eyes.

在本發明的一實施例中,上述參考深度圖及基線距離調整值,重新投射第一影像以重建第二影像的參考影像的步驟包括根據基線距離調整值,調整第二相機的位置並計算調整後的位置座標,擷取深度圖中的深度資訊,並轉換深度資訊的座標至世界座標系(world coordinate system),以及根據轉換後的深度資訊及第二相機的調整後的位置座標,將第一影像重新投射以重建第二影像的參考影像。In an embodiment of the present invention, the step of reprojecting the first image to reconstruct the reference image of the second image with the reference depth map and the baseline distance adjustment value includes adjusting the position of the second camera and calculating the adjustment according to the baseline distance adjustment value. The position coordinates of the camera, retrieve the depth information in the depth map, and convert the coordinates of the depth information to the world coordinate system, and according to the converted depth information and the adjusted position coordinates of the second camera, An image is reprojected to reconstruct a reference image of a second image.

在本發明的一實施例中,上述偵測參考影像中的遮蔽區域的步驟包括將參考影像與放大後該第二影像進行匹配,並取參考影像中未與第二影像匹配的區域作為遮蔽區域。In an embodiment of the present invention, the step of detecting a masked area in the reference image includes matching the reference image with the enlarged second image, and taking an area in the reference image that does not match the second image as the masked area. .

在本發明的一實施例中,上述偵測參考影像中的遮蔽區域的步驟包括將偵測參考影像中的空白區域以作為遮蔽區域。In an embodiment of the present invention, the step of detecting a masked area in the reference image includes detecting a blank area in the reference image as a masked area.

在本發明的一實施例中,在上述偵測參考影像中的遮蔽區域,並利用放大後的第二影像填補遮蔽區域的步驟之後,所述方法更偵測第一影像與第二影像中的主要物件,並調整第二影像的參考影像與第一影像之間的像差,使得主要物件聚集於電子裝置的顯示平面。In an embodiment of the present invention, after detecting the occluded area in the reference image and using the enlarged second image to fill the occluded area, the method further detects the first image and the second image. The main object, and adjusting the aberration between the reference image of the second image and the first image, so that the main object is gathered on the display plane of the electronic device.

本發明的電子裝置包括第一相機、第二相機及影像處理電路。其中,影像處理電路是耦接該第一相機與第二相機,用以處理分別由第一相機與第二相機拍攝的第一影像與第二影像。影像處理電路中包括解析度放大模組、深度產生模組、影像重建模組、遮蔽區域偵測模組、遮蔽區域填補模組及立體影像產生模組。其中,第一相機與第二相機用以分別擷取產生立體影像所需的左眼影像與右眼影像其中之一,其中第一相機的解析度大於第二相機的解析度。解析度放大模組是用以將第二影像放大至第一相機的解析度。深度產生模組是用以利用第一影像與放大後的第二影像產生深度圖。影像重建模組是用以參考深度圖,而將第一影像重新投射以重建第二影像的參考影像。遮蔽區域偵測模組是用以偵測參考影像中的遮蔽區域,遮蔽區域填補模組則是用以利用放大後的第二影像填補遮蔽區域。立體影像產生模組是用以產生包括第一影像及填補後的參考影像的立體影像。The electronic device of the present invention includes a first camera, a second camera, and an image processing circuit. The image processing circuit is coupled to the first camera and the second camera, and is configured to process the first image and the second image captured by the first camera and the second camera, respectively. The image processing circuit includes a resolution amplification module, a depth generation module, an image reconstruction module, a masked area detection module, a masked area filling module, and a three-dimensional image generation module. The first camera and the second camera are respectively used to capture one of a left-eye image and a right-eye image required for generating a stereo image, and a resolution of the first camera is greater than a resolution of the second camera. The resolution enlargement module is used to enlarge the second image to the resolution of the first camera. The depth generation module is used to generate a depth map using the first image and the enlarged second image. The image reconstruction module is used to reference the depth map, and reprojects the first image to reconstruct the reference image of the second image. The masked area detection module is used to detect the masked area in the reference image, and the masked area filling module is used to fill the masked area with the enlarged second image. The stereo image generation module is used to generate a stereo image including a first image and a filled reference image.

在本發明的一實施例中,上述的影像重建模組會參考深度圖中的深度資訊及第一相機與第二相機之間的基線距離,計算第一影像與第二影像的參考影像之間的像差資訊,並據此擷取重新投射於三維空間中的第一影像的影像資料,以重建第二影像的參考影像。In an embodiment of the present invention, the image reconstruction module mentioned above refers to the depth information in the depth map and the baseline distance between the first camera and the second camera to calculate the reference image between the first image and the second image. The aberration information of the image and capture the image data of the first image re-projected in the three-dimensional space accordingly to reconstruct the reference image of the second image.

在本發明的一實施例中,上述的影像處理電路更包括兩眼距離偵測模組,其是用以偵測電子裝置的使用者的兩眼距離。而上述的影像重建模組則會根據兩眼距離及第一相機與第二相機之間的基線距離,計算基線距離調整值,並參考深度圖及基線距離調整值,將第一影像重新投射以重建第二影像的參考影像,使得參考影像與第一影像之間的像差資訊符合兩眼距離。In an embodiment of the present invention, the image processing circuit further includes a binocular distance detection module, which is used to detect binocular distance of a user of the electronic device. The above image reconstruction module calculates the baseline distance adjustment value based on the distance between the two eyes and the baseline distance between the first camera and the second camera, and refers to the depth map and the baseline distance adjustment value to reproject the first image to The reference image of the second image is reconstructed so that the aberration information between the reference image and the first image conforms to the binocular distance.

在本發明的一實施例中,上述的影像重建模組更根據基線距離調整值,調整第二相機的位置並計算調整後的位置座標,擷取深度圖中的深度資訊,並將此深度資訊的座標轉換至世界座標系,以及根據轉換後的深度資訊及第二相機的調整後的位置座標,將第一影像重新投射以重建第二影像的參考影像。In an embodiment of the present invention, the image reconstruction module further adjusts the position of the second camera and calculates the adjusted position coordinates according to the baseline distance adjustment value, retrieves the depth information in the depth map, and uses the depth information The coordinates of the image are converted to the world coordinate system, and the first image is re-projected to reconstruct the reference image of the second image according to the converted depth information and the adjusted position coordinates of the second camera.

在本發明的一實施例中,上述的遮蔽區域偵測模組包括將參考影像與放大後的第二影像進行匹配,並取參考影像中未與第二影像匹配的區域作為遮蔽區域。In an embodiment of the present invention, the above-mentioned masked area detection module includes matching the reference image with the enlarged second image, and selecting a region in the reference image that does not match the second image as a masked area.

在本發明的一實施例中,上述的遮蔽區域偵測模組包括偵測參考影像中的空白區域以作為遮蔽區域。In an embodiment of the present invention, the above-mentioned masked area detection module includes detecting a blank area in the reference image as a masked area.

在本發明的一實施例中,上述的影像處理電路更包括物件偵測模組及像差調整模組,其中物件偵測模組是用以偵測第一影像與第二影像中的主要物件,像差調整模組則是用以調整第二影像的參考影像與第一影像之間的像差,使得主要物件聚集於電子裝置的顯示平面。In an embodiment of the present invention, the image processing circuit further includes an object detection module and an aberration adjustment module, wherein the object detection module is used to detect a main object in the first image and the second image. The aberration adjustment module is used to adjust the aberration between the reference image of the second image and the first image, so that the main objects are gathered on the display plane of the electronic device.

基於上述,本發明的電子裝置及其立體影像產生方法藉由將低解析度相機所拍攝的影像放大,並與高解析度相機所拍攝的影像結合以算出影像的深度圖,據此重建出與低解析度相機所拍攝影像相對應的高解析度參考影像,而可與高解析度相機所拍攝的高解析度影像結合而生成高解析度的立體影像。Based on the above, the electronic device and the method for generating a stereo image of the present invention calculate the depth map of the image by enlarging the image captured by the low-resolution camera and combining the image captured by the high-resolution camera, and reconstructing the The high-resolution reference image corresponding to the image captured by the low-resolution camera can be combined with the high-resolution image captured by the high-resolution camera to generate a high-resolution stereo image.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.

本發明採用低解析度相機搭配高解析度相機的架構,藉以減少裝置成本。其中,本發明利用高解析度相機所拍攝的高解析度影像重建低解析度相機的影像,並利用低解析度相機所拍攝的低解析度影像填補此重建影像中的遮蔽區域,最終將此重建影像與高解析度相機所拍攝的影像結合,而可產生高解析度的立體影像。本發明還進一步偵測使用者的兩眼距離,而用以調整相機的基線(baseline)距離,並據以重建低解析度相機的影像,使得重建影像與高解析度相機所拍攝的影像之間的像差資訊符合使用者的兩眼距離,並使得所產生的立體影像適於使用者觀看。The invention adopts the structure of a low-resolution camera and a high-resolution camera, thereby reducing the device cost. Wherein, the present invention uses a high-resolution image taken by a high-resolution camera to reconstruct an image of a low-resolution camera, and uses a low-resolution image taken by a low-resolution camera to fill a masked area in the reconstructed image, and finally reconstructs this The image is combined with the image taken by a high-resolution camera to produce a high-resolution stereo image. The invention further detects the distance between the eyes of the user, and adjusts the baseline distance of the camera, and reconstructs the image of the low-resolution camera accordingly, so that the reconstructed image and the image captured by the high-resolution camera The aberration information conforms to the binocular distance of the user, and makes the generated stereoscopic image suitable for the user to view.

圖1是依照本發明一實施例所繪示的電子裝置的方塊圖。請參照圖1,本實施例的電子裝置10例如是數位相機、數位攝影機(Digital Video Camcorder,DVC),或是手機、平板電腦等可攜式電子裝置,其可提供攝像功能。電子裝置10中包括第一相機12、第二相機14與影像處理電路16,其功能分述如下:FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. Referring to FIG. 1, the electronic device 10 of this embodiment is, for example, a digital camera, a digital video camcorder (DVC), or a portable electronic device such as a mobile phone or a tablet computer, which can provide a camera function. The electronic device 10 includes a first camera 12, a second camera 14, and an image processing circuit 16. The functions are described as follows:

第一相機12與第二相機14分別包括光學鏡頭、致動器、光圈、快門及影像感測器等元件,其中光學鏡頭是由數個凹凸透鏡組合而成,其是由步進馬達或音圈馬達(Voice Coil Motor,VCM)等致動器驅動以改變透鏡之間的相對位置,從而改變相機的焦距。快門是用以控制光進入相機的時間長短,其與光圈的組合會影響影像感測器所擷取影像的曝光量。影像感測器中配置有電荷耦合元件(Charge Coupled Device,CCD)、互補性氧化金屬半導體(Complementary Metal-Oxide Semiconductor,CMOS)元件或其他種類的感光元件,而可感測進入光學鏡頭的光線強度以產生影像。在本實施例中,第一相機12與第二相機14分別為用以拍攝立體影像的左相機及右相機其中之一,而用以擷取產生立體影像所需的左眼影像與右眼影像,其中第一相機12的解析度預設大於第二相機14的解析度。The first camera 12 and the second camera 14 include components such as an optical lens, an actuator, an aperture, a shutter, and an image sensor. The optical lens is a combination of a plurality of meniscus lenses, and is composed of a stepping motor or a sound sensor. An actuator such as a Voice Coil Motor (VCM) is driven to change the relative position between the lenses, thereby changing the focal length of the camera. The shutter is used to control the length of time that light enters the camera. The combination of the shutter and the aperture will affect the exposure of the image captured by the image sensor. The image sensor is equipped with a Charge Coupled Device (CCD), a Complementary Metal-Oxide Semiconductor (CMOS) element, or other types of light sensing elements, and can sense the intensity of light entering the optical lens To produce an image. In this embodiment, the first camera 12 and the second camera 14 are respectively one of a left camera and a right camera for capturing a stereo image, and are used for capturing a left-eye image and a right-eye image required for generating a stereo image. , Where the resolution of the first camera 12 is preset to be greater than the resolution of the second camera 14.

影像處理電路16中包括解析度放大模組161、深度產生模組162、影像重建模組163、遮蔽區域偵測模組164、遮蔽區域填補模組165及立體影像產生模組166。在一實施例中,上述影像處理電路16中的各個模組例如是以積體電路(Integrate Circuit,IC)實作,而可實現本發明實施例所述的立體影像產生方法。在另一實施例中,上述的影像處理電路16例如包括儲存裝置及處理器,其中儲存裝置例如是具有資料儲存功能的硬碟或記憶體,而處理器則例如是中央處理單元(Central Processing Unit,CPU)、微處理器(Microprocessor)、數位訊號處理器、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝(Programmable Logic Device,PLD)或其他具有資料運算功能的裝置。上述影像處理電路16中的各個模組例如是儲存在儲存裝置中的電腦程式,這些程式可經由處理器載入,而執行本發明實施例所述的立體影像產生方法。The image processing circuit 16 includes a resolution amplification module 161, a depth generation module 162, an image reconstruction module 163, a masked area detection module 164, a masked area filling module 165, and a three-dimensional image generation module 166. In an embodiment, each module in the image processing circuit 16 is implemented by an integrated circuit (Integrate Circuit, IC), for example, so as to implement the method for generating a three-dimensional image according to the embodiment of the present invention. In another embodiment, the image processing circuit 16 described above includes, for example, a storage device and a processor. The storage device is, for example, a hard disk or a memory having a data storage function, and the processor is, for example, a Central Processing Unit. , CPU), Microprocessor, Digital Signal Processor, Programmable Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), or other Device with data calculation function. Each module in the image processing circuit 16 is, for example, a computer program stored in a storage device, and these programs can be loaded by a processor to execute the three-dimensional image generating method according to the embodiment of the present invention.

詳言之,圖2是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。請同時參照圖1及圖2,本實施例的方法適用於上述圖1的電子裝置10,以下即搭配圖1中電子裝置10的各項元件,說明本實施例之立體影像產生方法的詳細步驟:Specifically, FIG. 2 is a flowchart of a method for generating a three-dimensional image of an electronic device according to an embodiment of the present invention. Please refer to FIG. 1 and FIG. 2 at the same time. The method in this embodiment is applicable to the electronic device 10 in FIG. 1 described above. The following describes the detailed steps of the method for generating a stereo image in this embodiment with various components of the electronic device 10 in FIG. 1. :

首先,利用第一相機12拍攝第一影像,並利用第二相機14拍攝第二影像(步驟S202)。其中,電子裝置10例如是在使用者按下快門鍵後,即同時觸發第一相機12及第二相機14拍攝影像。First, a first image is captured by the first camera 12 and a second image is captured by the second camera 14 (step S202). The electronic device 10 triggers the first camera 12 and the second camera 14 to capture images at the same time after the user presses the shutter button, for example.

接著,由解析度放大模組161將第二相機14所拍攝的第二影像放大至第一相機12的解析度(步驟S204)。其中,解析度放大模組161例如是採用內插法(interpolation)將低解析度的第二影像放大至與高解析度的第一影像相同的解析度。即,放大後的第二影像的尺寸將與第一影像的尺寸相同。Next, the resolution enlargement module 161 enlarges the second image captured by the second camera 14 to the resolution of the first camera 12 (step S204). The resolution enlargement module 161 uses, for example, interpolation to enlarge the second image with a low resolution to the same resolution as the first image with a high resolution. That is, the size of the enlarged second image will be the same as the size of the first image.

上述由解析度放大模組161放大後的第二影像將與第一相機12所擷取的第一影像一同傳輸至深度產生模組162,而由深度產生模組162利用此第一影像與放大後的第二影像產生深度圖(步驟S206)。詳言之,深度產生模組162例如會直接計算第一影像及放大後第二影像中相對應之各個像素的像差,並依據第一相機12及第二相機14拍攝第一影像及第二影像的焦距、相機間的基線距離以及各個像素的像差,估測各個像素的深度。其中,深度產生模組162例如是依據各個像素在第一影像及放大後第二影像中的位置,計算各個像素在第一影像及放大後第二影像之間的位移,以作為像差。The above-mentioned second image enlarged by the resolution enlargement module 161 is transmitted to the depth generating module 162 together with the first image captured by the first camera 12, and the depth generating module 162 uses this first image and enlargement A depth map is generated after the second image (step S206). In detail, for example, the depth generation module 162 directly calculates aberrations of corresponding pixels in the first image and the enlarged second image, and captures the first image and the second image according to the first camera 12 and the second camera 14 The focal length of the image, the baseline distance between the cameras, and the aberration of each pixel estimate the depth of each pixel. The depth generation module 162 calculates the displacement of each pixel between the first image and the enlarged second image based on the position of each pixel in the first image and the enlarged second image, as aberration.

深度產生模組162所產生的深度圖將傳輸至影像重建模組163,而影像重建模組163則會參考此深度圖,重新投射第一影像以重建第二影像的參考影像(步驟S208)。詳言之,影像重建模組163例如會參考深度圖中的深度資訊及第一相機12與第二相機14之間的基線距離,計算第一影像與第二影像的參考影像之間的像差資訊,並據此擷取重新投射於三維空間的第一影像的影像資料,以重建第二影像的參考影像。藉此,可模擬出由第二相機14所在位置拍攝所得的高解析度影像。The depth map generated by the depth generation module 162 is transmitted to the image reconstruction module 163, and the image reconstruction module 163 refers to the depth map and reprojects the first image to reconstruct the reference image of the second image (step S208). In detail, the image reconstruction module 163, for example, refers to the depth information in the depth map and the baseline distance between the first camera 12 and the second camera 14 to calculate the aberration between the first image and the reference image of the second image. Information, and acquire the image data of the first image re-projected in the three-dimensional space accordingly to reconstruct the reference image of the second image. Thereby, a high-resolution image captured by the position of the second camera 14 can be simulated.

需說明的是,在本實施例中,影像重建模組163是參考深度產生模組162所產生的深度圖來重建第二影像的參考影像。然而,在其他實施例中,影像重建模組163也可以參考由像差產生模組(未繪示)所產生的像差圖(disparity map)來重建第二影像的參考影像。上述的像差產生模組例如會計算第一影像及放大後第二影像中相對應之各個像素的像差(即各個像素在第一影像及放大後第二影像之間的位移),以產生像差圖。It should be noted that, in this embodiment, the image reconstruction module 163 is a reference image that reconstructs the second image with reference to the depth map generated by the depth generation module 162. However, in other embodiments, the image reconstruction module 163 may also refer to a disparity map generated by an aberration generating module (not shown) to reconstruct a reference image of the second image. The above-mentioned aberration generating module calculates, for example, aberrations of respective pixels in the first image and the enlarged second image (that is, the displacement of each pixel between the first image and the enlarged second image) to generate Aberration diagram.

然後,由遮蔽區域偵測模組164偵測參考影像中的遮蔽區域,並由遮蔽區域填補模組165利用放大後的第二影像填補此遮蔽區域(步驟S210)。其中,在一實施例中,由於參考影像與放大後第二影像所涵蓋的區域是相同的,故藉由比較參考影像與放大後第二影像的差異即可找到遮蔽區域。據此,遮蔽區域偵測模組164例如會將參考影像與前述放大後的第二影像進行匹配,並取參考影像中未與第二影像匹配的區域作為遮蔽區域。在另一實施例中,由於參考影像是由第一影像重新投射而得,因此原本第一影像中就被遮蔽的區域在重建影像中將會是空白的。據此,遮蔽區域偵測模組164可直接偵測參考影像中的空白區域以作為遮蔽區域。而遮蔽區域填補模組165則會直接使用放大後的第二影像中與此遮蔽區域相對應的區域的影像來填補遮蔽區域,最終生成高解析度的第二影像的參考影像。Then, the masked area detection module 164 detects a masked area in the reference image, and the masked area filling module 165 fills the masked area with the enlarged second image (step S210). In one embodiment, since the areas covered by the reference image and the enlarged second image are the same, the masked area can be found by comparing the difference between the reference image and the enlarged second image. According to this, for example, the masked area detection module 164 matches the reference image with the aforementioned enlarged second image, and selects a region in the reference image that does not match the second image as a masked area. In another embodiment, since the reference image is re-projected from the first image, the area that was originally masked in the first image will be blank in the reconstructed image. Accordingly, the masked area detection module 164 can directly detect a blank area in the reference image as a masked area. The masked region filling module 165 directly uses the image of the region corresponding to the masked region in the enlarged second image to fill the masked region, and finally generates a reference image of the high-resolution second image.

舉例來說,圖3A至圖3D是依照本發明一實施例所繪示之遮蔽區域的範例。其中,圖3A及圖3B分別繪示電子裝置的左相機(預設具有較高的解析度)所拍攝的影像32以及右相機(預設具有較低的解析度)所拍攝影像的放大影像34,其中放大影像34的解析度與影像32的解析度相同。比較圖3A及圖3B中物件A與物件B的相對位置可知,由於左相機的位置偏左,故可拍攝到視角相對偏左的影像,而由於右相機的位置偏右,故可拍攝到視角相對偏右的影像。其中,若將影像32類比為上述較高解析度的第一影像,則當電子裝置要以此影像32重建影像34的參考影像36時,則會因為影像32中的物件A的右下部分區域32a(如圖3C所示)被物件B遮蔽,而無法在參考影像36中重建出與區域32a重疊的區域36a的影像。此時,電子裝置即可取用影像34中與區域36a相對應區域的影像資料來填補區域36a,最終生成高解析度的參考影像36。For example, FIG. 3A to FIG. 3D are examples of masked regions according to an embodiment of the present invention. 3A and FIG. 3B respectively show an image taken by a left camera (which has a higher resolution by default) 32 and an enlarged image 34 of an image taken by a right camera (which has a lower resolution). , Where the resolution of the enlarged image 34 is the same as the resolution of the image 32. Comparing the relative positions of object A and object B in Figs. 3A and 3B, it can be seen that because the left camera is positioned to the left, an image with a relatively left angle of view can be captured, and because the right camera is positioned to the right, an angle of view can be captured Relatively right image. If the image 32 is analogized to the above-mentioned first image with higher resolution, when the electronic device wants to reconstruct the reference image 36 of the image 34 from this image 32, it will be because of the lower right part of the object A in the image 32 32a (as shown in FIG. 3C) is blocked by the object B, and the image of the region 36a overlapping with the region 32a cannot be reconstructed in the reference image 36. At this time, the electronic device can take the image data of the area corresponding to the area 36a in the image 34 to fill the area 36a, and finally generate a high-resolution reference image 36.

回到圖2的流程,在完成遮蔽區域的填補之後,最後立體影像產生模組166即可產生包括由第一相機12所拍攝的第一影像以及由遮蔽區域填補模組165填補後的參考影像的立體影像(步驟S212)。Returning to the flow of FIG. 2, after the filling of the masked area is completed, the final stereo image generating module 166 can generate a first image captured by the first camera 12 and a reference image filled by the masked area filling module 165. Stereo image (step S212).

藉由上述方法,本實施例的電子裝置即可在使用一個低解析度相機的情況下,仍可產生具有高解析度的左右眼影像的立體影像。With the above method, the electronic device of this embodiment can still generate a stereo image of left and right eye images with high resolution even when a low-resolution camera is used.

需說明的是,電子裝置可能會因為尺寸較小、元件配置較複雜等因素,而挶限相機的配置空間。因此,一般配置雙鏡頭相機的手機,其相機間距僅有1至2公分,此距離與一般人的兩眼距離7.7公分有段差距。而此差距將會使得電子裝置所拍攝的立體影像的像差不足,致使觀看此立體影像的使用者會認為立體效果不佳。針對此問題,本發明即基於上述高低解析度相機的配置,提供了一種可適應性調整第二影像的重建影像與第一影像之間的像差的方法,藉以補償上述差距。It should be noted that, due to factors such as small size and complicated component configuration, the electronic device may limit the configuration space of the camera. Therefore, a mobile phone with a dual-lens camera generally has a camera distance of only 1 to 2 cm, which is a distance from the average eye distance of 7.7 cm. And this gap will make the aberration of the stereo image captured by the electronic device insufficient, so that users viewing the stereo image will think that the stereo effect is not good. In view of this problem, the present invention provides a method for adaptively adjusting the aberration between the reconstructed image of the second image and the first image based on the configuration of the high- and low-resolution cameras, so as to compensate the above-mentioned gap.

詳言之,圖4是依照本發明一實施例所繪示的電子裝置的方塊圖。請參照圖4,本實施例的電子裝置40例如是數位相機、數位攝影機,或是手機、平板電腦等可攜式電子裝置,其可提供攝像功能。電子裝置40中包括第一相機42、第二相機44、影像處理電路46、前相機48及顯示裝置50,其中第一相機42、第二相機44與圖1實施例的第一相機12、第二相機14相同或相似,故其詳細內容在此不再贅述。In detail, FIG. 4 is a block diagram of an electronic device according to an embodiment of the invention. Referring to FIG. 4, the electronic device 40 in this embodiment is, for example, a digital camera, a digital video camera, or a portable electronic device such as a mobile phone or a tablet computer, which can provide a camera function. The electronic device 40 includes a first camera 42, a second camera 44, an image processing circuit 46, a front camera 48, and a display device 50. The first camera 42, the second camera 44, and the first camera 12, The two cameras 14 are the same or similar, so the detailed content will not be repeated here.

與圖1實施例不同的是,本實施例的電子裝置40額外包括前相機48與顯示裝置50。其中,前相機48例如是配置於電子裝置40的正面(相對於第一相機42與第二相機44所配置的背面),用以拍攝電子裝置40的使用者的影像。顯示裝置50則例如是液晶顯示器(Liquid-Crystal Display,LCD)、發光二極體(Light-Emitting Diode,LED)顯示器或其他顯示器,其可顯示電子裝置40所拍攝的立體影像,也可與觸控面板結合為觸控螢幕,而可在顯示拍攝影像的同時,提供使用者藉由觸碰的方式對電子裝置40進行操作。Different from the embodiment in FIG. 1, the electronic device 40 in this embodiment additionally includes a front camera 48 and a display device 50. The front camera 48 is, for example, disposed on the front surface of the electronic device 40 (relative to the rear surfaces of the first camera 42 and the second camera 44), and is used to capture an image of a user of the electronic device 40. The display device 50 is, for example, a liquid crystal display (LCD), a light-emitting diode (LED) display, or another display. The display device 50 can display a three-dimensional image captured by the electronic device 40, and can also be touched with The control panel is combined with a touch screen, and while the captured image is displayed, the user can operate the electronic device 40 by touching it.

另一方面,本實施例的影像處理電路46中包括解析度放大模組461、深度產生模組462、影像重建模組463、遮蔽區域偵測模組464、遮蔽區域填補模組465、立體影像產生模組466、第一影像處理模組467、第二影像處理模組468及兩眼距離偵測模組469。其中,解析度放大模組461、深度產生模組462、遮蔽區域偵測模組464、遮蔽區域填補模組465、立體影像產生模組466的功能係與前述實施例的解析度放大模組161、深度產生模組162、遮蔽區域偵測模組164、遮蔽區域填補模組165、立體影像產生模組166相同或相似,故其詳細內容在此不再贅述。On the other hand, the image processing circuit 46 of this embodiment includes a resolution amplification module 461, a depth generation module 462, an image reconstruction module 463, a masked area detection module 464, a masked area filling module 465, and a stereo image. The generating module 466, the first image processing module 467, the second image processing module 468, and the binocular distance detection module 469. Among them, the functions of the resolution amplification module 461, the depth generation module 462, the masked area detection module 464, the masked area filling module 465, and the three-dimensional image generation module 466 are the same as those of the resolution magnification module 161 of the foregoing embodiment. The depth generation module 162, the masked area detection module 164, the masked area filling module 165, and the three-dimensional image generation module 166 are the same or similar, so the detailed contents are not repeated here.

與圖1實施例不同的是,本實施例的影像處理電路46額外包括第一影像處理模組467、第二影像處理模組468及兩眼距離偵測模組469。其中,第一影像處理模組467及第二影像處理模組468例如會針對第一相機42及第二相機44所擷取的影像訊號進行處理,而得到第一影像及第二影像。第一影像處理模組467及第二影像處理模組468還可對此影像執行亮度、對比度、色溫、白平衡、銳利度或鮮豔度調整,或是雜訊消除等處理,使得處理後的影像適用於後續立體影像的生成。此外,兩眼距離偵測模組469例如會接收前鏡頭48所拍攝的使用者影像,並可藉由執行人臉辨識、眼球辨識等影像處理,計算出使用者的兩眼距離。兩眼距離偵測模組469所計算的兩眼距離將會傳輸至影像重建模組463,而用以作為其重建第二影像的參考影像的參考。Different from the embodiment in FIG. 1, the image processing circuit 46 in this embodiment additionally includes a first image processing module 467, a second image processing module 468, and a binocular distance detection module 469. The first image processing module 467 and the second image processing module 468 process, for example, image signals captured by the first camera 42 and the second camera 44 to obtain a first image and a second image. The first image processing module 467 and the second image processing module 468 can also perform brightness, contrast, color temperature, white balance, sharpness or vividness adjustments, or noise reduction processing on this image to make the processed image Suitable for subsequent stereo image generation. In addition, the binocular distance detection module 469 receives, for example, a user image captured by the front lens 48, and can calculate the binocular distance of the user by performing image processing such as face recognition and eyeball recognition. The binocular distance calculated by the binocular distance detection module 469 will be transmitted to the image reconstruction module 463 and used as a reference for reconstructing the reference image of the second image.

詳言之,圖5是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。請同時參照圖4及圖5,本實施例的方法適用於上述圖4的電子裝置40,以下即搭配圖4中電子裝置40的各項元件,說明本實施例之立體影像產生方法的詳細步驟:Specifically, FIG. 5 is a flowchart of a method for generating a three-dimensional image of an electronic device according to an embodiment of the present invention. Please refer to FIG. 4 and FIG. 5 at the same time. The method in this embodiment is applicable to the electronic device 40 in FIG. :

首先,利用第一相機42拍攝第一影像,並利用第二相機44拍攝第二影像(步驟S502)。之後,由解析度放大模組461將第二相機44所拍攝的第二影像放大至第一相機42的解析度(步驟S504),並由深度產生模組462利用此第一影像與放大後的第二影像產生深度圖(步驟S506)。上述步驟S502~S506的實施方式與前述實施例中步驟S202~S206的實施方式相同或相似,故其詳細內容在此不再贅述。First, a first image is captured by the first camera 42 and a second image is captured by the second camera 44 (step S502). After that, the resolution enlargement module 461 enlarges the second image captured by the second camera 44 to the resolution of the first camera 42 (step S504), and the depth generation module 462 uses the first image and the enlarged image The second image generates a depth map (step S506). The implementation manners of steps S502 to S506 are the same as or similar to the implementation manners of steps S202 to S206 in the foregoing embodiment, so the details thereof will not be repeated here.

與圖1實施例不同的是,本實施例在第一相機42及第二相機44拍攝影像的同時,還使用前相機48拍攝使用者的影像,並由兩眼距離偵測模組469藉由分析此影像,而偵測出電子裝置40的使用者的兩眼距離(步驟S508)。此兩眼距離將被傳輸至影像重建模組463,而由影像重建模組463根據兩眼距離及第一相機42與第二相機44之間的基線距離,計算基線距離調整值。舉例來說,若第一相機42與第二相機44之間的基線距離為1.5公分,而所偵測到的兩眼距離為6.5公分,則可得到基線距離調整值為5公分。The difference from the embodiment of FIG. 1 is that, in this embodiment, while the first camera 42 and the second camera 44 are capturing images, the front camera 48 is also used to capture the user's image, and the binocular distance detection module 469 uses This image is analyzed to detect the distance between the eyes of the user of the electronic device 40 (step S508). This binocular distance is transmitted to the image reconstruction module 463, and the image reconstruction module 463 calculates a baseline distance adjustment value based on the binocular distance and the baseline distance between the first camera 42 and the second camera 44. For example, if the baseline distance between the first camera 42 and the second camera 44 is 1.5 cm, and the detected distance between the two eyes is 6.5 cm, the baseline distance adjustment value may be 5 cm.

然後,影像重建模組463會參考深度產生模組162所產生的深度圖及上述的基線距離調整值,重新投射第一影像以重建第二影像的參考影像,使得參考影像與該第一影像之間的像差資訊符合兩眼距離(步驟S512)。詳言之,影像重建模組463例如會根據基線距離調整值,調整第二相機42的位置並計算調整後的位置座標,另外也會擷取深度圖中的深度資訊,並轉換深度資訊的座標至世界座標系(world coordinate system),最後則根據轉換後的深度資訊及第二相機42的調整後位置座標,重新投射第一影像以重建第二影像的參考影像。Then, the image reconstruction module 463 refers to the depth map generated by the depth generation module 162 and the above-mentioned baseline distance adjustment value, and reprojects the first image to reconstruct the reference image of the second image, so that the reference image and the first image are different. The aberration information is consistent with the binocular distance (step S512). In detail, the image reconstruction module 463, for example, adjusts the position of the second camera 42 and calculates the adjusted position coordinates according to the baseline distance adjustment value. It also acquires depth information in the depth map and converts the coordinates of the depth information. To the world coordinate system, finally, the first image is re-projected to reconstruct the reference image of the second image according to the converted depth information and the adjusted position coordinates of the second camera 42.

舉例來說,圖6A及圖6B是依照本發明一實施例所繪示之依據基線距離調整值重建參考影像的範例。請先參照圖6A,本實施例的電子裝置的左相機62及右相機64之間的基線距離為d1,其中左眼影像62a是由左相機62所拍攝的影像,而右眼影像64a則是由電子裝置根據上述實施例的方法所重建的右相機64所拍攝影像的參考影像。接著,請參照圖4B,使用者的左眼66與右眼68的距離為d2。電子裝置即可藉由上述的基線距離為d1及使用者的兩眼距離d2,計算出基線距離調整值,並用以調整所重建的參考影像。詳言之,比較左眼影像62a與左眼影像62b可知,其中物件的位置沒變,而比較右眼影像64a與右眼影像64b可知,其中物件的位置已向左位移,此將使得這些物件的像差加大,而符合使用者的兩眼距離d2。需說明的是,在本實施例中,電子裝置僅根據兩眼距離d2調整重建的右眼影像64a,以使左眼影像62b與右眼影像64b的像差符合使用者的兩眼距離d2。然而在其他實施例中,電子裝置也可以同時調整較左眼影像62a與右眼影像64a,或是僅調整左眼影像64a,以使調整後的左右眼影像的像差符合使用者的兩眼距離d2,在此不設限。For example, FIG. 6A and FIG. 6B are examples of reconstructing a reference image according to a baseline distance adjustment value according to an embodiment of the present invention. Please refer to FIG. 6A first. The baseline distance between the left camera 62 and the right camera 64 of the electronic device in this embodiment is d1, where the left-eye image 62a is an image captured by the left camera 62 and the right-eye image 64a is The reference image of the image captured by the right camera 64 reconstructed by the electronic device according to the method of the above embodiment. 4B, the distance between the left eye 66 and the right eye 68 of the user is d2. The electronic device can calculate the baseline distance adjustment value by using the above-mentioned baseline distance d1 and the user's binocular distance d2, and adjust the reconstructed reference image. In detail, comparing the left-eye image 62a and the left-eye image 62b shows that the position of the object has not changed, while comparing the right-eye image 64a and the right-eye image 64b, the position of the object has been shifted to the left, which will make these objects The aberration of the lens is increased to meet the user's binocular distance d2. It should be noted that, in this embodiment, the electronic device only adjusts the reconstructed right-eye image 64a according to the binocular distance d2, so that the aberration of the left-eye image 62b and the right-eye image 64b matches the binocular distance d2 of the user. However, in other embodiments, the electronic device may also adjust the left-eye image 62a and the right-eye image 64a at the same time, or adjust only the left-eye image 64a, so that the aberrations of the adjusted left-eye and left-eye images match the user's two eyes. The distance d2 is not limited here.

回到圖5的流程,在完成影像的調整後,接著由遮蔽區域偵測模組464偵測參考影像中的遮蔽區域,並由遮蔽區域填補模組465利用放大後的第二影像填補此遮蔽區域(步驟S514)。最後則由立體影像產生模組466產生包括由第一相機42所拍攝的第一影像以及由遮蔽區域填補模組465填補後的參考影像的立體影像(步驟S516),此立體影像例如會進一步被傳輸到顯示裝置50上顯示,而提供使用者觀看。上述步驟S514~S516的實施方式與前述實施例中步驟S210~S212的實施方式相同或相似,故其詳細內容在此不再贅述。Returning to the flow of FIG. 5, after the image adjustment is completed, the masked area detection module 464 detects the masked area in the reference image, and the masked area filling module 465 uses the enlarged second image to fill the mask. Area (step S514). Finally, the stereo image generation module 466 generates a stereo image including the first image captured by the first camera 42 and the reference image filled by the masked area filling module 465 (step S516). The display is transmitted to the display device 50 and provided to the user for viewing. The implementation manners of steps S514 to S516 are the same as or similar to the implementation manners of steps S210 to S212 in the foregoing embodiment, so the detailed content is not repeated here.

藉由上述方法,使用者在使用電子裝置拍攝立體影像的同時,即可在電子裝置的顯示裝置50上觀看到立體效果較佳的立體影像。With the above method, the user can view a stereo image with a better stereo effect on the display device 50 of the electronic device while shooting the stereo image using the electronic device.

需說明的是,為了讓使用者兩眼產生立體感,電子裝置會將具有視角(parallax)差的兩張影像(即左眼影像及右眼影像)顯示在同一個顯示平面上,而在兩張影像中出現的物件則會依其像差(disparity)收斂在相對於顯示平面的不同位置。舉例來說,具有負視差的物件將會呈現在顯示平面的前方;具有正視差的物件將會呈現在顯示平面的後方;而具有零視差的物件則會呈現在顯示平面上。藉由上述視差的差異,使用者將會感知到這些物件的遠近,進而產生立體感。其中,由於使用者的兩眼會嘗試聚焦在顯示平面上,但影像中的某些物件會收斂於不同於顯示平面的其他位置,此將造成使用者容易感到頭暈。It should be noted that, in order to create a stereoscopic effect for the eyes of the user, the electronic device displays two images (ie, a left-eye image and a right-eye image) having a difference in perspective (parallax) on the same display plane, and The objects appearing in the image will converge at different positions relative to the display plane according to their disparity. For example, objects with negative parallax will be presented in front of the display plane; objects with positive parallax will be presented behind the display plane; and objects with zero parallax will be presented on the display plane. With the above-mentioned difference in parallax, the user will perceive the distance of these objects, and then produce a three-dimensional feeling. Among them, the user's eyes will try to focus on the display plane, but some objects in the image will converge to other positions than the display plane, which will cause the user to easily feel dizzy.

對此,基於使用者在觀看立體影像時,通常會聚焦在影像中的主要物件上,例如電影中演員的臉部,因此若將出現在左右眼影像中的演員臉部區域調整為零視差,將可提供使用者一個相對較為舒適的觀看體驗。據此,本發明提供一種可依據主要物件位置調整所產生立體影像的方法,以提供適於使用者觀看的立體影像。In this regard, based on the fact that when viewing a stereo image, the user usually focuses on the main objects in the image, such as the face of an actor in a movie. Therefore, if the face area of the actor appearing in the left and right eye images is adjusted to zero parallax, Will provide users with a relatively comfortable viewing experience. Accordingly, the present invention provides a method for adjusting a generated stereo image according to the position of a main object, so as to provide a stereo image suitable for viewing by a user.

詳言之,圖7是依照本發明一實施例所繪示的電子裝置的方塊圖。請參照圖7,本實施例的電子裝置70例如是數位相機、數位攝影機,或是手機、平板電腦等可攜式電子裝置,其可提供攝像功能。電子裝置70中包括第一相機72、第二相機74、影像處理電路76及顯示裝置78,其中第一相機72、第二相機74與圖1實施例中的第一相機12、第二相機14相同或相似,故其詳細內容在此不再贅述。Specifically, FIG. 7 is a block diagram of an electronic device according to an embodiment of the invention. Referring to FIG. 7, the electronic device 70 in this embodiment is, for example, a digital camera, a digital video camera, or a portable electronic device such as a mobile phone or a tablet computer, which can provide a camera function. The electronic device 70 includes a first camera 72, a second camera 74, an image processing circuit 76, and a display device 78. The first camera 72, the second camera 74, and the first camera 12 and the second camera 14 in the embodiment of FIG. The same or similar, so its detailed content will not be repeated here.

與圖1實施例不同的是,本實施例的電子裝置40額外包括顯示裝置78,其例如是液晶顯示器、發光二極體顯示器或其他顯示器,其可顯示電子裝置70所拍攝的立體影像。顯示裝置78也可與觸控面板結合為觸控螢幕,而可在顯示拍攝影像的同時,提供使用者藉由觸碰的方式對電子裝置70進行操作。Different from the embodiment in FIG. 1, the electronic device 40 in this embodiment additionally includes a display device 78, which is, for example, a liquid crystal display, a light-emitting diode display, or other display, and can display a stereo image captured by the electronic device 70. The display device 78 can also be combined with a touch panel to form a touch screen, and at the same time that the captured image is displayed, the user can operate the electronic device 70 by touching it.

另一方面,本實施例的影像處理電路76中包括解析度放大模組761、深度產生模組762、影像重建模組763、遮蔽區域偵測模組764、遮蔽區域填補模組765、立體影像產生模組766、第一影像處理模組767、第二影像處理模組768、物件偵測模組769及像差調整模組770。其中,解析度放大模組761、深度產生模組762、影像重建模組763、遮蔽區域偵測模組764、遮蔽區域填補模組465、立體影像產生模組466的功能係與圖1實施例的解析度放大模組161、深度產生模組162、影像重建模組163、遮蔽區域偵測模組164、遮蔽區域填補模組165、立體影像產生模組166相同或相似,故其詳細內容在此不再贅述。On the other hand, the image processing circuit 76 of this embodiment includes a resolution amplification module 761, a depth generation module 762, an image reconstruction module 763, a masked area detection module 764, a masked area filling module 765, and a stereo image. The generating module 766, the first image processing module 767, the second image processing module 768, the object detection module 769, and the aberration adjustment module 770. Among them, the functions of the resolution amplification module 761, the depth generation module 762, the image reconstruction module 763, the masked area detection module 764, the masked area filling module 465, and the stereo image generation module 466 are the same as those of the embodiment in FIG. The resolution amplification module 161, depth generation module 162, image reconstruction module 163, masked area detection module 164, masked area filling module 165, and stereo image generation module 166 are the same or similar, so the detailed content is as follows This will not be repeated here.

與圖1實施例不同的是,本實施例的影像處理電路76額外包括第一影像處理模組767、第二影像處理模組768、物件偵測模組769及像差調整模組770。其中,第一影像處理模組767及第二影像處理模組768例如會針對第一相機72及第二相機74所擷取的影像訊號進行處理,而得到第一影像及第二影像。第一影像處理模組767及第二影像處理模組768還可對此影像執行亮度、對比度、色溫、白平衡、銳利度或鮮豔度調整,或是雜訊消除等處理,使得處理後的影像適用於後續立體影像的生成。此外,物件偵測模組769則會接收第一影像處理模組767與第二影像處理模組768處理後的第一影像與第二影像,進而偵測此第一影像與第二影像中的主要物件,並提供給像差調整模組770。像差調整模組770則會針對物件偵測模組769所偵測到的主要物件,調整第二影像的參考影像與第一影像之間的像差,使得主要物件聚集於電子裝置70的顯示平面。Different from the embodiment in FIG. 1, the image processing circuit 76 in this embodiment additionally includes a first image processing module 767, a second image processing module 768, an object detection module 769, and an aberration adjustment module 770. The first image processing module 767 and the second image processing module 768 process, for example, the image signals captured by the first camera 72 and the second camera 74 to obtain the first image and the second image. The first image processing module 767 and the second image processing module 768 can also perform brightness, contrast, color temperature, white balance, sharpness or vividness adjustments, or noise reduction processing on this image to make the processed image Suitable for subsequent stereo image generation. In addition, the object detection module 769 receives the first image and the second image processed by the first image processing module 767 and the second image processing module 768, and detects the first image and the second image. The main object is provided to the aberration adjustment module 770. The aberration adjustment module 770 adjusts the aberration between the reference image of the second image and the first image for the main object detected by the object detection module 769, so that the main object is gathered on the display of the electronic device 70 flat.

詳言之,圖8是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。請同時參照圖7及圖8,本實施例的方法適用於上述圖7的電子裝置70,以下即搭配圖7中電子裝置10的各項元件,說明本實施例之立體影像產生方法的詳細步驟:Specifically, FIG. 8 is a flowchart of a method for generating a three-dimensional image of an electronic device according to an embodiment of the present invention. Please refer to FIG. 7 and FIG. 8 at the same time. The method in this embodiment is applicable to the electronic device 70 in FIG. 7 described above. The following describes the detailed steps of the method for generating a stereo image in this embodiment with each component of the electronic device 10 in FIG. 7. :

本實施例與圖2實施例的不同之處在於,本實施例額外包括步驟S812,其中是由物件偵測模組769偵測第一影像與第二影像中的主要物件,並由像差調整模組770調整第二影像的參考影像與第一影像之間的像差,使得主要物件可聚集於電子裝置的顯示平面。藉此,可提供使用者一個舒適的觀看體驗。The difference between this embodiment and the embodiment of FIG. 2 is that this embodiment additionally includes step S812, in which the main object in the first image and the second image is detected by the object detection module 769, and adjusted by the aberration The module 770 adjusts the aberration between the reference image of the second image and the first image, so that the main objects can be gathered on the display plane of the electronic device. This can provide users with a comfortable viewing experience.

舉例來說,圖9A及圖9B是依照本發明一實施例所繪示之依據主要物件調整影像像差的範例。其中,圖9A繪示使用者左眼92與右眼94所觀看之物件與顯示平面之間的關係。其中,具有負視差的物件C將會呈現在顯示平面的前方;具有正視差的物件D將會呈現在顯示平面的後方。假設物件96是立體影像中的主要物件,而由於物件96具有負視差,故使用者左眼92與右眼94在立體影像中觀看到的物件96是位於顯示平面的前方,此將造成使用者容易感到頭暈。對此,本實施例的電子裝置即會調整立體影像中左右眼影像的像差,使得物件96的視差為零。請參照圖9B,在調整立體影像的像差後,使用者左眼92與右眼94在調整後立體影像中觀看到的物件96將是位於顯示平面上,從而提供使用者一個較為舒適的觀看體驗。For example, FIGS. 9A and 9B are examples of adjusting image aberrations based on main objects according to an embodiment of the present invention. FIG. 9A illustrates the relationship between the objects viewed by the left eye 92 and the right eye 94 of the user and the display plane. Among them, the object C with negative parallax will be presented in front of the display plane; the object D with positive parallax will be presented behind the display plane. Assume that the object 96 is the main object in the stereo image, and because the object 96 has negative parallax, the object 96 viewed by the user's left eye 92 and right eye 94 in the stereo image is located in front of the display plane, which will cause the user Easily feel dizzy. In this regard, the electronic device in this embodiment adjusts the aberrations of the left and right eye images in the stereo image so that the parallax of the object 96 is zero. Please refer to FIG. 9B. After adjusting the aberration of the stereo image, the objects 96 viewed by the user's left eye 92 and right eye 94 in the adjusted stereo image will be located on the display plane, thereby providing the user with a more comfortable viewing Experience.

綜上所述,本發明的立體影像產生方法及使用此方法的電子裝置採用高解析度相機搭配低解析度相機的架構,利用高解析度相機所拍攝的高解析度影像重建低解析度相機的影像,並利用低解析度相機所拍攝的低解析度影像填補此重建影像中的遮蔽區域,從而可產生高解析度的立體影像。本發明還可進一步根據使用者的兩眼距離及影像中主要物件的深度資訊,調整影像的像差,從而提供一個立體效果較佳或觀看上較為舒適的立體影像。To sum up, the method for generating a stereo image of the present invention and the electronic device using the method adopt the architecture of a high-resolution camera and a low-resolution camera, and use the high-resolution image captured by the high-resolution camera to reconstruct the low-resolution camera. Image, and the low-resolution image captured by the low-resolution camera is used to fill the occluded area in the reconstructed image, so as to generate a high-resolution stereo image. The invention can further adjust the aberration of the image according to the binocular distance of the user and the depth information of the main objects in the image, so as to provide a stereo image with better stereo effect or more comfortable viewing.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.

10、40、70:電子裝置 12、42、72:第一相機 14、44、74:第二相機 16、46、76:影像處理電路 161、461、761:解析度放大模組 162、462、762:深度產生模組 163、463、763:影像重建模組 164、464、764:遮蔽區域偵測模組 165、465、765:遮蔽區域填補模組 166、466、766:立體影像產生模組 32:影像 32a、36a:區域 34:放大影像 36:參考影像 467、767:第一影像處理模組 468、768:第二影像處理模組 469:兩眼距離偵測模組 48:前相機 50、78:顯示裝置 62:左相機 64:右相機 62a、62b:左眼影像 64a、64b:右眼影像 66、92:左眼 68、94:右眼 769:物件偵測模組 770:像差調整模組 A、B、C、D、96:物件 d1:基線距離 d2:兩眼距離 S202~S212、S502~S516、S802~S814:本發明一實施例之立體影像產生方法的步驟。10, 40, 70: electronic devices 12, 42, 72: first camera 14, 44, 74: second camera 16, 46, 76: image processing circuits 161, 461, 761: resolution amplification modules 162, 462, 762: Depth generation module 163, 463, 763: Image reconstruction module 164, 464, 764: Masked area detection module 165, 465, 765: Masked area filling module 166, 466, 766: Stereo image generation module 32: image 32a, 36a: area 34: enlarged image 36: reference image 467, 767: first image processing module 468, 768: second image processing module 469: binocular distance detection module 48: front camera 50 , 78: Display device 62: Left camera 64: Right camera 62a, 62b: Left eye image 64a, 64b: Right eye image 66, 92: Left eye 68, 94: Right eye 769: Object detection module 770: Aberration Adjustment modules A, B, C, D, 96: Object d1: Baseline distance d2: Two-eye distance S202-S212, S502-S516, S802-S814: Steps of a stereo image generating method according to an embodiment of the present invention.

圖1是依照本發明一實施例所繪示的電子裝置的方塊圖。 圖2是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。 圖3A至圖3D是依照本發明一實施例所繪示之遮蔽區域的範例。 圖4是依照本發明一實施例所繪示的電子裝置的方塊圖。 圖5是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。 圖6A及圖6B是依照本發明一實施例所繪示之依據基線距離調整值重建參考影像的範例。 圖7是依照本發明一實施例所繪示的電子裝置的方塊圖。 圖8是依照本發明一實施例所繪示之電子裝置的立體影像產生方法的流程圖。 圖9A及圖9B是依照本發明一實施例所繪示之依據主要物件調整影像像差的範例。FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. FIG. 2 is a flowchart of a method for generating a stereo image of an electronic device according to an embodiment of the present invention. 3A to 3D are examples of masked regions according to an embodiment of the present invention. FIG. 4 is a block diagram of an electronic device according to an embodiment of the invention. FIG. 5 is a flowchart of a method for generating a stereo image of an electronic device according to an embodiment of the present invention. 6A and 6B are examples of reconstructing a reference image according to a baseline distance adjustment value according to an embodiment of the present invention. FIG. 7 is a block diagram of an electronic device according to an embodiment of the invention. FIG. 8 is a flowchart of a method for generating a stereo image of an electronic device according to an embodiment of the present invention. FIG. 9A and FIG. 9B are examples of adjusting image aberrations based on main objects according to an embodiment of the present invention.

S202~S212:本發明一實施例之立體影像產生方法的步驟。S202-S212: Steps of a method for generating a stereo image according to an embodiment of the present invention.

Claims (14)

一種立體影像產生方法,適用於包括第一相機與第二相機的電子裝置,其中該第一相機與該第二相機適於拍攝立體影像,且該第一相機的解析度大於該第二相機的解析度,該方法包括下列步驟: 利用該第一相機拍攝第一影像,並利用該第二相機拍攝第二影像; 放大(upscale)該第二影像至該第一相機的解析度; 利用該第一影像與放大後的該第二影像產生深度圖; 參考該深度圖,重新投射該第一影像以重建該第二影像的參考影像; 偵測該參考影像中的遮蔽區域,並利用放大後的該第二影像填補該遮蔽區域;以及 產生包括該第一影像及填補後的該參考影像的該立體影像。A stereo image generating method is applicable to an electronic device including a first camera and a second camera, wherein the first camera and the second camera are suitable for capturing stereo images, and the resolution of the first camera is greater than that of the second camera. Resolution, the method includes the following steps: using the first camera to capture a first image, and using the second camera to capture a second image; upscale the resolution of the second image to the first camera; using the first An image and the enlarged second image generate a depth map; referring to the depth map, reprojecting the first image to reconstruct a reference image of the second image; detecting a masked area in the reference image, and using the enlarged image The second image fills the masked area; and generates the stereo image including the first image and the filled reference image. 如申請專利範圍第1項所述的方法,其中參考該深度圖,重新投射該第一影像以重建該第二影像的該參考影像的步驟更包括: 參考該深度圖中的深度資訊及該第一相機與該第二相機之間的基線(baseline)距離,計算該第一影像與該第二影像的該參考影像之間的像差資訊;以及 根據該像差資訊擷取重新投射於三維空間中的該第一影像的影像資料,以重建該第二影像的該參考影像。The method according to item 1 of the scope of patent application, wherein the step of referring to the depth map and reprojecting the first image to reconstruct the reference image of the second image further includes: referring to the depth information in the depth map and the first A baseline distance between a camera and the second camera, calculating aberration information between the first image and the reference image of the second image; and capturing and reprojecting the three-dimensional space based on the aberration information Image data of the first image to reconstruct the reference image of the second image. 如申請專利範圍第1項所述的方法,其中參考該深度圖,重新投射該第一影像以重建該第二影像的該參考影像的步驟更包括: 偵測該電子裝置的使用者的兩眼距離; 根據該兩眼距離及該第一相機與該第二相機之間的基線距離,計算基線距離調整值;以及 參考該深度圖及該基線距離調整值,重新投射該第一影像以重建該第二影像的該參考影像,使得該參考影像與該第一影像之間的像差資訊符合該兩眼距離。The method according to item 1 of the scope of patent application, wherein the step of re-projecting the first image to reconstruct the reference image of the second image with reference to the depth map further comprises: detecting both eyes of a user of the electronic device Distance; calculating a baseline distance adjustment value according to the distance between the eyes and a baseline distance between the first camera and the second camera; and re-projecting the first image to reconstruct the reference image with reference to the depth map and the baseline distance adjustment value The reference image of the second image makes the aberration information between the reference image and the first image consistent with the binocular distance. 如申請專利範圍第3項所述的方法,其中參考該深度圖及該基線距離調整值,重新投射該第一影像以重建該第二影像的該參考影像的步驟包括: 根據該基線距離調整值,調整該第二相機的位置並計算調整後的位置座標; 擷取該深度圖中的深度資訊,並轉換該深度資訊的座標至世界座標系(world coordinate system);以及 根據轉換後的該深度資訊及該第二相機的調整後的該位置座標,重新投射該第一影像以重建該第二影像的該參考影像。The method of claim 3, wherein the step of reprojecting the first image to reconstruct the reference image of the second image with reference to the depth map and the baseline distance adjustment value includes: adjusting the value according to the baseline distance , Adjusting the position of the second camera and calculating the adjusted position coordinates; acquiring depth information in the depth map, and converting the coordinates of the depth information into a world coordinate system; and according to the converted depth Information and the adjusted position coordinates of the second camera, reproject the first image to reconstruct the reference image of the second image. 如申請專利範圍第1項所述的方法,其中偵測該參考影像中的該遮蔽區域的步驟包括: 將該參考影像與放大後的該第二影像進行匹配;以及 取該參考影像中未與該第二影像匹配的區域作為該遮蔽區域。The method according to item 1 of the scope of patent application, wherein the step of detecting the occluded area in the reference image includes: matching the reference image with the enlarged second image; and taking a reference image that is not The area matched by the second image is used as the masked area. 如申請專利範圍第1項所述的方法,其中偵測該參考影像中的該遮蔽區域的步驟包括: 偵測該參考影像中的空白區域作為該遮蔽區域。The method according to item 1 of the scope of patent application, wherein the step of detecting the masked area in the reference image includes: detecting a blank area in the reference image as the masked area. 如申請專利範圍第1項所述的方法,其中在偵測該參考影像中的遮蔽區域,並利用放大後的該第二影像填補該遮蔽區域的步驟之後,更包括: 偵測該第一影像與該第二影像中的主要物件;以及 調整該第二影像的該參考影像與該第一影像之間的像差,使得該主要物件聚集於該電子裝置的顯示平面。The method according to item 1 of the patent application scope, wherein after the step of detecting a masked area in the reference image and filling the masked area with the enlarged second image, the method further includes: detecting the first image And the main object in the second image; and adjusting the aberration between the reference image and the first image of the second image so that the main object is gathered on the display plane of the electronic device. 一種電子裝置,包括: 第一相機與第二相機,分別擷取產生立體影像所需的左眼影像與右眼影像其中之一,其中該第一相機的解析度大於該第二相機的解析度; 影像處理電路,耦接該第一相機與該第二相機,處理分別由該第一相機與該第二相機拍攝的第一影像與第二影像,包括: 解析度放大模組,放大該第二影像至該第一相機的解析度; 深度產生模組,利用該第一影像與放大後的該第二影像產生深度圖; 影像重建模組,參考該深度圖,重新投射該第一影像以重建該第二影像的參考影像; 遮蔽區域偵測模組,偵測該參考影像中的遮蔽區域; 遮蔽區域填補模組,利用放大後的該第二影像填補該遮蔽區域;以及 立體影像產生模組,產生包括該第一影像及填補後的該參考影像的該立體影像。An electronic device includes: a first camera and a second camera, respectively capturing one of a left-eye image and a right-eye image required for generating a stereo image, wherein a resolution of the first camera is greater than a resolution of the second camera An image processing circuit, which is coupled to the first camera and the second camera, and processes the first image and the second image respectively captured by the first camera and the second camera, and includes: a resolution magnifying module, which magnifies the first camera and the second camera; The resolution from the two images to the first camera; a depth generation module that uses the first image and the enlarged second image to generate a depth map; an image reconstruction module that references the depth map to reproject the first image to Reconstructing a reference image of the second image; a masked area detection module that detects a masked area in the reference image; a masked area filling module that uses the enlarged second image to fill the masked area; and a stereo image generation model Group to generate the stereo image including the first image and the filled reference image. 如申請專利範圍第8項所述的電子裝置,其中該影像重建模組包括參考該深度圖中的深度資訊及該第一相機與該第二相機之間的基線距離,計算該第一影像與該第二影像的該參考影像之間的像差資訊,並據此擷取重新投射於三維空間中的該第一影像的影像資料,以重建該第二影像的該參考影像。The electronic device according to item 8 of the scope of patent application, wherein the image reconstruction module includes calculating the first image and the reference image by referring to the depth information in the depth map and the baseline distance between the first camera and the second camera. Aberration information between the reference images of the second image, and according to this, image data of the first image re-projected in the three-dimensional space is retrieved to reconstruct the reference image of the second image. 如申請專利範圍第8項所述的電子裝置,其中該影像處理電路更包括: 兩眼距離偵測模組,偵測該電子裝置的使用者的兩眼距離,其中 該影像重建模組包括根據該兩眼距離及該第一相機與該第二相機之間的基線距離,計算基線距離調整值,並參考該深度圖及該基線距離調整值,重新投射該第一影像以重建該第二影像的該參考影像,使得該參考影像與該第一影像之間的像差資訊符合該兩眼距離。The electronic device according to item 8 of the patent application scope, wherein the image processing circuit further includes: a binocular distance detection module that detects a binocular distance of a user of the electronic device, wherein the image reconstruction module includes The binocular distance and the baseline distance between the first camera and the second camera, calculate a baseline distance adjustment value, and refer to the depth map and the baseline distance adjustment value to reproject the first image to reconstruct the second image The reference image such that the aberration information between the reference image and the first image conforms to the binocular distance. 如申請專利範圍第10項所述的電子裝置,其中該影像重建模組更根據該基線距離調整值,調整該第二相機的位置並計算調整後的位置座標,擷取該深度圖中的深度資訊,並轉換該深度資訊的座標至世界座標系,以及根據轉換後的該深度資訊及該第二相機的調整後的該位置座標,重新投射該第一影像以重建該第二影像的該參考影像。The electronic device according to item 10 of the scope of patent application, wherein the image reconstruction module further adjusts the position of the second camera and calculates the adjusted position coordinates according to the baseline distance adjustment value to capture the depth in the depth map. Information, and transform the coordinates of the depth information into the world coordinate system, and reproject the first image to reconstruct the reference of the second image according to the converted depth information and the adjusted position coordinates of the second camera. image. 如申請專利範圍第8項所述的電子裝置,其中該遮蔽區域偵測模組包括將該參考影像與放大後的該第二影像進行匹配,並取該參考影像中未與該第二影像匹配的區域作為該遮蔽區域。The electronic device according to item 8 of the scope of patent application, wherein the masked area detection module includes matching the reference image with the enlarged second image, and taking the reference image that does not match the second image Area as the masked area. 如申請專利範圍第8項所述的電子裝置,其中該遮蔽區域偵測模組包括偵測該參考影像中的空白區域以作為該遮蔽區域。The electronic device according to item 8 of the scope of patent application, wherein the masked area detection module includes detecting a blank area in the reference image as the masked area. 如申請專利範圍第8項所述的電子裝置,其中該影像處理電路更包括: 物件偵測模組,偵測該第一影像與該第二影像中的主要物件;以及 像差調整模組,調整該第二影像的該參考影像與該第一影像之間的像差,使得該主要物件聚集於該電子裝置的顯示平面。The electronic device according to item 8 of the scope of patent application, wherein the image processing circuit further includes: an object detection module that detects main objects in the first image and the second image; and an aberration adjustment module, Aberrations between the reference image and the first image of the second image are adjusted so that the main object is gathered on a display plane of the electronic device.
TW105131125A 2016-06-17 2016-09-28 Stereo image generating method and electronic apparatus utilizing the method TWI613904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/369,906 US10469821B2 (en) 2016-06-17 2016-12-06 Stereo image generating method and electronic apparatus utilizing the method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201662351307P 2016-06-17 2016-06-17
US62/351,307 2016-06-17

Publications (2)

Publication Number Publication Date
TW201801528A TW201801528A (en) 2018-01-01
TWI613904B true TWI613904B (en) 2018-02-01

Family

ID=60721616

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105131125A TWI613904B (en) 2016-06-17 2016-09-28 Stereo image generating method and electronic apparatus utilizing the method

Country Status (2)

Country Link
CN (1) CN107517369B (en)
TW (1) TWI613904B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI668638B (en) * 2018-03-13 2019-08-11 鴻海精密工業股份有限公司 Sensing module and electronic devices thereof

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276338A (en) * 2018-03-13 2019-09-24 鸿海精密工业股份有限公司 Sensing module and its electronic device
TWI761128B (en) * 2019-09-02 2022-04-11 宏達國際電子股份有限公司 Dual lens imaging module and capturing method thereof
CN116451056B (en) * 2023-06-13 2023-09-29 支付宝(杭州)信息技术有限公司 Terminal feature insight method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200841704A (en) * 2006-11-22 2008-10-16 Visumotion Gmbh Arrangement and method for the recording and display of images of a scene and/or an object
CN102760234A (en) * 2011-04-14 2012-10-31 财团法人工业技术研究院 Depth image acquisition device, system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722080B (en) * 2012-06-27 2015-11-18 杭州南湾科技有限公司 A kind of multi purpose spatial image capture method based on many lens shootings
WO2014034444A1 (en) * 2012-08-31 2014-03-06 ソニー株式会社 Image processing device, image processing method, and information processing device
JP6155471B2 (en) * 2013-03-11 2017-07-05 パナソニックIpマネジメント株式会社 Image generating apparatus, imaging apparatus, and image generating method
CN103220543B (en) * 2013-04-25 2015-03-04 同济大学 Real time three dimensional (3D) video communication system and implement method thereof based on Kinect
CN103888674B (en) * 2014-04-15 2017-08-11 聚晶半导体股份有限公司 Image capture unit and image acquisition method
US10074158B2 (en) * 2014-07-08 2018-09-11 Qualcomm Incorporated Systems and methods for stereo depth estimation using global minimization and depth interpolation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200841704A (en) * 2006-11-22 2008-10-16 Visumotion Gmbh Arrangement and method for the recording and display of images of a scene and/or an object
CN102760234A (en) * 2011-04-14 2012-10-31 财团法人工业技术研究院 Depth image acquisition device, system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI668638B (en) * 2018-03-13 2019-08-11 鴻海精密工業股份有限公司 Sensing module and electronic devices thereof

Also Published As

Publication number Publication date
TW201801528A (en) 2018-01-01
CN107517369B (en) 2019-08-02
CN107517369A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
US10469821B2 (en) Stereo image generating method and electronic apparatus utilizing the method
TWI692967B (en) Image device
EP3067746B1 (en) Photographing method for dual-camera device and dual-camera device
JP5887267B2 (en) 3D image interpolation apparatus, 3D imaging apparatus, and 3D image interpolation method
JP5679978B2 (en) Stereoscopic image alignment apparatus, stereoscopic image alignment method, and program thereof
TWI554103B (en) Image capturing device and digital zooming method thereof
US20160173869A1 (en) Multi-Camera System Consisting Of Variably Calibrated Cameras
US20130250053A1 (en) System and method for real time 2d to 3d conversion of video in a digital camera
TWI613904B (en) Stereo image generating method and electronic apparatus utilizing the method
US20120093394A1 (en) Method for combining dual-lens images into mono-lens image
JP5942195B2 (en) 3D image processing apparatus, 3D imaging apparatus, and 3D image processing method
WO2015192547A1 (en) Method for taking three-dimensional picture based on mobile terminal, and mobile terminal
TWI520574B (en) 3d image apparatus and method for displaying images
US20140347350A1 (en) Image Processing Method and Image Processing System for Generating 3D Images
CN106303498B (en) Video display control method and device, display equipment
JP2016504828A (en) Method and system for capturing 3D images using a single camera
TWI589150B (en) Three-dimensional auto-focusing method and the system thereof
TWI549478B (en) Method for generating 3d image and electronic apparatus using the same
US9767580B2 (en) Apparatuses, methods, and systems for 2-dimensional and 3-dimensional rendering and display of plenoptic images
TW201332351A (en) Image capture device with multiple lenses and method for displaying stereo image thereof
TWI541761B (en) Image processing method and electronic device thereof
CN102478756B (en) Method and apparatus for shooting stereoscopic film
CN106303315B (en) Video display control method and device, display equipment
JP4249187B2 (en) 3D image processing apparatus and program thereof
US20100164945A1 (en) Digital photo frame and method for displaying photos in digital photo frame