TW201325202A - Three-dimension image processing method - Google Patents

Three-dimension image processing method Download PDF

Info

Publication number
TW201325202A
TW201325202A TW100145656A TW100145656A TW201325202A TW 201325202 A TW201325202 A TW 201325202A TW 100145656 A TW100145656 A TW 100145656A TW 100145656 A TW100145656 A TW 100145656A TW 201325202 A TW201325202 A TW 201325202A
Authority
TW
Taiwan
Prior art keywords
length
eye
mask
region
area
Prior art date
Application number
TW100145656A
Other languages
Chinese (zh)
Inventor
Chun-Wei Chen
guang-zhi Liu
Original Assignee
Novatek Microelectronics Corp
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 Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to TW100145656A priority Critical patent/TW201325202A/en
Publication of TW201325202A publication Critical patent/TW201325202A/en

Links

Abstract

A three-dimension image processing method includes: generating a three-dimension image having a first eye frame and a second eye frame from an original two-dimension image; generating first and second mask areas at first and second boundaries of the first eye frame; and generating third and fourth mask areas at first and second boundaries of the second eye frame. Each length of the first and the fourth mask areas includes a length of a comparison area whose length is determined based on a pixel data difference obtained by comparing the first eye frame and the second eye frame. Each length of the first to the fourth mask area further includes a length of a first extension border area.

Description

三維影像處理方法3D image processing method

本揭露是有關於一種三維影像處理方法。The disclosure relates to a three-dimensional image processing method.

現今,觀賞三維影像具有較佳娛樂效果,故而,愈來愈多的顯示裝置(比如三維電視機等)支援三維影像顯示。不過,三維顯示裝置所接收的影像信號可能只是二維影像信號,故而,三維顯示裝置將二維影像轉換成三維影像。Nowadays, viewing 3D images has better entertainment effects, so more and more display devices (such as 3D TVs) support 3D image display. However, the image signal received by the three-dimensional display device may be only a two-dimensional image signal, and therefore, the three-dimensional display device converts the two-dimensional image into a three-dimensional image.

在將二維影像轉換成三維影像時,亦可稱為三維覆蓋(wrapping),必須參考所謂的深度圖(depth map)。所謂的「深度」是指,人眼在看此影像中的物體時所感覺到物體的遠近程度。量深圖是由許多量深位元所組成,各深度位元代表相對應的二維影像中的一個畫素的深度。如此,可從一張已知視角的影像與其相對應深度圖來提供立體影像給觀賞者。When converting a 2D image into a 3D image, it can also be called 3D wrapping, and must refer to a so-called depth map. The so-called "depth" refers to the degree to which the human eye feels when looking at an object in the image. The depth map is composed of a number of depth bits, each depth representing the depth of a pixel in the corresponding 2D image. In this way, a stereoscopic image can be provided to the viewer from an image of a known viewing angle and its corresponding depth map.

三維影像包括左眼畫面與右眼畫面。人眼在觀賞三維影像時,如果左眼所看的左眼畫面與右眼所看的右眼畫面有視差,則人眼會感覺此物體有立體感。反之,如果無視差,則人眼會感覺此物體為平面。The 3D image includes a left eye picture and a right eye picture. When the human eye views the three-dimensional image, if the left eye image seen by the left eye and the right eye image viewed by the right eye have parallax, the human eye will feel that the object has a three-dimensional effect. Conversely, if there is no parallax, the human eye will feel that the object is a plane.

一般來說,如果將物體顯示在遠方,要將左眼畫面向左移並將右眼畫面向右移。相對地,將物體顯示在近方,要將左眼畫面向右移並將右眼畫面向左移。在查詢深度圖後,即可得知,左眼畫面與右眼畫面要往何方向平移,及其平移量為何。In general, if you display an object in the distance, move the left-eye picture to the left and the right-eye picture to the right. In contrast, to display the object in the near side, move the left eye picture to the right and the right eye picture to the left. After querying the depth map, you can see in which direction the left-eye and right-eye images are to be translated, and what the amount of translation is.

然而,在處理三維影像時,在會左眼畫面與右眼畫面之邊界處產生邊框(border),但邊框會影響到三維影像的可視內容也會影響到人眼觀看時的舒適感。However, when processing a three-dimensional image, a border is generated at the boundary between the left-eye image and the right-eye image, but the frame affects the visual content of the three-dimensional image and affects the comfort of the human eye.

在此所揭露之實施例係有關於一種三維影像處理方法,其可產生不對稱之虛擬邊框。Embodiments disclosed herein relate to a three-dimensional image processing method that produces an asymmetrical virtual border.

本揭露實施例係有關於一種三維影像處理方法,其所產生的虛擬邊框與三維影像可處於不同視覺平面。The disclosed embodiments relate to a three-dimensional image processing method, and the generated virtual border and the three-dimensional image may be in different visual planes.

根據一示範性實施例,提出一種三維影像處理方法,包括:依據一原始二維影像之一畫面以產生一三維影像之一第一眼畫面與一第二眼畫面;於該第一眼畫面之一第一邊界處與一第二邊界處分別產生一第一遮罩區域與一第二遮罩區域;以及於該第二眼畫面之一第一邊界處與一第二邊界處分別產生一第三遮罩區域與一第四遮罩區域。該第一與該第四遮罩區域當中每一者之長度係包括一比對區域之長度,該些比對區域之長度係比對該第一眼畫面與該第二眼畫面中之畫素資料之差異來決定。該第一至該第四遮罩區域當中每一者之長度更包括一第一延伸邊框區域之長度。According to an exemplary embodiment, a method for processing a three-dimensional image includes: generating a first eye image and a second eye image according to one of the original two-dimensional images; and the first eye image a first mask region and a second mask region are respectively generated at a first boundary and a second boundary; and a first boundary is formed at a first boundary and a second boundary of the second eye A three-mask area and a fourth mask area. The length of each of the first and fourth mask regions includes a length of the aligned region, and the lengths of the aligned regions are compared to the pixels in the first eye image and the second eye image. The difference in the data is determined. The length of each of the first to fourth mask regions further includes a length of a first extended frame region.

根據另一示範性實施例,提出一種三維影像處理方法,包括:依據一原始二維影像之一畫面以產生一三維影像之一第一眼畫面與一第二眼畫面;於該第一眼畫面之一第一邊界處與一第二邊界處分別產生一第一遮罩區域與一第二遮罩區域;以及於該第二眼畫面之一第一邊界處與一第二邊界處分別產生一第三遮罩區域與一第四遮罩區域。該第一至該第四遮罩區域之長度分別為第一至第四長度,該第一至第四長度均不為零,且該第一長度不等於該第三長度,該第二長度不等於該第四長度。According to another exemplary embodiment, a method for processing a three-dimensional image is provided, including: generating a first eye image and a second eye image according to one of the original two-dimensional images; a first mask region and a second mask region are respectively generated at a first boundary and a second boundary; and a first boundary and a second boundary are respectively generated at the first boundary of the second eye a third mask area and a fourth mask area. The lengths of the first to fourth mask regions are respectively the first to fourth lengths, and the first to fourth lengths are not zero, and the first length is not equal to the third length, and the second length is not Equal to the fourth length.

為了對本案之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式,作詳細說明如下:In order to better understand the above and other aspects of the present invention, the following specific embodiments, together with the drawings, are described in detail below:

請參考第1圖,其顯示根據一實施例之三維影像處理方法之流程圖。於步驟110中,依據原始二維影像之畫面以產生三維影像之第一眼畫面與第二眼畫面。第一眼畫面比如但不限於為左眼畫面與右眼畫面之任一者,而第二眼畫面則為左眼畫面與右眼畫面之另一者。比如,於步驟110中,將原始二維影像沿兩相反方向平移一平移量以分別產生第一眼畫面與第二眼畫面。Please refer to FIG. 1 , which shows a flow chart of a three-dimensional image processing method according to an embodiment. In step 110, the first eye image and the second eye image of the three-dimensional image are generated according to the original two-dimensional image. The first eye picture is, for example but not limited to, one of a left eye picture and a right eye picture, and the second eye picture is the other of the left eye picture and the right eye picture. For example, in step 110, the original two-dimensional image is translated by a translation amount in opposite directions to generate a first eye image and a second eye image, respectively.

於步驟120中,比對第一眼畫面與第二眼畫面中之畫素資料之差異,以決定一比對區域之長度。In step 120, the difference between the pixel data in the first eye image and the second eye image is compared to determine the length of an aligned region.

於步驟130中,依據該比對區域之長度,於該第一眼畫面之一第一邊界處與一第二邊界處分別產生一第一遮罩區域與一第二遮罩區域,以及於該第二眼畫面之一第一邊界處與一第二邊界處分別產生一第三遮罩區域與一第四遮罩區域。In step 130, a first mask region and a second mask region are respectively generated at a first boundary of the first eye image and a second boundary according to the length of the comparison region, and A third mask region and a fourth mask region are respectively generated at one of the first boundary and the second boundary of the second eye.

於步驟140中,從第一至第四遮罩區域當中每一者更延伸出一第一延伸邊框區域。In step 140, a first extended bezel area is further extended from each of the first to fourth mask regions.

選擇性地,於步驟150中,將第二與第三遮罩區域當中每一者更延伸出一第二延伸邊框區域。值得注意的是,在第1圖中,步驟150用虛線框住,代表此步驟為一選擇性步驟,可依照設計需求來決定是否實施。另外,在另一實施例中,步驟140亦可作為一選擇性步驟,但實施步驟150。Optionally, in step 150, each of the second and third mask regions is extended beyond a second extended frame region. It is worth noting that in Figure 1, step 150 is framed by a dashed line, representing that this step is an optional step that can be implemented depending on design requirements. In addition, in another embodiment, step 140 can also be used as an optional step, but step 150 is implemented.

以下將利用第2A圖~第3B圖所示之實施例,以詳述第1圖中所示之三維影像處理方法中步驟120~150之細節。在第2A圖~第3B圖中,相似參考符號代表相似意義。此外,在第2A圖~第3B圖所示之實施例中,也說明了步驟120~150中,第一至第四遮罩區域與比對區域間的長度關係,以及第一延伸邊框區域與第二延伸邊框區域間的長度關係。The embodiments shown in Figs. 2A to 3B will be used hereinafter to detail the details of steps 120 to 150 in the three-dimensional image processing method shown in Fig. 1. In the 2A to 3B drawings, like reference symbols represent similar meanings. In addition, in the embodiments shown in FIGS. 2A to 3B, the length relationship between the first to fourth mask regions and the comparison region in steps 120 to 150, and the first extended frame region and The length relationship between the second extended frame regions.

遠方影像之處理Remote image processing

第2A圖顯示根據一實施例之遠方三維影像之左眼畫面之左邊界LB與右眼畫面之左邊界LB之影像處理示意圖。第2B圖顯示根據本實施例之遠方三維影像之左眼畫面之右邊界RB與右眼畫面之右邊界RB之影像處理示意圖。人眼觀看第2A圖與第2B圖之遠方三維影像時,人眼覺得此三維影像顯示在較遠方。也就是說,人眼覺得此三維影像顯示在螢幕較後方。2A is a diagram showing image processing of the left boundary LB of the left eye picture and the left boundary LB of the right eye picture of the remote 3D image according to an embodiment. FIG. 2B is a schematic diagram showing image processing of the right border RB of the left eye picture and the right border RB of the right eye picture according to the remote three-dimensional image according to the embodiment. When the human eye views the distant three-dimensional image of FIG. 2A and FIG. 2B, the human eye feels that the three-dimensional image is displayed far away. In other words, the human eye feels that the 3D image is displayed behind the screen.

請先同時參考第1圖與第2A圖。2D代表原始二維影像,LF與RF分別代表左眼畫面與右眼畫面。LB與RB代表左邊界LB與右邊界RB。可視區域則代表人眼在觀看二維影像或三維影像時所能觀看的區域。Please refer to both Figure 1 and Figure 2A. 2D represents the original 2D image, and LF and RF represent the left eye picture and the right eye picture, respectively. LB and RB represent a left boundary LB and a right boundary RB. The visible area represents the area that the human eye can view when viewing a 2D image or a 3D image.

首先,說明第1圖之步驟110。於第2A圖中,二維影像2D的某一畫素列在左邊界LB的從左至右的畫素依序為A、B、C、D、E、F…。因此,於步驟110中,可將二維影像2D往左平移一平移量以產生左眼畫面LF,以及將二維影像2D往右平移此平移量以產生右眼畫面RF。值得注意的是,二維影像之實際解析度並不受限於本實施例之範例說明。此外,在此平移量係舉例為4畫素,但當知本發明並不受限於此。舉例而言,比如,平移量可以是1/2畫素、1/4畫素、1/8畫素等。First, step 110 of Fig. 1 will be described. In FIG. 2A, the left-to-right pixels of a certain pixel of the two-dimensional image 2D are listed as A, B, C, D, E, F, . Therefore, in step 110, the two-dimensional image 2D can be shifted to the left by a shift amount to generate the left-eye image LF, and the two-dimensional image 2D is shifted to the right by the shift amount to generate the right-eye image RF. It should be noted that the actual resolution of the two-dimensional image is not limited to the example description of the embodiment. Further, the shift amount is exemplified as 4 pixels, but it is to be understood that the present invention is not limited thereto. For example, the amount of translation may be 1/2 pixel, 1/4 pixel, 1/8 pixel, or the like.

接下來,說明第1圖之步驟120。可觀察到於圖2A中,由於將右眼畫面RF往右平移4個畫素,故右眼畫面RF的左邊界LB的四個畫素值已被移除而不具意義(在此以X1~X4表示之)。另一方面,由於將左眼畫面LF往左平移4個畫素,所以左眼畫面LF的原先最左邊4個畫素值A~D被移出可視區域外而不可見。Next, step 120 of Fig. 1 will be described. It can be observed that in FIG. 2A, since the right-eye picture RF is shifted to the right by 4 pixels, the four pixel values of the left boundary LB of the right-eye picture RF have been removed without meaning (here X1~) X4 indicates it). On the other hand, since the left-eye picture LF is shifted to the left by 4 pixels, the original leftmost 4 pixel values A to D of the left-eye picture LF are removed from the visible area and are not visible.

因此,經比較左眼畫面LF與右眼畫面RF後可發現,於左邊界LB處,畫素資料X1~X4與A~D雖然出現於右眼畫面RF,但卻未出現於左眼畫面LF。故而,可將畫素資料X1~X4與A~D所在之區域取為一比對區域M1,其長度等於平移量的2倍。Therefore, after comparing the left-eye picture LF with the right-eye picture RF, it can be found that at the left boundary LB, the pixel data X1~X4 and A~D appear on the right-eye picture RF but not on the left-eye picture LF. . Therefore, the region where the pixel data X1~X4 and A~D are located can be taken as a comparison area M1, and the length is equal to twice the translation amount.

接下來,說明第1圖之步驟130,其對應於第2A圖之步驟210。於步驟210中,係根據比對區域M1之長度,在左眼畫面LF之左邊界LB產生遮罩區域LF_ML,以及於右眼畫面RF之左邊界LB產生遮罩區域RF_ML。而左眼畫面於左邊界LB處的遮罩區域LF_ML之長度暫時為0。步驟210之遮罩區域RF_ML包括比對區域M1,或者說,遮罩區域RF_ML之長度包括比對區域M1之長度Lcom。因此,於步驟210進行後,係將左眼畫面LF之左邊界LB遮罩0個畫素,而將右眼畫面RF之左邊界LB遮罩Lcom個畫素。Next, step 130 of Fig. 1 is illustrated, which corresponds to step 210 of Fig. 2A. In step 210, a mask area LF_ML is generated on the left boundary LB of the left-eye picture LF according to the length of the comparison area M1, and a mask area RF_ML is generated on the left boundary LB of the right-eye picture RF. The length of the mask area LF_ML at the left boundary LB of the left eye picture is temporarily 0. The mask area RF_ML of step 210 includes the comparison area M1, or the length of the mask area RF_ML includes the length Lcom of the comparison area M1. Therefore, after step 210, the left boundary LB of the left-eye picture LF is masked by 0 pixels, and the left boundary LB of the right-eye picture RF is masked by Lcom pixels.

簡單言之,步驟120與130係將左眼畫面LF與右眼畫面RF進行比對,並將未出現於左眼畫面LF之畫素資料所在之區域取作比對區域M1,並將其加以遮罩。進行步驟120與130的原理在於,以人眼而言,左右眼都要看到同一個畫素,人眼才有辦法聚焦,亦即,如果只有一眼看到一畫素而另一眼看不到此畫素的話,則人眼無法聚焦此畫素。在無設置比對區域遮罩的情況下,畫素A~D只在右眼畫面RF中而不在左眼畫面LF中,所以人眼無法聚焦畫素A~D。故而,於本實施例中,將比對區域遮罩住,可避免人眼看到無法聚焦的點,如此可提高觀看舒適感。In short, steps 120 and 130 compare the left-eye picture LF with the right-eye picture RF, and take the area of the pixel data that does not appear on the left-eye picture LF as the comparison area M1, and add it. Mask. The principle of steps 120 and 130 is that, in the eyes of the human eye, the left and right eyes must see the same pixel, and the human eye can have a way to focus, that is, if only one eye sees one pixel and the other eye does not see In this case, the human eye cannot focus on this pixel. In the case where the alignment mask is not set, the pixels A to D are only in the right-eye picture RF and not in the left-eye picture LF, so the human eye cannot focus on the pixels A to D. Therefore, in the present embodiment, the alignment area is masked, and the point where the human eye cannot see the focus can be avoided, so that the viewing comfort can be improved.

接下來,說明第1圖之步驟140,其對應於第2A圖之步驟220。於步驟220中,從左眼畫面LF之遮罩區域LF_ML與右眼畫面RF之遮罩區域RF_ML更延伸出第一延伸邊框區域n1。亦即,左眼畫面LF之遮罩區域LF_ML之長度與右眼畫面RF之遮罩區域RF_ML皆包括第一延伸邊框區域n1之長度Lvf。亦即,於步驟220中,將左眼畫面LF之左邊界LB更進一步地遮罩Lvf個畫素,也將右眼畫面RF之左邊界LB更進一步地遮罩Lvf個畫素。於此實施例中,舉例而言,係將左眼畫面LF的畫素E、F與右眼畫面RF的畫素E、F皆遮住。Next, step 140 of Fig. 1 is illustrated, which corresponds to step 220 of Fig. 2A. In step 220, the first extended frame area n1 is extended from the mask area LF_ML of the left-eye picture LF and the mask area RF_ML of the right-eye picture RF. That is, the length of the mask area LF_ML of the left-eye picture LF and the mask area RF_ML of the right-eye picture RF all include the length Lvf of the first extended frame area n1. That is, in step 220, the left boundary LB of the left-eye picture LF is further masked by Lvf pixels, and the left boundary LB of the right-eye picture RF is further masked by Lvf pixels. In this embodiment, for example, the pixels E and F of the left-eye picture LF and the pixels E and F of the right-eye picture RF are blocked.

在進行步驟220後,左眼畫面LF之遮罩區域LF_ML之長度為Lvf,而右眼畫面RF之遮罩區域RF_ML則為Lcom+Lvf。步驟220的原理在於,人眼觀看第2A圖之步驟220之左眼畫面LF與右眼畫面RF的話,人眼較會覺得邊框與影像在同一視覺平面,且人眼可以聚焦此第一延伸邊框區域n1。After step 220 is performed, the length of the mask area LF_ML of the left-eye picture LF is Lvf, and the mask area RF_ML of the right-eye picture RF is Lcom+Lvf. The principle of step 220 is that if the human eye views the left-eye picture LF and the right-eye picture RF of step 220 of FIG. 2A, the human eye feels that the frame and the image are in the same visual plane, and the human eye can focus on the first extended frame. Area n1.

接下來,說明第1圖之步驟150,其對應於第2A圖之步驟230。於步驟230中,從左眼畫面LF之遮罩區域LF_ML更延伸出第二延伸邊框區域k1,但右眼畫面RF之遮罩區域RF_ML則未延伸第二延伸邊框區域k1。亦即,於步驟230中,將左眼畫面LF之左邊界LB更進一步地遮罩Lfs個畫素。因此,於步驟230進行後,左眼畫面LF之遮罩區域LF_ML之長度為Lvf+Lfs,而右眼畫面RF之遮罩區域RF_ML則為Lcom+Lvf。Next, step 150 of Fig. 1 is illustrated, which corresponds to step 230 of Fig. 2A. In step 230, the second extended frame area k1 is further extended from the mask area LF_ML of the left-eye picture LF, but the mask area RF_ML of the right-eye picture RF does not extend the second extended frame area k1. That is, in step 230, the left border LB of the left-eye picture LF is further masked by Lfs pixels. Therefore, after the step 230 is performed, the length of the mask area LF_ML of the left-eye picture LF is Lvf+Lfs, and the mask area RF_ML of the right-eye picture RF is Lcom+Lvf.

步驟230可以讓遮罩區域所構成的虛擬邊框與三維影像在不同視覺平面,也就是說,人眼觀看虛擬邊框猶如相框的感覺,比如,人眼會覺得三維影像內凹於虛擬邊框。這樣的話,可以提高人眼觀看三維影像的舒適感。如果讓右眼畫面RF之遮罩區域RF_ML也包括第二延伸邊框區域k1的話,則虛擬黑框與三維影像會處於同一視覺平面,無法提高人眼觀看舒適感。第二延伸邊框區域k1之長度為Lfs。值得注意的是,於其他可能實施例中,亦可令人眼在觀看時,覺得三維影像凸出於虛擬邊框,此亦在本發明精神範圍內。In step 230, the virtual border formed by the mask area and the three-dimensional image are in different visual planes, that is, the human eye views the virtual border as if it were a photo frame. For example, the human eye may feel that the three-dimensional image is concave in the virtual border. In this way, the comfort of the human eye to view the three-dimensional image can be improved. If the mask area RF_ML of the right-eye picture RF also includes the second extended frame area k1, the virtual black frame and the three-dimensional image will be in the same visual plane, which cannot improve the comfort of the human eye. The length of the second extended bezel area k1 is Lfs. It should be noted that in other possible embodiments, it is also possible to make the three-dimensional image protrude from the virtual frame when viewed, which is also within the spirit of the present invention.

接下來,請改為同時參考第1圖與第2B圖。首先,說明第1圖之步驟120。可觀察到於圖2B中,由於將左眼畫面LF往左平移4個畫素,故左眼畫面LF的右邊界RB的四個畫素值已被移除而不具意義(在此以Y1~Y4表示之)。另一方面,由於將右眼畫面RF往右平移4個畫素,所以,右眼畫面RF的原先最右邊4個畫素值A1~D1被移出可視區域外而不可見。Next, please refer to both Figure 1 and Figure 2B. First, step 120 of Fig. 1 will be described. It can be observed that in FIG. 2B, since the left-eye picture LF is shifted to the left by 4 pixels, the four pixel values of the right boundary RB of the left-eye picture LF have been removed without meaning (here Y1~) Y4 indicates). On the other hand, since the right-eye picture RF is shifted to the right by 4 pixels, the original rightmost 4 pixel values A1 to D1 of the right-eye picture RF are removed from the visible area and are not visible.

因此,將左眼畫面LF與右眼畫面RF比對後可發現,在右邊界RB,畫素A1、B1、C1、D1、Y1、Y2、Y3、Y4雖然出現於左眼畫面LF但並未出現於右眼畫面RF。故而,可將畫素資料Y1、Y2、Y3、Y4、A1、B1、C1、D1所在之區域取為一比對區域M2,其長度等於平移量的2倍。Therefore, after comparing the left-eye picture LF with the right-eye picture RF, it can be found that at the right boundary RB, the pixels A1, B1, C1, D1, Y1, Y2, Y3, and Y4 appear on the left-eye picture LF but are not Appears in the right eye screen RF. Therefore, the region where the pixel data Y1, Y2, Y3, Y4, A1, B1, C1, and D1 are located can be taken as a comparison region M2, and the length thereof is equal to twice the amount of translation.

接下來,說明第1圖之步驟130,其對應於第2B圖之步驟240。於步驟240中,根據比對區域M2之長度,在左眼畫面LF之右邊界RB產生遮罩區域LF_MR,以及於右眼畫面RF之右邊界RB產生遮罩區域RF_MR。遮罩區域LF_MR包括比對區域M2,其長度也為Lcom。亦即於步驟240中,將左眼畫面LF之右邊界RB遮罩Lcom個畫素,而將右眼畫面RF之右邊界RB遮罩0個畫素。Next, step 130 of Fig. 1 is illustrated, which corresponds to step 240 of Fig. 2B. In step 240, a mask area LF_MR is generated on the right border RB of the left-eye picture LF according to the length of the comparison area M2, and a mask area RF_MR is generated on the right border RB of the right-eye picture RF. The mask area LF_MR includes the comparison area M2, which is also Lcom in length. That is, in step 240, the right border RB of the left-eye picture LF is masked by Lcom pixels, and the right border RB of the right-eye picture RF is masked by 0 pixels.

接下來,說明第1圖之步驟140,其對應於第2B圖之步驟250。於步驟250中,從左眼畫面LF之遮罩區域LF_MR與右眼畫面RF之遮罩區域RF_MR更延伸出第一延伸邊框區域n2。亦即,左眼畫面LF之遮罩區域LF_MR之長度與右眼畫面RF之遮罩區域RF_MR皆更包括第一延伸邊框區域n2之長度Lvf。第一延伸邊框區域n1與n2之長度皆為Lvf。Next, step 140 of FIG. 1 is illustrated, which corresponds to step 250 of FIG. 2B. In step 250, the first extended frame region n2 is extended from the mask region LF_MR of the left-eye picture LF and the mask region RF_MR of the right-eye frame RF. That is, the length of the mask area LF_MR of the left-eye picture LF and the mask area RF_MR of the right-eye picture RF further include the length Lvf of the first extended frame area n2. The lengths of the first extended frame regions n1 and n2 are both Lvf.

亦即,於步驟250中,將左眼畫面LF之右邊界RB更進一步地遮罩Lvf個畫素,而將右眼畫面RF之右邊界RB更進一步地遮罩Lvf個畫素。因此,於步驟250進行後,左眼畫面LF之遮罩區域LF_MR之長度為Lcom+Lvf,而右眼畫面RF之遮罩區域RF_MR則為Lvf。人眼觀看第2B圖之步驟250之左眼畫面LF與右眼畫面RF的話,人眼會覺得邊框與影像在同一視覺平面。That is, in step 250, the right border RB of the left-eye picture LF is further masked by Lvf pixels, and the right border RB of the right-eye picture RF is further masked by Lvf pixels. Therefore, after the step 250 is performed, the length of the mask area LF_MR of the left-eye picture LF is Lcom+Lvf, and the mask area RF_MR of the right-eye picture RF is Lvf. When the human eye views the left eye picture LF and the right eye picture RF of step 250 of FIG. 2B, the human eye will think that the frame and the image are in the same visual plane.

接下來,說明第1圖之步驟150,其對應於第2B圖之步驟260。於步驟260中,從右眼畫面RF之遮罩區域RF_MR更延伸出第二延伸邊框區域k2,但左眼畫面LF之遮罩區域LF_MR則並未延伸出第二延伸邊框區域k2(步驟150),其理由同於第2A圖的步驟230。第二延伸邊框區域k2之長度也為Lfs。亦即,於步驟260中,將右眼畫面LF之右邊界RB更進一步地遮罩Lfs個畫素。在步驟260進行後,左眼畫面LF之遮罩區域LF_MR之長度為Lcom+Lvf,而右眼畫面RF之遮罩區域RF_ML則為Lvf+Lfs。Next, step 150 of FIG. 1 is illustrated, which corresponds to step 260 of FIG. 2B. In step 260, the second extended frame area k2 is further extended from the mask area RF_MR of the right eye picture RF, but the mask area LF_MR of the left eye picture LF does not extend out of the second extended frame area k2 (step 150). The reason is the same as step 230 of FIG. 2A. The length of the second extended bezel area k2 is also Lfs. That is, in step 260, the right border RB of the right eye picture LF is further masked by Lfs pixels. After the step 260 is performed, the length of the mask area LF_MR of the left-eye picture LF is Lcom+Lvf, and the mask area RF_ML of the right-eye picture RF is Lvf+Lfs.

由第2A圖與第2B圖可看出,對於左眼畫面LF而言,其左邊界LB的遮罩區域LF_ML與其右邊界RB的遮罩區域LF_MR是不對稱的。同樣地,對於右眼畫面RF而言,其左邊界LB的遮罩區域RF_ML與其右邊界RB的遮罩區域RF_MR亦是不對稱的。As can be seen from FIGS. 2A and 2B, for the left-eye picture LF, the mask area LF_ML of its left border LB is asymmetrical with the mask area LF_MR of its right border RB. Similarly, for the right-eye picture RF, the mask area RF_ML of its left border LB and its mask area RF_MR of the right border RB are also asymmetrical.

近方影像之處理Near-field image processing

請參考第3A圖與第3B圖。第3A圖顯示根據一實施例之近方三維影像之左眼畫面之左邊界LB與右眼畫面之左邊界LB之影像處理示意圖。第3B圖顯示根據本實施例之近方三維影像之左眼畫面之右邊界RB與對右眼畫面之右邊界RB之影像處理示意圖。人眼觀看第3A圖與第3B圖之近方三維影像時,人眼覺得此三維影像顯示在較近方。也就是說,人眼覺得此三維影像顯示在螢幕較前方。Please refer to Figures 3A and 3B. FIG. 3A is a diagram showing image processing of the left boundary LB of the left-eye picture and the left boundary LB of the right-eye picture of the near-side three-dimensional image according to an embodiment. FIG. 3B is a view showing the image processing of the right border RB of the left eye picture and the right border RB of the right eye picture according to the near-side three-dimensional image according to the present embodiment. When the human eye views the 3D images of the 3A and 3B, the human eye feels that the 3D image is displayed closer. In other words, the human eye feels that the 3D image is displayed on the front of the screen.

請改為同時參考第1圖與第3A圖。首先,說明第1圖之步驟120。可觀察到於圖3A中,由於將左眼畫面LF’往右平移4個畫素,故而左眼畫面LF’的左邊界LB的4個畫素值已被移除而不可見(在此以X1’~X4’表示之)。另一方面,由於將右眼畫面RF’往左平移4個畫素,所以,右眼畫面LF’的原先最左邊4個畫素值A’~D’被移出可視區域外而不可見。Please refer to both Figure 1 and Figure 3A. First, step 120 of Fig. 1 will be described. It can be observed that in FIG. 3A, since the left-eye picture LF' is shifted to the right by 4 pixels, the 4 pixel values of the left boundary LB of the left-eye picture LF' have been removed and are not visible (here X1'~X4' indicates it). On the other hand, since the right-eye picture RF' is shifted to the left by 4 pixels, the original leftmost 4 pixel values A' to D' of the right-eye picture LF' are removed from the visible area and are not visible.

因此,經比較左眼畫面LF’與右眼畫面RF’後可發現,於左邊界LB’處,畫素資料X1’~X4’與A’~D’雖然出現於左眼畫面LF’,但卻未出現於右眼畫面RF’。故而,可將畫素資料X1’~X4’與A’~D’所在區域取為一比對區域M1’,其長度等於平移量的2倍。Therefore, after comparing the left-eye picture LF' with the right-eye picture RF', it can be found that at the left boundary LB', the pixel data X1'~X4' and A'~D' appear on the left-eye picture LF', but It does not appear in the right eye picture RF'. Therefore, the region where the pixel data X1'~X4' and A'~D' are located can be taken as a matching region M1', and the length thereof is equal to twice the amount of translation.

接下來,說明第1圖之步驟130,其對應於第3A圖之步驟310。於步驟310中,根據比對區域M1’之長度,在左眼畫面LF’之左邊界LB’產生遮罩區域LF_ML’,以及於右眼畫面RF’之左邊界LB’產生遮罩區域RF_ML’。步驟310之遮罩區域RF_ML’之長度暫時為0。步驟310之遮罩區域LF_ML’包括比對區域M1’,或者說,遮罩區域LF_ML’之長度包括比對區域M1’之長度Lcom’。亦即於步驟310中,將左眼畫面LF’之左邊界LB’遮罩Lcom’個畫素,而將右眼畫面RF’之左邊界LB遮罩0個畫素。Next, step 130 of FIG. 1 is illustrated, which corresponds to step 310 of FIG. 3A. In step 310, according to the length of the comparison area M1', a mask area LF_ML' is generated at the left boundary LB' of the left-eye picture LF', and a mask area RF_ML' is generated at the left boundary LB' of the right-eye picture RF'. . The length of the mask area RF_ML' of step 310 is temporarily zero. The mask area LF_ML' of step 310 includes the alignment area M1', or the length of the mask area LF_ML' includes the length Lcom' of the comparison area M1'. That is, in step 310, the left boundary LB' of the left-eye picture LF' is masked by Lcom' pixels, and the left boundary LB of the right-eye picture RF' is masked by 0 pixels.

接下來,說明第1圖之步驟140,其對應於第3A圖之步驟320。於步驟320中,從左眼畫面LF’之遮罩區域LF_ML’與右眼畫面RF’之遮罩區域RF_ML’更延伸出第一延伸邊框區域n1’(步驟140)。左眼畫面LF’之遮罩區域LF_ML’之長度與右眼畫面RF’之遮罩區域RF_ML’皆包括第一延伸邊框區域n1’之長度Lvf’。Next, step 140 of FIG. 1 is illustrated, which corresponds to step 320 of FIG. 3A. In step 320, the first extended bezel area n1' is extended from the mask area LF_ML' of the left-eye picture LF' and the mask area RF_ML' of the right-eye picture RF' (step 140). The length of the mask area LF_ML' of the left-eye picture LF' and the mask area RF_ML' of the right-eye picture RF' include the length Lvf' of the first extended frame area n1'.

換言之,於步驟320中,將左眼畫面LF’之左邊界LB’更進一步地遮罩Lvf’個畫素,而將右眼畫面RF’之左邊界LB’更進一步地遮罩Lvf’個畫素。因此,於步驟320進行後,左眼畫面LF’之遮罩區域LF_ML’之長度為Lcom’+Lvf’,而右眼畫面RF’之遮罩區域RF_ML’則為Lvf’。人眼觀看第3A圖之步驟320之左眼畫面LF’與右眼畫面RF’的話,人眼會覺得邊框與影像在同一視覺平面。In other words, in step 320, the left boundary LB' of the left-eye picture LF' is further masked by the Lvf' pixels, and the left boundary LB' of the right-eye picture RF' is further masked by the Lvf' picture. Prime. Therefore, after the step 320 is performed, the length of the mask area LF_ML' of the left-eye picture LF' is Lcom'+Lvf', and the mask area RF_ML' of the right-eye picture RF' is Lvf'. When the human eye views the left eye picture LF' and the right eye picture RF' of step 320 of Fig. 3A, the human eye will feel that the frame and the image are in the same visual plane.

接下來,說明第1圖之步驟150,其對應於第3A圖之步驟330。於步驟330中,從左眼畫面LF’之遮罩區域LF_ML’更延伸出第二延伸邊框區域k1’,但右眼畫面RF’之遮罩區域RF_ML’則並未延伸出第二延伸邊框區域k1’(步驟150),其理由如步驟230。亦即,於步驟330中,將左眼畫面LF’之左邊界LB’更進一步地遮罩Lfs’個畫素。因此,於步驟330進行後,左眼畫面LF’之遮罩區域LF_ML’之長度為Lcom’+Lvf’+Lfs’,而右眼畫面RF’之遮罩區域RF_ML’則為Lvf’。Next, step 150 of FIG. 1 is illustrated, which corresponds to step 330 of FIG. 3A. In step 330, the second extended frame area k1' is extended from the mask area LF_ML' of the left-eye picture LF', but the mask area RF_ML' of the right-eye picture RF' does not extend out of the second extended frame area. K1' (step 150), the reason is as in step 230. That is, in step 330, the left boundary LB' of the left-eye picture LF' is further masked by Lfs' pixels. Therefore, after the step 330 is performed, the length of the mask area LF_ML' of the left-eye picture LF' is Lcom'+Lvf'+Lfs', and the mask area RF_ML' of the right-eye picture RF' is Lvf'.

請改為同時參考第1圖與第3B圖。首先,說明第1圖之步驟120。可觀察到於圖3B中,由於將右眼畫面RF’往右平移4個畫素,故而右眼畫面RF’的右邊界RB’所在的4個畫素值已被移除(在此以Y1’~Y4’表示之)。另一方面,由於將左眼畫面LF’往右平移4個畫素,所以左眼畫面LF’的原先最右邊4個畫素值A1’~D1’被移出可視區域外而不可見。Please refer to both Figure 1 and Figure 3B. First, step 120 of Fig. 1 will be described. It can be observed that in FIG. 3B, since the right eye picture RF' is shifted to the right by 4 pixels, the 4 pixel values of the right border RB' of the right eye picture RF' have been removed (here Y1) '~Y4' indicates). On the other hand, since the left-eye picture LF' is shifted to the right by 4 pixels, the original rightmost 4 pixel values A1' to D1' of the left-eye picture LF' are removed from the visible area and are not visible.

因此,經比較左眼畫面LF’與右眼畫面RF’後可發現,在第3B圖中,於右邊界RB’處,畫素資料Y1’~Y4’與A1’~D1’雖然出現於右眼畫面RF’,但卻未出現於左眼畫面LF’,故而可將畫素資料Y1’~Y4’與A1’~D1’所在之區域取作一比對區域M2’。Therefore, after comparing the left-eye picture LF' and the right-eye picture RF', it can be found that in the 3B picture, at the right boundary RB', the pixel data Y1'~Y4' and A1'~D1' appear on the right. The eye picture RF', but does not appear in the left eye picture LF', so the area where the pixel data Y1'~Y4' and A1'~D1' are located can be taken as a comparison area M2'.

接下來,說明第1圖之步驟130,其對應於第3B圖之步驟340。於步驟340中,根據比對區域M2’之長度,在左眼畫面LF’之右邊界RB’產生遮罩區域LF_MR’,以及於右眼畫面RF’之右邊界RB’產生遮罩區域RF_MR’。遮罩區域RF_MR’包括比對區域M2’,其長度也為Lcom’。步驟340之遮罩區域LF_ML’之長度暫時為0。亦即於步驟340中,將右眼畫面RF’之右邊界RB’遮罩Lcom’個畫素,而將左眼畫面LF’之右邊界RB’遮罩0個畫素。Next, step 130 of Fig. 1 is illustrated, which corresponds to step 340 of Fig. 3B. In step 340, a mask area LF_MR' is generated at the right border RB' of the left-eye picture LF' according to the length of the comparison area M2', and a mask area RF_MR' is generated at the right border RB' of the right-eye picture RF'. . The mask area RF_MR' includes the alignment area M2', which is also Lcom' in length. The length of the mask area LF_ML' of step 340 is temporarily zero. That is, in step 340, the right border RB' of the right-eye picture RF' is masked by Lcom' pixels, and the right border RB' of the left-eye picture LF' is masked by 0 pixels.

接下來,說明第1圖之步驟140,其對應於第3B圖之步驟350。於步驟350中,從左眼畫面LF’之遮罩區域LF_MR’與右眼畫面RF’之遮罩區域RF_MR’更延伸出第一延伸邊框區域n2’。亦即,左眼畫面LF’之遮罩區域LF_MR’之長度與右眼畫面RF’之遮罩區域RF_MR’皆更包括第一延伸邊框區域n2’之長度Lvf’。第一延伸邊框區域n1’與n2’之長度皆為Lvf’。Next, step 140 of FIG. 1 is illustrated, which corresponds to step 350 of FIG. 3B. In step 350, the first extended frame region n2' extends from the mask region LF_MR' of the left-eye picture LF' and the mask region RF_MR' of the right-eye picture RF'. That is, the length of the mask area LF_MR' of the left-eye picture LF' and the mask area RF_MR' of the right-eye picture RF' further include the length Lvf' of the first extended frame area n2'. The lengths of the first extended frame regions n1' and n2' are both Lvf'.

亦即,於步驟350中,將左眼畫面LF’之右邊界RB’更進一步地遮罩Lvf’個畫素,而將右眼畫面RF’之右邊界RB’更進一步地遮罩Lvf’個畫素。因此,在步驟350實施後,左眼畫面LF’之遮罩區域LF_MR’之長度為Lvf’,而右眼畫面RF’之遮罩區域RF_MR’則為Lcom’+Lvf’。人眼觀看第3B圖之步驟350之左眼畫面LF’與右眼畫面RF’的話,人眼會覺得邊框與影像在同一視覺平面。That is, in step 350, the right border RB' of the left-eye picture LF' is further masked by Lvf' pixels, and the right border RB' of the right-eye picture RF' is further masked by Lvf' Picture. Therefore, after the step 350 is performed, the length of the mask area LF_MR' of the left-eye picture LF' is Lvf', and the mask area RF_MR' of the right-eye picture RF' is Lcom'+Lvf'. When the human eye views the left eye picture LF' and the right eye picture RF' of step 350 of Fig. 3B, the human eye will feel that the frame and the image are in the same visual plane.

接下來,說明第1圖之步驟150,其對應於第3B圖之步驟360。於步驟360中,從右眼畫面RF’之遮罩區域RF_MR’更延伸出第二延伸邊框區域k2’,但左眼畫面LF’之遮罩區域LF_MR’則並未延伸出第二延伸邊框區域k2’,其理由同於第2A圖的步驟230。第二延伸邊框區域k2’之長度也為Lfs’。亦即,於步驟360中,將右眼畫面LF’之右邊界RB’更進一步地遮罩Lfs’個畫素。因此,在步驟360進行後,左眼畫面LF’之遮罩區域LF_MR’之長度為Lvf’,而右眼畫面RF’之遮罩區域RF_ML’則為Lcom’+Lvf’+Lfs’。Next, step 150 of FIG. 1 is illustrated, which corresponds to step 360 of FIG. 3B. In step 360, the second extended frame area k2' is extended from the mask area RF_MR' of the right eye picture RF', but the mask area LF_MR' of the left eye picture LF' does not extend out of the second extended frame area. K2', the reason is the same as step 230 of FIG. 2A. The length of the second extended bezel area k2' is also Lfs'. That is, in step 360, the right border RB' of the right eye picture LF' is further masked by Lfs' pixels. Therefore, after the step 360 is performed, the length of the mask area LF_MR' of the left-eye picture LF' is Lvf', and the mask area RF_ML' of the right-eye picture RF' is Lcom'+Lvf'+Lfs'.

由第3A圖與第3B圖可看出,對於左眼畫面LF’而言,其左邊界LB’的遮罩區域LF_ML’與其右邊界RB’的遮罩區域LF_MR’是不對稱的。同樣地,對於右眼畫面RF’而言,其左邊界LB’的遮罩區域RF_ML’與其右邊界RB’的遮罩區域RF_MR’亦是不對稱的。As can be seen from Figs. 3A and 3B, for the left-eye picture LF', the mask area LF_ML' of its left boundary LB' is asymmetrical with the mask area LF_MR' of its right border RB'. Similarly, for the right-eye picture RF', the mask area RF_ML' of its left border LB' and its mask area RF_MR' of the right border RB' are also asymmetrical.

簡言之,於上述實施例中,最後所產生的左眼畫面的左邊界遮罩區域與右邊界遮罩區域分別具有第一長度與第二長度,最後所產生的右眼畫面的左邊界遮罩區域與右邊界遮罩區域分別具有第三長度與第四長度的話,則第一至第四長度均不為0,且第一長度不等於第三長度,第二長度不等於第四長度。更進一步地,第一長度與第四長度實質上可相等,以及第二長度與第三長度實質上可相等。In short, in the above embodiment, the left boundary mask region and the right border mask region of the last generated left-eye picture have a first length and a second length, respectively, and the left boundary of the generated right-eye picture is finally covered. If the cover region and the right boundary mask region respectively have a third length and a fourth length, then the first to fourth lengths are not 0, and the first length is not equal to the third length, and the second length is not equal to the fourth length. Still further, the first length and the fourth length are substantially equal, and the second length and the third length are substantially equal.

另外,該第一長度可大於該第三長度,該第四長度可大於該第二長度。另外,該第一長度與該第四長度實質上可相等,以及該第二長度與該第三長度實質上可相等。Additionally, the first length can be greater than the third length, and the fourth length can be greater than the second length. Additionally, the first length and the fourth length are substantially equal, and the second length is substantially equal to the third length.

於一範例中,該第一長度與該第四長度均可等於Lcom+Lvf,該第二與第三長度均可等於Lvf,其中Lcom係代表比對區域長度,其為第一眼畫面與該第二眼畫面經比對而僅出現於其中之一者之畫素資料所佔據之一比對區域之長度,譬如為該第一眼畫面或該第二眼畫面相對該原始二維影像之該畫面之一平移長度之2倍。而Lvf代表虛擬邊框長度,其可根據設計需求來設定。In an example, the first length and the fourth length may both be equal to Lcom+Lvf, and the second and third lengths may be equal to Lvf, where Lcom represents the length of the comparison area, which is the first eye picture and the The second eye image is compared to the length of one of the aligned regions occupied by only one of the pixel data, such as the first eye image or the second eye image relative to the original two-dimensional image. One of the screens is twice the length of the translation. Lvf stands for virtual border length, which can be set according to design requirements.

於另一範例中,該第一長度與該第四長度均可等於Lcom+Lvf,該第二與第三長度均可等於Lvf+Lfs,其中Lcom係代表比對區域長度,其可依據上述之比對方式或得。另外,Lvf代表虛擬邊框長度,Lfs代表邊框平移長度,兩者皆可根據設計需求來設定。In another example, the first length and the fourth length may both be equal to Lcom+Lvf, and the second and third lengths may both be equal to Lvf+Lfs, wherein Lcom represents the length of the comparison region, which may be based on the foregoing Compare the way or get. In addition, Lvf represents the length of the virtual border, and Lfs represents the length of the frame shift, both of which can be set according to design requirements.

再於另一範例中,該第一長度與該第四長度均可等於Lcom+Lvf+Lfs,該第二與第三長度均等於Lvf,其中Lcom係代表比對區域長度,Lvf代表虛擬邊框長度,Lfs代表邊框平移長度,三者分別依照上述方式來設定。In another example, the first length and the fourth length may both be equal to Lcom+Lvf+Lfs, and the second and third lengths are both equal to Lvf, wherein Lcom represents the length of the comparison region, and Lvf represents the virtual frame length. Lfs represents the length of the frame translation, and the three are set according to the above methods.

此外,於本實施例中,對於每一畫素列,其平移量與其比對區域之長度可以彼此相同或彼此不同。更甚者,每一畫素列所對應之平移量與其比對區域之長度可依此畫素列之列數而變。比如,愈頂端的畫素列的平移量與其比對區域之長度可愈大,而愈底端的畫素列的平移量與其比對區域之長度可愈小,如此可更增進人眼觀看三維影像的舒適感。Further, in the present embodiment, for each pixel column, the amount of translation and the length of the alignment area thereof may be identical to each other or different from each other. What is more, the amount of translation corresponding to each pixel column and the length of the alignment area can be changed according to the number of columns of the pixel column. For example, the translation amount of the top pixel column and the length of the comparison region can be larger, and the translation amount of the bottom pixel column and the length of the comparison region can be smaller, which can enhance the human eye to view the three-dimensional image. Comfort.

另外,於上述實施例中,由於將左眼畫面的兩邊虛擬邊框彼此不對稱,所以,可儘量保留原本二維影像的內容。另外,於上述實施例中,虛擬邊框可以填入黑畫素或白畫素(亦即虛擬邊框可為黑框或白框),此亦在本案精神範圍內。In addition, in the above embodiment, since the virtual frames on both sides of the left-eye picture are asymmetrical to each other, the content of the original two-dimensional image can be retained as much as possible. In addition, in the above embodiment, the virtual frame can be filled with black pixels or white pixels (that is, the virtual frame can be a black frame or a white frame), which is also within the spirit of the present invention.

綜上所述,雖然本案已以實施例揭露如上,然其並非用以限定本案。本案所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾。因此,本案之保護範圍當視後附之申請專利範圍所界定者為準。In summary, although the present invention has been disclosed above by way of example, it is not intended to limit the present invention. Those who have ordinary knowledge in the technical field of the present invention can make various changes and refinements without departing from the spirit and scope of the present case. Therefore, the scope of protection of this case is subject to the definition of the scope of the patent application attached.

110~130、210~260、310~360...步驟110~130, 210~260, 310~360. . . step

第1圖顯示根據本案實施例之三維影像處理方法之流程圖。Fig. 1 is a flow chart showing a method of processing a three-dimensional image according to an embodiment of the present invention.

第2A圖顯示根據本實施例之遠方三維影像之左眼畫面之左邊界LB與右眼畫面之左邊界LB之影像處理示意圖。Fig. 2A is a view showing the image processing of the left boundary LB of the left-eye picture and the left boundary LB of the right-eye picture of the remote three-dimensional image according to the present embodiment.

第2B圖顯示根據本實施例之遠方三維影像之左眼畫面之右邊界RB與右眼畫面之右邊界RB之影像處理示意圖。FIG. 2B is a schematic diagram showing image processing of the right border RB of the left eye picture and the right border RB of the right eye picture according to the remote three-dimensional image according to the embodiment.

第3A圖顯示根據本實施例之近方三維影像之左眼畫面之左邊界LB與右眼畫面之左邊界LB之影像處理示意圖。Fig. 3A is a view showing the image processing of the left boundary LB of the left-eye picture and the left boundary LB of the right-eye picture of the near-side three-dimensional image according to the present embodiment.

第3B圖顯示根據本實施例之近方三維影像之左眼畫面之右邊界RB與對右眼畫面之右邊界RB之影像處理示意圖。FIG. 3B is a view showing the image processing of the right border RB of the left eye picture and the right border RB of the right eye picture according to the near-side three-dimensional image according to the present embodiment.

110~150...步驟110~150. . . step

Claims (18)

一種三維影像處理方法,包括:依據一原始二維影像之一畫面以產生一三維影像之一第一眼畫面與一第二眼畫面;於該第一眼畫面之一第一邊界處與一第二邊界處分別產生一第一遮罩區域與一第二遮罩區域;以及於該第二眼畫面之一第一邊界處與一第二邊界處分別產生一第三遮罩區域與一第四遮罩區域;其中該第一與該第四遮罩區域當中每一者之長度係包括一比對區域之長度,該些比對區域之長度係比對該第一眼畫面與該第二眼畫面中之畫素資料之差異來決定;以及該第一至該第四遮罩區域當中每一者之長度更包括一第一延伸邊框區域之長度。A method for processing a three-dimensional image, comprising: generating a first eye image and a second eye image according to one of the original two-dimensional images; at a first boundary of the first eye image a first mask area and a second mask area are respectively generated at the two boundaries; and a third mask area and a fourth are respectively generated at a first boundary and a second boundary of the second eye picture a mask area; wherein a length of each of the first and the fourth mask areas includes a length of the comparison area, the length of the comparison area being compared to the first eye and the second eye The difference between the pixel data in the picture is determined; and the length of each of the first to fourth mask regions further includes the length of a first extended frame region. 如申請專利範圍第1項所述之三維影像處理方法,其中:該第一遮罩區域之該比對區域係包括經該比對而未出現於該第二眼畫面中之畫素資料;以及該第二遮罩區域之該比對區域係包括經該比對而未出現於與該第一眼畫面中之畫素資料。The three-dimensional image processing method of claim 1, wherein: the comparison region of the first mask region comprises pixel data that is not present in the second eye image by the comparison; The aligned region of the second mask region includes pixel data that is not present in the first eye frame through the alignment. 如申請專利範圍第1項所述之三維影像處理方法,其中該第一遮罩區域之該比對區域係包括位於該第一眼畫面之該第一邊界處且未出現於該第二眼畫面中之畫素資料,以及該第四遮罩區域之該比對區域係包括位於該第二眼畫面之該第二邊界處且未出現於該第一眼畫面中之畫素資料。The method of claim 3, wherein the comparison region of the first mask region is located at the first boundary of the first eye frame and does not appear in the second eye frame. The pixel data in the middle, and the comparison region of the fourth mask region includes pixel data located at the second boundary of the second eye image and not present in the first eye image. 如申請專利範圍第1項所述之三維影像處理方法,其中依據該原始二維影像以產生該三維影像之該第一眼畫面與該第二眼畫面之步驟係包括:將該原始二維影像沿兩相反方向平移一平移量以分別產生該第一眼畫面與該第二眼畫面。The method of claim 3, wherein the step of generating the first eye image and the second eye image according to the original two-dimensional image comprises: Translating a translation amount in opposite directions to generate the first eye picture and the second eye picture, respectively. 如申請專利範圍第4項所述之三維影像處理方法,其中該第一與該第四遮罩區域各自之該比對區域之長度係等於該平移量的2倍。The method of claim 3, wherein the length of the aligned area of each of the first and fourth mask regions is equal to twice the amount of the translation. 如申請專利範圍第1項所述之三維影像處理方法,其中該第一至該第四遮罩區域當中每一者之該第一延伸邊框區域之長度係相等。The three-dimensional image processing method of claim 1, wherein the length of the first extended frame region of each of the first to fourth mask regions is equal. 如申請專利範圍第1項所述之三維影像處理方法,其中該第二與該第三遮罩區域當中每一者之長度更包括一第二延伸邊框區域之長度。The method of claim 3, wherein the length of each of the second and third mask regions further comprises a length of a second extended frame region. 如申請專利範圍第7項所述之三維影像處理方法,其中該第二與該第三遮罩區域當中每一者之該第二延伸邊框區域之長度係相等。The three-dimensional image processing method of claim 7, wherein the length of the second extended frame region of each of the second and third mask regions is equal. 一種三維影像處理方法,包括:依據一原始二維影像之一畫面以產生一三維影像之一第一眼畫面與一第二眼畫面;於該第一眼畫面之一第一邊界處與一第二邊界處分別產生一第一遮罩區域與一第二遮罩區域;以及於該第二眼畫面之一第一邊界處與一第二邊界處分別產生一第三遮罩區域與一第四遮罩區域;其中該第一至該第四遮罩區域之長度分別為第一至第四長度,該第一至第四長度均不為零,且該第一長度不等於該第三長度,該第二長度不等於該第四長度。A method for processing a three-dimensional image, comprising: generating a first eye image and a second eye image according to one of the original two-dimensional images; at a first boundary of the first eye image a first mask area and a second mask area are respectively generated at the two boundaries; and a third mask area and a fourth are respectively generated at a first boundary and a second boundary of the second eye picture a mask area; wherein the lengths of the first to fourth mask areas are respectively first to fourth lengths, the first to fourth lengths are not zero, and the first length is not equal to the third length, The second length is not equal to the fourth length. 如申請專利範圍第9項所述之三維影像處理方法,其中該第一長度係大於該第三長度,該第四長度係大於該第二長度。The method of claim 3, wherein the first length is greater than the third length, and the fourth length is greater than the second length. 如申請專利範圍第9項所述之三維影像處理方法,其中該第一長度與該第四長度係實質上相等,以及該第二長度與該第三長度係實質上相等。The three-dimensional image processing method of claim 9, wherein the first length and the fourth length are substantially equal, and the second length is substantially equal to the third length. 如申請專利範圍第9項所述之三維影像處理方法,其中該第一長度與該第四長度均等於Lcom+Lvf,該第二與第三長度均等於Lvf,其中Lcom係代表一比對區域長度,Lvf代表一虛擬邊框長度。The method of claim 3, wherein the first length and the fourth length are both equal to Lcom+Lvf, and the second and third lengths are equal to Lvf, wherein Lcom represents an aligned region. Length, Lvf represents a virtual border length. 如申請專利範圍第9項所述之三維影像處理方法,其中該第一長度與該第四長度均等於Lcom+Lvf,該第二與第三長度均等於Lvf+Lfs,其中Lcom係代表一比對區域長度,Lvf代表一虛擬邊框長度,Lfs代表一邊框平移長度。The method of claim 3, wherein the first length and the fourth length are both equal to Lcom+Lvf, and the second and third lengths are equal to Lvf+Lfs, wherein Lcom represents a ratio For the length of the region, Lvf represents a virtual border length, and Lfs represents a border translation length. 如申請專利範圍第9項所述之三維影像處理方法,其中該第一長度與該第四長度均等於Lcom+Lvf+Lfs,該第二與第三長度均等於Lvf,其中Lcom係代表一比對區域長度,Lvf代表一虛擬邊框長度,Lfs代表一邊框平移長度。The method of claim 3, wherein the first length and the fourth length are both equal to Lcom+Lvf+Lfs, and the second and third lengths are equal to Lvf, wherein Lcom represents a ratio For the length of the region, Lvf represents a virtual border length, and Lfs represents a border translation length. 如申請專利範圍第13項所述之三維影像處理方法,其中該比對區域長度係該第一眼畫面與該第二眼畫面經比對而僅出現於其中之一者之畫素資料所佔據之一比對區域之長度。The method of claim 3, wherein the length of the comparison region is such that the first eye image and the second eye image are compared and only one of the pixel data is present. One of the lengths of the comparison area. 如申請專利範圍第15項所述之三維影像處理方法,其中該比對區域長度係該第一眼畫面或該第二眼畫面相對該原始二維影像之該畫面之一平移長度之2倍。The method of claim 3, wherein the length of the comparison region is twice the translation length of the first eye image or the second eye image relative to the original two-dimensional image. 如申請專利範圍第14項所述之三維影像處理方法,其中該比對區域長度係該第一眼畫面與該第二眼畫面經比對而僅出現於其中之一者之畫素資料所佔據之一比對區域之長度。The method of processing a three-dimensional image according to claim 14, wherein the length of the comparison region is such that the first eye image and the second eye image are compared and only one of the pixel data is present. One of the lengths of the comparison area. 如申請專利範圍第17項所述之三維影像處理方法,其中該比對區域長度係實質上等於該第一眼畫面或該第二眼畫面相對該原始二維影像之該畫面之一平移長度之2倍。The method of processing a three-dimensional image according to claim 17, wherein the length of the comparison region is substantially equal to a translation length of the first eye image or the second eye image relative to the original two-dimensional image. 2 times.
TW100145656A 2011-12-09 2011-12-09 Three-dimension image processing method TW201325202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100145656A TW201325202A (en) 2011-12-09 2011-12-09 Three-dimension image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100145656A TW201325202A (en) 2011-12-09 2011-12-09 Three-dimension image processing method

Publications (1)

Publication Number Publication Date
TW201325202A true TW201325202A (en) 2013-06-16

Family

ID=49033236

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100145656A TW201325202A (en) 2011-12-09 2011-12-09 Three-dimension image processing method

Country Status (1)

Country Link
TW (1) TW201325202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9241148B2 (en) 2013-09-02 2016-01-19 Novatek Microelectronics Corp. Disparity calculating method and stereo matching device thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9241148B2 (en) 2013-09-02 2016-01-19 Novatek Microelectronics Corp. Disparity calculating method and stereo matching device thereof

Similar Documents

Publication Publication Date Title
JP6308513B2 (en) Stereoscopic image display apparatus, image processing apparatus, and stereoscopic image processing method
JP6886253B2 (en) Rendering methods and equipment for multiple users
TWI523488B (en) A method of processing parallax information comprised in a signal
TWI508519B (en) An image processing apparatus, a program, an image processing method, a recording method, and a recording medium
CN106604018B (en) 3D display device and control method thereof
JP4489610B2 (en) Stereoscopic display device and method
AU2018249563B2 (en) System, method and software for producing virtual three dimensional images that appear to project forward of or above an electronic display
WO2012094076A9 (en) Morphological anti-aliasing (mlaa) of a re-projection of a two-dimensional image
CN108076208B (en) Display processing method and device and terminal
JP2011164202A (en) Image display device, image display system, and image display method
US8619094B2 (en) Morphological anti-aliasing (MLAA) of a re-projection of a two-dimensional image
TWI602145B (en) Unpacking method, device and system of packed frame
US20170171534A1 (en) Method and apparatus to display stereoscopic image in 3d display system
TWI540880B (en) Method for displaying stereoscopic image and stereoscopic image device
TW201325202A (en) Three-dimension image processing method
JP6166374B2 (en) 3D image generation apparatus, 3D image generation method, program, and information storage medium
TWI530155B (en) Method, device for packing multi-view frame and non-transitory storage medium for storing packed frame
Jeong et al. Depth image‐based rendering for multiview generation
JP2007017558A (en) Apparatus and method for displaying stereoscopic image
TWI547141B (en) Unpacking method, device of packed frame and non-transitory storage medium for storing unpacking instructions
TWI489860B (en) Three-dimension image processing method and a three-dimension image display apparatus applying the same
JP2023162320A (en) Stereoscopic image display tailored to viewer
US20130141425A1 (en) Three-dimension image processing method
WO2018233387A1 (en) Naked-eye 3d display method and device
JP2011082649A (en) Image generation device, image generation method, and program