TW201519635A - Method and apparatus for correcting the multi-view images - Google Patents

Method and apparatus for correcting the multi-view images Download PDF

Info

Publication number
TW201519635A
TW201519635A TW102141311A TW102141311A TW201519635A TW 201519635 A TW201519635 A TW 201519635A TW 102141311 A TW102141311 A TW 102141311A TW 102141311 A TW102141311 A TW 102141311A TW 201519635 A TW201519635 A TW 201519635A
Authority
TW
Taiwan
Prior art keywords
image
information
brightness
corrected
images
Prior art date
Application number
TW102141311A
Other languages
Chinese (zh)
Other versions
TWI504235B (en
Inventor
Yu-Cheng Fan
Jan-Hung Shen
Chun-Hung Wang
Original Assignee
Univ Nat Taipei Technology
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 Univ Nat Taipei Technology filed Critical Univ Nat Taipei Technology
Priority to TW102141311A priority Critical patent/TWI504235B/en
Publication of TW201519635A publication Critical patent/TW201519635A/en
Application granted granted Critical
Publication of TWI504235B publication Critical patent/TWI504235B/en

Links

Landscapes

  • Image Processing (AREA)

Abstract

Method for correctig the multi-view images is applied to correct brightness and color of each of a plurality of view images before generating a three-dimensional image using these view images. First, choose one from the view images as a reference image according the brightness of the view images, and the other of the view images is though as a plurality of correction images. Compute global disparity information of the correction images according to the reference image, and cut the correction images according to the individual global disparity information. Adjust brightness of the correction images base on an average of brightness of the reference image. Generate a color correcting information according to each two adjacent correction images corrected brightness, and adjust color of each correction image according to the color correcting information.

Description

多視角影像的修正裝置及其方法 Multi-view image correction device and method thereof

本發明是有關三維立體影像的前處理裝置及其方法,特別是一種多視角影像的修正裝置及其方法。 The invention relates to a pre-processing device for a three-dimensional stereoscopic image and a method thereof, in particular to a multi-view image correction device and a method thereof.

應用於三維顯示設備(例如立體電視)之3D裸眼立體顯示技術,一般而言是利用多視角影像(multi view image)合成具有立體效果的三維影像(3D影像),多視角影像是指使用多部設於不同位置的攝影機同步擷取動態場景所獲得的複數個具有不同視角的視角影像(在本發明說明書中所稱的多視角影像和複數個視角影像如未特別說明時其意相同),多視角影像包含了多張由不同角度擷取的視角影像,由於環境亮度變化、攝影機擺設角度及攝影機拍攝前的校正會令擷取的不同視角的視角影像之間有所差異,進而影響後續利用多視角影像合成之3D影像的立體成像效果。 The 3D naked-eye stereoscopic display technology applied to a three-dimensional display device (for example, a stereoscopic television) generally synthesizes a three-dimensional image (3D image) having a stereoscopic effect by using a multi-view image, and the multi-view image refers to using multiple parts. The camera set in different positions synchronously captures a plurality of viewing angle images having different viewing angles obtained by the dynamic scene (the multi-view image and the plurality of viewing angle images referred to in the specification of the present invention have the same meaning unless otherwise specified), and more The view image contains a plurality of view images captured from different angles. Due to the change of ambient brightness, the angle of the camera, and the correction before the camera is taken, the angles of view of different angles of view are different, which affects the subsequent use. Stereoscopic imaging effect of 3D images synthesized by viewing angle images.

已知的一種3D影像合成技術中,會在利用攝影機擷取合成3D影像所需之場景影像時同時取得影像的深度資訊,而由攝影機取得的色彩資訊配合深度資訊即可產生立體影像,取得深度資訊有許多不同的方式,包括:(1)透過深度攝影機取得;(2)使 用兩台攝影機拍攝兩張不同視角的視角影像,利用兩張不同視角的視角影像的關聯性來建立其中一張視角影像的深度資訊;(3)使用多台攝影機拍攝多視角影像,計算複數個視角影像之間的視差向量,利用視差向量數值來轉換到深度影像資訊,但如果使用多台攝影機拍攝只使用一組影像和深度資訊來合成會因為遮蔽效應(Occlusion)的影響,使合成影像產生破洞;(4)使用單一攝影機擷取影像,利用影像特徵轉換成深度資訊。由於深度影像資訊無法像彩色影像資訊擁有高解析度資訊,解析度不足會影響立體呈現好壞效果,另外深度影像攝影機成本昂貴並且不易取得,因此沒有廣泛使用。 In a known 3D image synthesis technology, the depth information of the image is obtained while capturing the scene image required for synthesizing the 3D image by using the camera, and the color information obtained by the camera can be combined with the depth information to generate a stereo image, and the depth is obtained. There are many different ways of information, including: (1) through deep camera; (2) making Use two cameras to capture two different perspective images, and use two different perspectives to create depth information of one of the perspective images. (3) Use multiple cameras to capture multi-view images and calculate multiple images. The disparity vector between the view images is converted to the depth image information using the parallax vector value, but if multiple cameras are used to capture only one set of image and depth information for synthesis, the synthetic image will be generated due to the effect of Occlusion. Holes; (4) use a single camera to capture images and use image features to convert into depth information. Since depth image information cannot have high-resolution information like color image information, insufficient resolution will affect the stereoscopic rendering effect. In addition, depth image camera is expensive and difficult to obtain, so it is not widely used.

一般而言,影響多視角影像合成之3D影像的立體成像效果的原因包括:由不同角度擷取不同視角之視角影像所產生的遮蔽問題,以及不同視角之視角影像間的亮度差異。遮蔽問題是指同一景物在以某一視角擷取的視角影像中被前方物體遮擋,而在其他視角擷取的視角影像中不會被前方物體遮擋,因此在對多視角影像中的每一張視角影像進行色彩修正時,會造成資訊填補錯誤進而產生色彩不均勻的結果。產生亮度差異問題的原因在於使用多部攝影機同步擷取動態場景時,會因為場景和光線亮度的影響,使得多視角影像中每一張視角影像的亮度不一致,導致使用者觀看會有明顯的亮度差異。 In general, the three-dimensional imaging effects of 3D images that affect multi-view image synthesis include: the masking problem caused by capturing different angles of view images from different angles, and the difference in brightness between the angles of view images of different viewing angles. The problem of obscuration means that the same scene is blocked by the front object in the view image captured from a certain angle of view, and is not blocked by the front object in the view image captured by other angles, so each of the multi-view images is When the angle of view image is color-corrected, it will cause the information to be filled with errors and result in uneven color. The reason for the difference in brightness is that when using multiple cameras to simultaneously capture dynamic scenes, the brightness of each view image in the multi-view image is inconsistent due to the influence of the scene and the brightness of the light, resulting in obvious brightness for the user to watch. difference.

多視角影像除了需要進行亮度修正,在色彩方面也需要調整,已知的一種色彩調整方法是直方圖比對(Histogram Matching),此一方法是將所知道的影像資訊透過統計圖來調整色彩資訊,但此方法必須要精確計算否則只要其中有些微誤差在色彩上會有很大失真效果。接著是影像上的點與點修正,在多視角影像中是無法實現,主要的原因在於多視角影像上會有位移資訊,如果沒得到位移資訊,色彩修正時影像一樣會有色彩失真的問題。 In addition to the brightness correction, the multi-view image needs to be adjusted in terms of color. A known color adjustment method is histogram comparison (Histogram). Matching), this method is to adjust the color information through the statistical information of the known image information, but this method must be accurately calculated, otherwise as long as some of the micro errors have great distortion effect on the color. Then, the point and point correction on the image is not realized in the multi-view image. The main reason is that there will be displacement information on the multi-view image. If the displacement information is not obtained, the image will have the same color distortion when the color is corrected.

本發明提出了一種應用於三維顯示設備之多視角影像的修正裝置及其方法,用於解決使用多視角影像合成3D影像過程中所面對的遮蔽問題、亮度差異問題以及色彩失真的問題。 The invention provides a correction device and a method for multi-view images applied to a three-dimensional display device, which are used for solving the problems of shielding problems, brightness difference problems and color distortions in the process of synthesizing 3D images using multi-view images.

本發明方法的一實施例包括:從複數個不同視角影像中選取一者作為一參考影像,並將其餘視角影像作為複數個修正影像;根據參考影像計算各修正影像的整體視差資訊,以及依據各修正影像的整體視差資訊對各修正影像進行影像剪裁;以參考影像之亮度平均值為基準修正各修正影像的亮度資訊,以使經過亮度資訊修正後的各修正影像的亮度平均值最接近參考影像的亮度平均值;以及由整體視差資訊最靠近參考影像的修正影像開始根據亮度資訊修正後的各修正影像以及前一影像產生一色彩修正資訊,並根據色彩修正資訊選擇性修正對應之亮度資訊修正後的修正影像的色彩資訊。 An embodiment of the method includes: selecting one of a plurality of different view images as a reference image, and using the remaining view images as a plurality of corrected images; calculating overall disparity information of each corrected image according to the reference image, and Correcting the overall parallax information of the image to perform image cropping on each corrected image; correcting the brightness information of each corrected image based on the average brightness of the reference image so that the brightness average of each corrected image corrected by the brightness information is closest to the reference image The average brightness value; and the correction image closest to the reference image from the overall parallax information starts to generate a color correction information according to the corrected image and the previous image corrected by the brightness information, and selectively corrects the corresponding brightness information correction according to the color correction information. After correcting the color information of the image.

在本發明的一實施例中,係從複數個不同視角影像中選取亮度平均值最接近一閥值者作為參考影像。 In an embodiment of the invention, a brightness average value closest to a threshold is selected from a plurality of different perspective images as a reference image.

依據本發明方法的一實施例,其中的整體視差估計機制係利用絕對差值總和(sum of the absolute difference,SAD)公式根據參考影像計算各修正影像的整體視差資訊,依據各修正影像的整體視差資訊對各視角影像進行影像剪裁,在參考影像和各修正影像間找到最大相似的區域,將不必要的影像資訊刪除,提高影像品質和減少區塊匹配的錯誤率。 According to an embodiment of the method of the present invention, the overall disparity estimation mechanism calculates the overall disparity information of each corrected image according to the reference image by using a sum of the absolute difference (SAD) formula, according to the overall parallax of each corrected image. The information is image-cutted for each view image, and the most similar area is found between the reference image and each corrected image, and unnecessary image information is deleted, the image quality is improved, and the error rate of block matching is reduced.

依據本發明方法的一實施例,其中對各視角影像進行影像剪裁包括將複數個不同視角影像中最左邊與最右邊的影像資訊刪除。 According to an embodiment of the method of the present invention, performing image cropping on each view image includes deleting leftmost and rightmost image information of the plurality of different view images.

依據本發明方法的一實施例,其中的色彩修正步驟中先將與參考影像相鄰的修正影像修正完後,再利用修正完成的修正影像對相鄰的其他的修正影像再進行色彩修正,可以將位移量資訊減少,提高影像色彩資訊的修正質量,能得到更好的效果。 According to an embodiment of the method of the present invention, in the color correction step, the corrected image adjacent to the reference image is corrected, and then the corrected corrected image is used to perform color correction on the adjacent other corrected image. The displacement information is reduced, and the correction quality of the image color information is improved, and a better effect can be obtained.

本發明的另一方面,包含一種應用於三維顯示設備之多視角影像的修正裝置,用於解決使用多視角影像合成3D影像過程中所面對的遮蔽問題、亮度差異問題以及色彩失真的問題。 Another aspect of the present invention includes a correction device for a multi-view image of a three-dimensional display device for solving the problem of obscuration, brightness difference, and color distortion faced in synthesizing 3D images using multi-view images.

本發明提出用於實施上述方法之裝置的一實施例,包括:一參考資訊處理單元、一整體視差估計單元、一儲存單元和一色彩修正單元。參考資訊處理單元透過亮度平均值計算,由複數個不同視角影像中選取一者作為一參考影像,將其餘視角影像作為複數個修正影像,以參考影像作為亮度和色彩的修正基準,將參考影像的亮度與色彩資訊傳送給後面階段,接著根據參 考影像計算各修正影像的整體視差資訊,再依據各修正影像的整體視差資訊對各視角影像進行影像剪裁,接著利用亮度修正單元以參考影像之亮度平均值為基準修正各修正影像的亮度資訊,以使經過亮度資訊修正後的各修正影像的亮度平均值最接近參考影像的亮度平均值。然後,利用色彩修正單元由整體視差資訊最靠近參考影像的修正影像開始根據亮度資訊修正後的各修正影像以及前一影像產生一色彩修正資訊,並根據色彩修正資訊選擇性修正對應之亮度資訊修正後的修正影像的色彩資訊。 The present invention provides an embodiment of an apparatus for implementing the above method, comprising: a reference information processing unit, an overall disparity estimating unit, a storage unit, and a color correction unit. The reference information processing unit calculates the brightness average value, selects one of the plurality of different view images as a reference image, and uses the remaining view image as a plurality of corrected images, and uses the reference image as a correction reference for brightness and color, and the reference image is The brightness and color information is transmitted to the later stage, and then according to the parameters The test image calculates the overall parallax information of each corrected image, and then performs image cropping on each view image according to the overall parallax information of each corrected image, and then uses the brightness correcting unit to correct the brightness information of each corrected image based on the average brightness of the reference image. The brightness average value of each corrected image corrected by the brightness information is closest to the brightness average value of the reference image. Then, the color correction unit generates a color correction information based on the corrected image of the entire parallax information closest to the reference image, and generates a color correction information according to the corrected corrected image and the previous image, and selectively corrects the corresponding brightness information correction according to the color correction information. After correcting the color information of the image.

有關本發明的其他功效及實施例的詳細內容,將配合圖式說明如下。 The details of other functions and embodiments of the present invention will be described below in conjunction with the drawings.

10‧‧‧參考資訊處理單元 10‧‧‧Reference Information Processing Unit

11‧‧‧8位元右移器 11‧‧8-bit right shifter

12‧‧‧累加器 12‧‧‧ accumulator

13‧‧‧減法器 13‧‧‧Subtractor

14‧‧‧絕對值編碼器 14‧‧‧Absolute encoder

15‧‧‧比較器 15‧‧‧ Comparator

20‧‧‧整體視差估計單元 20‧‧‧Integral Parallax Estimation Unit

21a‧‧‧第一減法器 21a‧‧‧First subtractor

21b‧‧‧第二減法器 21b‧‧‧second subtractor

22a‧‧‧第一絕對值編碼器 22a‧‧‧First absolute encoder

22b‧‧‧第二絕對值編碼器 22b‧‧‧Second absolute encoder

23a‧‧‧第一累加器 23a‧‧‧First accumulator

23b‧‧‧第二累加器 23b‧‧‧Second accumulator

24‧‧‧加法器 24‧‧‧Adder

25‧‧‧比較器 25‧‧‧ Comparator

30‧‧‧亮度修正單元 30‧‧‧Brightness correction unit

31‧‧‧比較器 31‧‧‧ Comparator

32‧‧‧增量器 32‧‧‧Incrementer

33a‧‧‧暫存器 33a‧‧‧ register

33b‧‧‧位移暫存器 33b‧‧‧Displacement register

34‧‧‧減法器 34‧‧‧Subtractor

35‧‧‧絕對值編碼器 35‧‧‧Absolute encoder

36a‧‧‧加法器 36a‧‧‧Adder

36b‧‧‧加法器 36b‧‧‧Adder

37‧‧‧比較器 37‧‧‧ comparator

38‧‧‧減法器 38‧‧‧Subtractor

39‧‧‧乘法器 39‧‧‧Multiplier

40‧‧‧儲存單元 40‧‧‧ storage unit

41‧‧‧記憶體控制器 41‧‧‧ memory controller

50‧‧‧色彩修正單元 50‧‧‧Color Correction Unit

c‧‧‧可變係數 C‧‧‧variable coefficient

d‧‧‧位移量 D‧‧‧displacement

d1‧‧‧位移量 D1‧‧‧ displacement

d2‧‧‧位移量 D2‧‧‧ displacement

View1~Viewn‧‧‧視角影像 View1~Viewn‧‧‧ view image

VR/VT‧‧‧V色彩空間資訊 VR/VT‧‧‧V color space information

UR/UT‧‧‧U色彩空間資訊 UR/UT‧‧‧U color space information

Y‧‧‧修正影像的亮度資訊 Y‧‧‧Fixed image brightness information

L1‧‧‧預設的亮度值 L1‧‧‧Preset brightness value

S1‧‧‧排序電路 S1‧‧‧Sort circuit

SRAM1‧‧‧第一記憶體 SRAM1‧‧‧ first memory

SRAM2‧‧‧第二記憶體 SRAM2‧‧‧ second memory

SRAM3‧‧‧第三記憶體 SRAM3‧‧‧ third memory

SRAM4‧‧‧第四記憶體 SRAM4‧‧‧ fourth memory

SAD‧‧‧絕對差值總和 SAD‧‧‧ the sum of absolute differences

CDF‧‧‧累積分佈函數 CDF‧‧‧ cumulative distribution function

S1‧‧‧從多視角影像中選取一者作為參考影像,並將其餘視角影像作為複數個修正影像 S1‧‧‧Select one of the multi-view images as the reference image and use the remaining view images as the plurality of corrected images

S2‧‧‧根據參考影像計算各修正影像的整體視差資訊,以及依據各修正影像的整體視差資訊對各視角影像進行影像剪裁 S2‧‧‧ Calculate the overall parallax information of each corrected image based on the reference image, and perform image cropping on each view image based on the overall parallax information of each corrected image

S3‧‧‧以參考影像之亮度平均值為基準修正各修正影像的亮度資訊,以使經過亮度資訊修正後的各修正影像的亮度平均值最接近參考影像的亮度平均值 S3‧‧‧ corrects the brightness information of each corrected image based on the average brightness of the reference image so that the brightness average of each corrected image corrected by the brightness information is closest to the brightness average of the reference image

S4‧‧‧由整體視差資訊最靠近參考影像的修正影像開始根據亮度資訊修正後的各修正影像以及前一影像產生一色彩修正資訊,並根據色彩修正資訊選擇性修正對應之亮度資訊修正後的修正影像的色彩資訊 S4‧‧‧ The color correction information is generated from the corrected image with the overall parallax information closest to the reference image, and the corrected image and the previous image are corrected according to the brightness information, and the corresponding brightness information is selectively corrected according to the color correction information. Correct the color information of the image

第1圖為本發明一實施例之多視角影像的修正方法的步驟流程圖。 FIG. 1 is a flow chart showing the steps of a method for correcting a multi-view image according to an embodiment of the present invention.

第2圖為本發明一實施例之多視角影像的修正裝置的功能方塊圖。 FIG. 2 is a functional block diagram of a multi-view image correction device according to an embodiment of the present invention.

第3A-3B圖為整體視差估計機制的一計算範例圖,顯示整體視差估計機制計算各修正影像的整體視差資訊的絕對差值總和的結果。 3A-3B is a computational example diagram of the overall disparity estimation mechanism, showing the result of the overall disparity estimation mechanism calculating the sum of the absolute differences of the overall disparity information of each corrected image.

第4圖為本發明方法中剪裁影像的一範例圖,顯示刪除多視角影像中最左和最右側影像資訊的位置。 Figure 4 is a diagram showing an example of cropping an image in the method of the present invention, showing the position of the leftmost and rightmost image information in the multi-view image.

第5A-5C圖為本發明一實施例之可調式直方圖等化演算法進行亮度資訊修正的示意圖(一)。 5A-5C are schematic diagrams (1) of the luminance information correction performed by the adjustable histogram equalization algorithm according to an embodiment of the present invention.

第6A-6C圖為本發明一實施例之可調式直方圖等化演算法進行亮度資訊修正的示意圖(二)。 6A-6C are schematic diagrams of the brightness information correction performed by the adjustable histogram equalization algorithm according to an embodiment of the present invention (2).

第7A-7C圖為本發明一實施例之可調式直方圖等化演算法進行亮度資訊修正的示意圖(三)。 7A-7C are schematic diagrams of the brightness information correction performed by the adjustable histogram equalization algorithm according to an embodiment of the present invention (3).

第8圖為本發明一實施例之參考資訊處理單元之電路架構圖。 FIG. 8 is a circuit diagram of a reference information processing unit according to an embodiment of the present invention.

第9圖為本發明一實施例之整體視差估計單元之電路架構圖。 FIG. 9 is a circuit diagram of an overall parallax estimation unit according to an embodiment of the present invention.

第10圖為本發明一實施例之亮度修正單元中之的機率分佈函數和可調式累積分佈函數的示意圖。 FIG. 10 is a schematic diagram showing a probability distribution function and an adjustable cumulative distribution function in a brightness correction unit according to an embodiment of the present invention.

第11圖為本發明一實施例之亮度修正單元中之轉換函數之電路架構圖。 Figure 11 is a circuit diagram of a conversion function in a luminance correction unit according to an embodiment of the present invention.

第12圖為本發明一實施例之亮度修正單元中之具有減少亮度功能的轉換函數之電路架構圖。 Figure 12 is a circuit diagram of a conversion function having a function of reducing brightness in a brightness correction unit according to an embodiment of the present invention.

第13圖為本發明一實施例之儲存單元之電路架構圖。 Figure 13 is a circuit diagram of a storage unit according to an embodiment of the present invention.

第14圖為本發明一實施例之儲存單元儲存色彩修正後U色彩空間的色彩修正資訊之示意圖。 FIG. 14 is a diagram showing color correction information of a U color space after storing a color correction in a storage unit according to an embodiment of the present invention; Schematic diagram.

第15圖為本發明一實施例之儲存單元儲存色彩修正後V色彩空間的色彩修正資訊之示意圖。 FIG. 15 is a diagram showing color correction information of a V color space after a color correction is stored in a storage unit according to an embodiment of the present invention; Schematic diagram.

第16圖為本發明一實施例之儲存單元中U色彩空間資料統計電路架構圖。 FIG. 16 is a structural diagram of a U color space data statistical circuit in a storage unit according to an embodiment of the present invention.

第17圖為本發明一實施例之儲存單元中色彩修正後U色彩空間資料統計電路架構圖。 FIG. 17 is a structural diagram of a U color space data statistical circuit after color correction in a storage unit according to an embodiment of the invention.

請參閱「第1圖」,本發明方法的一實施例,包括下列步驟:S1. 從多視角影像(假設包含複數個不同視角的視角影 像View1~Viewn)中選取一者作為參考影像(ViewR),並將其餘視角影像作為複數個修正影像;S2. 利用一整體視差估計(Global Disparity Estimation)機制根據參考影像計算各修正影像的整體視差資訊,以及依據各修正影像的整體視差資訊對各修正影像進行影像剪裁;S3. 以參考影像之亮度平均值為基準修正各修正影像的亮度資訊,以使經過亮度資訊修正後的各修正影像的亮度平均值最接近參考影像的亮度平均值;以及S4. 由整體視差資訊最靠近參考影像的修正影像開始根據亮度資訊修正後的各修正影像以及前一影像產生一色彩修正資訊,並根據色彩修正資訊選擇性修正對應之亮度資訊修正後的修正影像的色彩資訊。 Please refer to "FIG. 1". An embodiment of the method of the present invention includes the following steps: S1. From a multi-view image (assuming a plurality of different perspectives) Select one of View1~Viewn as the reference image (ViewR) and use the remaining view image as the plurality of corrected images; S2. Calculate the overall parallax of each corrected image based on the reference image using a Global Disparity Estimation mechanism Information, and image clipping of each corrected image according to the overall parallax information of each corrected image; S3. Correcting the brightness information of each corrected image based on the average brightness of the reference image, so that the corrected images after the brightness information are corrected The average value of the brightness is closest to the average value of the brightness of the reference image; and S4. The color correction information is generated according to the correction image corrected by the brightness information and the previous image, and the color correction information is corrected according to the color correction information. The information selectively corrects the color information of the corrected image after the brightness information is corrected.

請參閱「第2圖」,本發明提出用於實施上述方法之裝置的一實施例,包括:參考資訊處理單元10、整體視差估計單元20、亮度修正單元30、儲存單元40及色彩修正單元50。參考資訊處理單元10用以接收複數個視角影像View1~Viewn,再從各視角影像中選擇一者作為參考影像ViewR,以及將其餘視角影像作為複數個修正影像。整體視差估計單元20電性連接參考資訊處理單元10。整體視差估計單元20用以根據參考影像ViewR計算各修正影像的整體視差資訊,以及依據各修正影像的整體視差資訊對各修正影像進行影像剪裁。亮度修正單元30電性連接參考資訊處理單元10。亮度修正單元30以參考影像ViewR的亮度平均值為基準修正剪裁後的各修正影像的亮度資訊,以使亮度資訊修正後的各修正影像的亮度平均值最接近參考影像ViewR之亮度平均值。色彩修正單 元50電性連接參考資訊處理單元10及亮度修正單元30。色彩修正單元50用以由整體視差資訊最靠近參考影像ViewR的修正影像開始根據亮度資訊修正後的各修正影像以及前一影像透過一色彩修正機制產生一色彩修正資訊,並根據色彩修正資訊選擇性修正對應之亮度資訊修正後的修正影像的色彩資訊。 Referring to FIG. 2, an embodiment of the apparatus for implementing the above method includes: a reference information processing unit 10, an overall disparity estimation unit 20, a brightness correction unit 30, a storage unit 40, and a color correction unit 50. . The reference information processing unit 10 is configured to receive a plurality of view images View1~Viewn, select one of the view images as the reference image ViewR, and use the remaining view images as the plurality of corrected images. The overall disparity estimating unit 20 is electrically connected to the reference information processing unit 10. The overall parallax estimating unit 20 is configured to calculate the overall parallax information of each corrected image according to the reference image ViewR, and perform image cropping on each corrected image according to the overall parallax information of each corrected image. The brightness correction unit 30 is electrically connected to the reference information processing unit 10. The brightness correcting unit 30 corrects the brightness information of each of the corrected corrected images based on the average value of the brightness of the reference image ViewR so that the brightness average value of each corrected image after the brightness information correction is closest to the brightness average value of the reference image ViewR. Color correction list The element 50 is electrically connected to the reference information processing unit 10 and the brightness correction unit 30. The color correction unit 50 is configured to generate a color correction information by using a color correction mechanism based on the correction information of the entire parallax information closest to the reference image ViewR, and the color correction information according to the color correction information. Correct the color information of the corrected image after the corresponding brightness information is corrected.

在本發明裝置的一實施例中,還可利用一儲存單元40用於儲存過程中所產生的資料。儲存單元40包括記憶體控制器41和數個記憶體SRAM1~SRAM4。記憶體控制器41用來控制四個記憶體SRAM1~SRAM4進行資料的讀取和寫入操作。儲存單元40的實施方式可採獨立的電路架構,也可以整併在前述裝置的各個單元之中。 In an embodiment of the apparatus of the present invention, a storage unit 40 can also be utilized for storing data generated during the process. The storage unit 40 includes a memory controller 41 and a plurality of memories SRAM1 to SRAM4. The memory controller 41 is used to control the reading and writing operations of the four memory SRAM1~SRAM4. The implementation of the storage unit 40 may take the form of a separate circuit architecture or may be integrated into the various units of the aforementioned apparatus.

本發明方法是為了讓多視角影像在合成三維立體影像前,可對各視角影像進行亮度和色彩調整,以獲得較好的合成效果。為了使所有攝影機拍出的多視角影像修正趨於相似,從多視角影像中選取一者作為參考影像ViewR,將其餘的視角影像作為被修正的修正影像,在後續處理過程中以參考影像ViewR當基準修正這些修正影像。並且,此修正方式亦會比單獨修正各視角影像更有效果。 The method of the invention is to enable the multi-view image to adjust the brightness and color of each view image before synthesizing the three-dimensional image to obtain a better synthetic effect. In order to make the multi-view image corrections taken by all the cameras tend to be similar, one of the multi-view images is selected as the reference image ViewR, and the remaining view images are used as the corrected corrected images, and the reference image ViewR is used in the subsequent processing. The baseline corrects these corrected images. Moreover, this correction method is also more effective than separately correcting each view image.

[選擇參考影像的實施方式] [Selecting an implementation of a reference image]

從多視角影像中選取一者作為參考影像ViewR的一種實施方式,是將所有視角影像進行亮度平均值計算,並將亮度平均值接近一門檻值T的視角影像作為參考影像,再以參考影像ViewR的參 考影像資訊(ViewR information)作為修正其餘修正影像的亮度和色彩的修正基準,所稱的參考影像資訊至少包含參考影像的亮度資訊和色彩資訊。一般而言,影像亮度係由介於0~255之間的數值表示,其中的一種實施方式係以128作為門檻值,可以避免完成亮度修正後的其他視角影像有太暗或是太亮的問題;但須注意的是門檻值T的實施方式並非以128為限制,可視情況決定一合適的門檻值。 One embodiment of selecting one of the multi-view images as the reference image ViewR is to calculate the brightness average of all the view images, and use the view image with the brightness average close to a threshold T as the reference image, and then use the reference image ViewR. Reference ViewR information is used as a correction reference for correcting the brightness and color of the remaining corrected images. The reference image information includes at least the brightness information and color information of the reference image. In general, the image brightness is represented by a value between 0 and 255. One of the embodiments uses 128 as the threshold value, which avoids the problem that other view images after brightness correction are too dark or too bright; It should be noted that the implementation of the threshold value T is not limited to 128, and a suitable threshold value may be determined depending on the situation.

在選擇參考影像的條件設定方面,本發明的一種實施方式是以各視角影像之亮度平均值接近門檻值128者作為參考影像。惟此並非唯一的一種實施方式,亦可考慮以所有視角影像的亮度平均值、中值、共同區域的亮度值、影像的清晰度和影像對比度其中之任一者做為選擇參考影像的條件。另外,也可以設定多個參考影像進行多視角影像亮度與色彩修正,舉凡熟悉此一技術領域具有通常知識者在瞭解本發明的技術內容之後,應可充份瞭解並加以變化後付諸實現。 In terms of setting the condition setting of the reference image, one embodiment of the present invention uses the luminance average value of each view image to approach the threshold value of 128 as the reference image. However, this is not the only embodiment. Any one of the brightness average value, the median value, the common area brightness value, the image sharpness, and the image contrast of all the view images may be considered as the condition for selecting the reference image. In addition, a plurality of reference images may be set to perform multi-view image brightness and color correction. Those who are familiar with the technical field in this technical field should fully understand and change the technical content of the present invention and implement it.

[根據參考影像計算各修正影像的整體視差資訊的實施方式] [Implementation of calculation of overall parallax information for each corrected image based on reference image]

根據參考影像計算各修正影像的整體視差資訊是為了多視角影像中各視角影像因拍攝角度不同造成影像位移及影像資訊差異所衍伸出的解決方法,本發明方法中的一種實施方式是利用一整體視差估計(global disparity estimation)機制根據參考影像計算各修正影像的整體視差資訊。整體視差估計機制係利用絕對差值 總和(sum of the absolute difference,SAD)公式根據參考影像計算各修正影像的整體視差資訊,進而在參考影像和各修正影像間找到最大相似的區域,將修正影像中不必要的影像資訊刪除,提高影像品質和減少區塊匹配的錯誤率。 Calculating the overall parallax information of each corrected image according to the reference image is a solution for the image displacement and the difference of the image information caused by different shooting angles in the multi-view image. One embodiment of the method of the present invention utilizes a The global disparity estimation mechanism calculates the overall disparity information of each corrected image based on the reference image. The overall disparity estimation mechanism uses absolute difference The sum of the absolute difference (SAD) formula calculates the overall disparity information of each corrected image according to the reference image, and then finds the most similar area between the reference image and each corrected image, and deletes unnecessary image information in the corrected image, thereby improving Image quality and error rate for reducing block matching.

依據本發明方法的一實施例,其中的整體視差估計機制係透過計算各修正影像的整體視差資訊的絕對差值總和(SAD),透過下列公式(1.1)和公式(1.2)取得各修正影像與參考影像的整體視差資訊。其中,整體視差資訊包括:位移量d和位置(包含水平位置x和垂直位置y)。在下列公式(1.1)和公式(1.2)中R代表參考影像,T代表修正影像(Corrected View)即指除了參考影像之外的其他視角影像(如未特別說明,在下文中提及的修正影像即指除了參考影像之外的其他視角影像)。 According to an embodiment of the method of the present invention, the overall disparity estimation mechanism obtains the corrected image sum by the following formula (1.1) and formula (1.2) by calculating the sum of absolute differences (SAD) of the overall disparity information of each corrected image. The overall parallax information of the reference image. The overall disparity information includes: the displacement amount d and the position (including the horizontal position x and the vertical position y). In the following formulas (1.1) and (1.2), R represents a reference image, and T represents a corrected image (Corrected View), which means a view image other than the reference image (if not specified, the corrected image mentioned below is Refers to other perspective images other than the reference image).

SAD global (R,T,d)=Σ(x,y)|R(x,y)-T(x+d,y)|(1.1) SAD global ( R , T , d )=Σ ( x , y ) | R ( x , y )- T ( x + d , y )|(1.1)

SAD global (R,T,d)=Σ(x,y)|R(x,y)-T(x,y+d)|(1.2) SAD global ( R , T , d )=Σ ( x , y ) | R ( x , y )- T ( x , y + d )|(1.2)

依據本發明方法的一實施例,其中再透過計算每個位移量d之SAD值,並利用上列公式(1.3)從每個位移量d之SAD值中尋找最小之SAD值的方式找出參考影像和各修正影像間的最大相似區域。並且,對各修正影像進行影像剪裁,保留相似區域的 影像資訊,刪除相似區域以外的影像資訊。因此,可以提高影像品質和減少區塊匹配的錯誤率。換言之,當位移量d之SAD值愈小,兩張影像的相似程度越接近。本發明方法考慮水平軸與垂直軸位移,在計算完SAD值也會得到水平軸位置(x)與垂直軸的位置(y)。就能依據整體視差資訊對修正影像進行影像剪裁,保留相似區域的影像資訊,刪除相似區域以外的影像資訊。換言之,即是把需要的影像資訊保留,不必要的影像資訊刪除掉,達到完整效果。 According to an embodiment of the method of the present invention, wherein the SAD value of each displacement amount d is calculated by re-transmission, and the minimum SAD value is found from the SAD value of each displacement amount d by using the above formula (1.3) to find a reference. The largest similar area between the image and each corrected image. And, the image is cropped for each corrected image, and the similar area is retained. Image information, delete image information outside the similar area. Therefore, image quality can be improved and the error rate of block matching can be reduced. In other words, the smaller the SAD value of the displacement amount d, the closer the similarity of the two images is. The method of the present invention considers the horizontal axis and the vertical axis displacement, and the position of the horizontal axis position (x) and the vertical axis (y) are also obtained after calculating the SAD value. The image of the corrected image can be cropped according to the overall parallax information, and the image information of the similar area is retained, and the image information outside the similar area is deleted. In other words, the image information required is retained, and unnecessary image information is deleted to achieve a complete effect.

茲舉一例說明如后,如「第3A圖」至「第3B圖」所示,本發明將「第3A圖」所示的兩張影像透過整體視差估計機制計算出不同位移量d的SAD值(見第3B圖,SAD值分佈圖),可以發現在位移量d等於6時,具有最小SAD值為977264。也就是說,當位移量為6是兩張影像有最相似的區域。其中,兩張影像有最相似的區域可如第3A圖中框選之範圍所示。 For example, as shown in the following figure, the "two images shown in Figure 3A" are used to calculate the SAD values of different displacement amounts d through the overall parallax estimation mechanism. (See Figure 3B, SAD value distribution map). It can be found that the minimum SAD value is 977264 when the displacement amount d is equal to 6. That is to say, when the displacement amount is 6, the two images have the most similar regions. Among them, the most similar areas of the two images can be as shown in the range selected in Figure 3A.

依據本發明的一實施例中,其中對各修正影像進行影像剪裁包括將修正影像最左邊與最右邊的影像資訊(即最相似的區域除外的影像)刪除。如「第4圖」所示的例子,利用多部攝影機拍攝多視角影像時,其中位於最左邊之攝影機所拍攝之視角影像View1的最左邊影像(第4圖中View1的斜線部分),以及位於最右邊之攝影機所拍攝之視角影像Viewn的最右邊影像(第4圖中Viewn的斜線部分)都無法被其他攝影機拍到,而這一部份的影像與各視角影像不同所以可以刪除。 According to an embodiment of the invention, performing image cropping on each of the corrected images includes deleting the leftmost and rightmost image information of the corrected image (ie, the image except the most similar region). For example, in the example shown in Figure 4, when shooting a multi-view image with multiple cameras, the leftmost image of the view image View1 taken by the camera on the far left (the shaded portion of View1 in Figure 4), and The rightmost image of Viewn image captured by the rightmost camera (the shaded portion of Viewn in Figure 4) cannot be captured by other cameras, and this part of the image is different from each view image and can be deleted.

[影像亮度變化影響位移的驗證步驟] [Verification step of image brightness change affecting displacement]

在本發明方法的一實施例中還包括:影像亮度變化影響位移的驗證步驟,主要作用在於驗證影像是否會因為亮度變化而導致其亮度變化前後所計算的位移值有所不同。此一驗證步驟的一種實施方式是先將影像的亮度透過一影像軟體改變其亮度資訊,再使用SAD公式計算最小的SAD值是否有所差異。經由實驗數據的結果確認當影像亮度改變時,SAD值會相對增加與減少,但位移量的資訊並不會有太大差異,且與原始位移量接近相同。換言之,本發明方法利用整體視差估計機制解決多視角影像中各視角影像因拍攝角度不同造成影像位移及影像資訊差異的問題,確實可行。 In an embodiment of the method of the present invention, the step of verifying the displacement of the image brightness affects the displacement, and the main function is to verify whether the image has a different displacement value calculated before and after the brightness change due to the brightness change. One implementation of this verification step is to first change the brightness of the image through an image software to change its brightness information, and then use the SAD formula to calculate whether the minimum SAD value is different. The results of the experimental data confirm that the SAD value will increase and decrease relatively when the brightness of the image changes, but the information of the displacement amount does not differ much, and is close to the original displacement. In other words, the method of the present invention utilizes the overall disparity estimation mechanism to solve the problem of image displacement and image information difference caused by different shooting angles in each view image in a multi-view image, and is indeed feasible.

依據本發明方法的一實施例,係在取得參考影像之後,先進行上述「影像亮度變化影響位移的驗證步驟」,接著才利用整體視差估計機制根據參考影像計算各修正影像的整體視差資訊。關於驗證步驟的詳細實施方式,將在下文關於整體視差估計單元20的電路架構實施方式中舉一範例說明之。 According to an embodiment of the method of the present invention, after the reference image is acquired, the “verification step of affecting the displacement of the image brightness change” is performed, and then the overall parallax information of each corrected image is calculated according to the reference image by using the global disparity estimation mechanism. A detailed implementation of the verification step will be exemplified below with respect to the circuit architecture embodiment of the overall disparity estimation unit 20.

[亮度修正步驟的實施方式] [Embodiment of Brightness Correction Step]

取得參考影像與完成影像剪裁後的修正影像,接著準備進行亮度修正。亮度修正係以參考影像之亮度平均值為基準透過一可調式亮度修正機制修正各修正影像的亮度資訊,以使亮度資訊修正後的各修正影像的亮度平均值最接近參考影像之亮度平均值。其中可調式亮度修正機制的一種實施方式係透過本發明提出的一種可調式直方圖等化演算法(Adjustable Histogram Equalization) 修正各修正影像的亮度資訊。可調式直方圖等化演算法包含:一機率分佈函數(Probability Density Function,PDF)(見下列公式2.1),一可調式累積分佈函數(Adjustable Cumulative Distribution Function)(見下列公式2.2),及最後使用到的一轉換函數(見下列公式2.3)。 The reference image and the corrected image after the image is cropped are obtained, and then the brightness correction is prepared. The brightness correction corrects the brightness information of each corrected image by using an adjustable brightness correction mechanism based on the average brightness of the reference image, so that the brightness average of each corrected image after the brightness information is corrected is closest to the brightness average of the reference image. One implementation manner of the adjustable brightness correction mechanism is an adjustable histogram equalization algorithm (Adjustable Histogram Equalization) proposed by the present invention. Correct the brightness information of each corrected image. The adjustable histogram equalization algorithm includes: a Probability Density Function (PDF) (see Equation 2.1 below), an Adjustable Cumulative Distribution Function (see Equation 2.2 below), and the last use. A conversion function to (see Equation 2.3 below).

本發明累積分佈函數(Cumulative Distribution Function,CDF)增加一個可變係數c運算與累加分佈函數(CDF)相減再取絕對值後重新編排。本發明之實施例透過逐次調整可變係數c,而對修正影像進行多次的亮度資訊調整,並計算修正影像多次調整亮度資訊後的每一次亮度平均值,再從全部的亮度平均值中找出最接近參考影像之亮度平均值者即為亮度資訊修正完成之修正影像。 The Cumulative Distribution Function (CDF) of the present invention adds a variable coefficient c operation and a cumulative distribution function (CDF) to subtract the absolute value and then rearranges it. In the embodiment of the present invention, the brightness information is adjusted multiple times on the corrected image by sequentially adjusting the variable coefficient c, and the average value of each brightness after the corrected image is adjusted multiple times of the brightness information is calculated, and then from the total brightness average value. Finding the brightness average closest to the reference image is the corrected image for the brightness information correction.

假設為原始修正影像的亮度組成。重新安排亮度數值分佈順序,將亮度數值從0~255排列並將每點上的統計數利用公式(2.1)求得機率分佈函數(PDF)。再利用累積分佈函數(Cumulative Distribution Function),見公式(2.2),對其結果累加計算。計算完後再藉由轉換函數,見上列公式(2.3),將修正影像的亮度資訊的亮度平均值調整到最接近參考影像之亮度平均值,即為亮度資訊修正完成之修正影像。 Hypothesis The brightness component of the original corrected image. Rearrange the order of the brightness values, arrange the brightness values from 0 to 255, and use the formula (2.1) to find the probability distribution function (PDF). Then use the Cumulative Distribution Function (see Equation (2.2)) and accumulate the results. After the calculation, the conversion function is used to see the formula (2.3) above, and the brightness average value of the brightness information of the corrected image is adjusted to the brightness average value closest to the reference image, that is, the corrected image of the brightness information correction is completed.

f(X k )=X k +(X L -X k )CDF(X k )K=0,1,...L-1 (2.3) f ( X k )= X k +( X L - X k ) CDF ( X k )K=0,1,...L-1 (2.3)

其中n代表影像亮度總和、nk代表影像亮度個別統計數量、且可變係數c為非零之數值。 Where n represents the sum of the image brightness, nk represents the individual statistical number of image brightness, and the variable coefficient c is a non-zero value.

在本發明的一實施例中,轉換函數還包含:一減少的轉換函數如下列公式(2.4)所示。除可利用前述公式(2.2)增加亮度外,也可以將亮度減少,達到影像處理的完整功能。 In an embodiment of the invention, the conversion function further comprises: a reduced conversion function as shown in the following formula (2.4). In addition to increasing the brightness by using the above formula (2.2), the brightness can also be reduced to achieve the full function of image processing.

f(X K )=X K -(X L -X K )CDF(X K )K=0,1,...L-1 2.4) f ( X K )= X K -( X L - X K ) CDF ( X K )K=0,1,...L-1 2.4)

以下透過不同的可變係數c,說明透過本發明提出之可調式直方圖等化演算法進行亮度資訊修正的效果。 Hereinafter, through the different variable coefficients c, the effect of correcting the luminance information by the adjustable histogram equalization algorithm proposed by the present invention will be described.

如「第5A圖」至「第5C圖」中所示的例子是可變係數c=0的亮度修正結果。「第5A圖」為參考影像的統計圖。「第5B圖」為修正前影像的統計圖。「第5C圖」為修正後的影像統計圖。其中,橫軸為亮度值,縱軸為亮度統計值。當可變係數c為0時,參考影像的亮度平均值為59.342,修正前的影像亮度平均值為46.387,修正後的影像亮度平均值為103.21,因此可以發現經過亮度修改後的修正影像具有亮度過強的問題。 The example shown in "5A" to "5C" is the brightness correction result of the variable coefficient c=0. "Picture 5A" is a statistical diagram of the reference image. "Picture 5B" is a statistical diagram of the image before correction. "5C Figure" is the corrected image chart. The horizontal axis is the luminance value and the vertical axis is the luminance statistical value. When the variable coefficient c is 0, the average brightness of the reference image is 59.342, the average brightness of the image before correction is 46.387, and the average value of the corrected image brightness is 103.21, so it can be found that the corrected image after brightness modification has brightness. Too strong a problem.

如「第6A圖」至「第6C圖」中所示的例子是可變係數c=1的亮度修正結果。第6A圖為參考影像的統計圖。第6B圖為修正影像的統計圖。第6C圖為修正後的影像統計圖。修正後的影像亮度平均值49.224,我們可看到統計圖的資料有些許的改變,但修正後的影像亮度平均值仍未能與參考影像的亮度平均值接近,故繼續將可變係數c做調整。 The example shown in "Fig. 6A" to "6C" is the brightness correction result of the variable coefficient c = 1. Figure 6A is a statistical diagram of the reference image. Figure 6B is a statistical diagram of the corrected image. Figure 6C shows the corrected image statistics. After the corrected image brightness average is 49.224, we can see that the data of the chart is slightly changed, but the corrected image brightness average is still not close to the brightness average of the reference image, so continue to change the variable coefficient c. Adjustment.

如「第7A圖」至「第7C圖」中所示的例子是可變係數c=0.84的亮度修正結果。「第7A圖」為參考影像的統計圖。「第7B圖」為修正影像的統計圖。「第7C圖」為修正後的影像統計圖。修正後的影像亮度平均值為59.128,從統計圖上來看所延展的部分與參考影像相似,並與參考影像的亮度平均值接近,由以上的範例內容可以發現本發明提出的可調式亮度修正機制,透過逐次調整可變係數c對修正影像進行多次的亮度資訊調整,計算修正影像多次調整亮度資訊後的每一次亮度平均值,再從全部的亮度平均值中找出最接近參考影像之亮度平均值者即為亮度資訊修正完成之修正影像。 An example shown in "Ath 7A" to "7C" is a brightness correction result of a variable coefficient c = 0.84. "Picture 7A" is a statistical diagram of the reference image. "Picture 7B" is a statistical chart of the corrected image. "Picture 7C" is the corrected image chart. The corrected image brightness average is 59.128. The extended part of the image is similar to the reference image and close to the brightness average of the reference image. The above example can reveal the adjustable brightness correction mechanism proposed by the present invention. By adjusting the variable coefficient c one by one to adjust the brightness information of the corrected image multiple times, calculate the average value of each brightness after the corrected image is adjusted multiple times, and then find the closest reference image from the total brightness average. The average brightness is the corrected image of the brightness information correction.

[色彩修正步驟的實施方式] [Implementation of color correction steps]

在三維顯示設備(如立體電視)中係以YUV色彩格式表示影像的色彩資訊,為了便於對完成亮度資訊修正的修正影像進行色彩修正,因此在本發明的一實施例中,最初由多視角影像中取得的複數個不同視角的視角影像View1~Viewn所包含的影像色彩資訊即為YUV色彩空間的色彩資訊。 In a three-dimensional display device (such as a stereoscopic television), the color information of the image is represented by a YUV color format, and in order to facilitate color correction of the corrected image that completes the brightness information correction, in one embodiment of the present invention, the multi-view image is initially used. The image color information contained in the plurality of different viewing angle images View1~Viewn obtained in the image is the color information of the YUV color space.

一般而言,利用攝位攝影機攝取的影像的色彩資訊係以RGB色彩格式表示,因此若是取用RGB色彩格式的多視角影像應用於本發明的裝置及其方法時,應對RGB色彩格式的多視角影像先進行色彩空間轉換(color domain transformation),所應用的色彩空間轉換公式視轉換前之多視角影像的色彩格式和轉換後所需的色彩格式決定,下文列舉的一色彩轉換公式係用於說明其 中的一種而非以此轉換公式為唯一的例子。 In general, the color information of an image taken by a camera is expressed in an RGB color format, so if a multi-view image using the RGB color format is applied to the apparatus and method of the present invention, multi-view of the RGB color format should be handled. The image is first subjected to color domain transformation. The applied color space conversion formula is determined by the color format of the multi-view image before conversion and the color format required after conversion. The color conversion formula listed below is used for explanation. its One of them is not the only example of this conversion formula.

本發明方法中用於進行色彩空間轉換的一實施方式,可利用下列公式(4.1)將參考影像的RGB色彩空間,轉換到YUV色彩空間上,主要是為了符合3D立體電視的輸入資訊: In an embodiment of the method for performing color space conversion, the RGB color space of the reference image can be converted into the YUV color space by using the following formula (4.1), mainly for conforming to the input information of the 3D stereo TV:

再利用下列公式(4.2)將修正影像的RGB色彩空間,轉換到YUV色彩空間上: Then use the following formula (4.2) to convert the RGB color space of the corrected image to the YUV color space:

本發明提出的色彩修正機制的一種實施方式,係將上述公式(4.1)和公式(4.2)透過下列的色彩修正公式(4.3)重新定義為本發明的色彩修正機制,可見公式(5.1)。 One embodiment of the color correction mechanism proposed by the present invention redefines the above formula (4.1) and formula (4.2) by the following color correction formula (4.3) as the color correction mechanism of the present invention, and the formula (5.1) can be seen.

下列公式(5.1)其中VR和UR代表參考影像的色彩資訊,VT和UT代表修正影像的色彩資訊。 The following formula (5.1) where VR and UR represent the color information of the reference image, and VT and UT represent the color information of the corrected image.

經過化簡得到色彩修正資訊為參考影像的VR色彩資訊,為參考影像的UR色彩資訊。本發明使用顏色範圍來做處理,當色彩修正資訊在某範圍時,直接用相對應的色彩值做填入修正數值,以避免導致色彩失真問題。 Simplified color correction information For the VR color information of the reference image, Refers to the UR color information of the image. The invention uses the color range for processing. When the color correction information is in a certain range, the correction value is directly filled in with the corresponding color value to avoid the color distortion problem.

本發明方法中的色彩修正的一實施方式是將與參考影像左右相鄰的修正影像先進行色彩修正,修正過程中如遇遮蔽效應時,會將參考影像與遮蔽效應影像做色彩修正處理,藉此得到被遮蔽影像資訊。因此,可避免影像的遮蔽效應產生的問題。 An embodiment of the color correction in the method of the present invention performs color correction on the corrected image adjacent to the left and right of the reference image, and performs color correction processing on the reference image and the shadowing effect image in the event of a shadowing effect in the correction process. This gives the blocked image information. Therefore, problems caused by the shadowing effect of the image can be avoided.

本發明方法中採用上述的實施方式,利用與參考影像左右相鄰的修正影像先進行色彩修正,修正完後再往相鄰的其他的修正影像進行色彩修正。如此一來,因相鄰的位移量,不會比參考影像對每個修正影像計算出的位移量來的大,所得到的修正資訊相對提高許多,據此對影像的色彩修正也有好的效果。因此,可避免影像修正後位移量過度偏移而色彩資訊失真。 In the method of the present invention, the above-described embodiment is adopted, and the color correction is performed first by using the corrected image adjacent to the left and right of the reference image, and then the color correction is performed to the adjacent other corrected image after the correction. In this way, because the amount of displacement adjacent to each other is not larger than the amount of displacement calculated by the reference image for each corrected image, the obtained correction information is relatively improved, and the color correction of the image is also effective. . Therefore, it is possible to avoid excessive shift of the displacement amount and distortion of the color information after the image correction.

由上述的說明可以瞭解,本發明方法利用整體視差估計機制找出參考影像和各修正影像間的最大相似區域,再進行亮度與色彩的修正,在色彩修正步驟中先將與參考影像相鄰的修正影像修正完成後,再利用修正完成的修正影像對相鄰的其他的 修正影像再進行色彩修正,可以將位移量資訊減少,提高對修正影像之色彩資訊的修正質量,能得到更好的效果。 It can be understood from the above description that the method of the present invention uses the global disparity estimation mechanism to find the maximum similarity between the reference image and each corrected image, and then corrects the brightness and color. In the color correction step, the reference image is adjacent to the reference image. After correcting the image correction, use the corrected image to correct the adjacent other Correcting the image and then performing color correction can reduce the displacement information and improve the quality of the correction of the color information of the corrected image, so that better results can be obtained.

關於本發明提出用於實施上述方法之裝置的技術特徵及其實施方式,說明如后。 The technical features of the apparatus for carrying out the above method and the embodiments thereof are set forth in the present invention, as explained later.

參考資訊處理單元10具有一輸入側(input)和多視角影像來源連接用於取得多視角影像View1~Viewn,參考資訊處理單元10先計算各視角影像的亮度平均值,再從中選取亮度平均值最接近一閥值者作為一參考影像ViewR,並將其餘視角影像作為複數個修正影像,然後輸出參考影像資訊(ViewR information)和修正影像資訊,其中參考影像資訊至少包含參考影像的亮度平均值,修正影像資訊至少包含經過色域轉換後的各修正影像的色彩資訊Y、UT和VT。 The reference information processing unit 10 has an input side and a multi-view image source connection for acquiring multi-view images View1~Viewn, and the reference information processing unit 10 first calculates the brightness average value of each view image, and then selects the brightness average value from the most. A threshold value is used as a reference image ViewR, and the remaining view images are used as a plurality of corrected images, and then the reference image information (ViewR information) and the corrected image information are output, wherein the reference image information includes at least the brightness average value of the reference image, and the correction is performed. The image information includes at least the color information Y, UT, and VT of each corrected image after the color gamut conversion.

參考資訊處理單元10有許多種可行的實施方式。在此列舉一種用於選出參考影像以及輸出參考影像之亮度平均值的電路架構範例。如「第8圖」所示,其中多視角影像(multi-view)被輸入一8位元右移器11(8bit right shift)是為了避免讓輸入的亮度數值通過累加器12(accumulator)累加完後需要多位元的暫存器才能存放,而先進行除法的動作,讓所需要的暫存位元數到八位元就好。累加完後再藉由一減法器13(subtractor)與門檻值128相減。然後,利用絕對值編碼器14(absolute)取絕對值是為了讓計算出來的數值越小即代表越接近門檻值128的數值。再由比較器15(comparator minimum value)比較找出最小亮度平均值者作為 參考影像。然後,將參考影像資訊送給整體視差估計單元20,參考影像的亮度平均值則送給亮度修正單元30。 There are many possible implementations of the reference information processing unit 10. Here is an example of a circuit architecture for selecting a reference image and an average of the brightness of the output reference image. As shown in Fig. 8, the multi-view image is input to an 8-bit right shifter 11 (8 bit right shift) to avoid the input of the brightness value through the accumulator 12 (accumulator). After the multi-bit scratchpad is needed to store, the first division operation is performed, so that the required number of temporary storage bits is up to eight bits. After the accumulation is completed, it is subtracted from the threshold value 128 by a subtractor 13 (subtractor). Then, the absolute value is taken by the absolute value encoder 14 (absolute) in order to make the calculated value smaller, that is, the value closer to the threshold value 128. Then compare the comparator 15 (comparator minimum value) to find the minimum brightness average Reference image. Then, the reference image information is sent to the overall parallax estimating unit 20, and the brightness average value of the reference image is sent to the brightness correcting unit 30.

如「第2圖」所示,整體視差估計單元20具有一輸入側(input)和多視角影像來源連接用於取得多視角影像View1~Viewn。整體視差估計單元20另有一參考資訊輸入端和參考資訊處理單元10連接用於取得參考資訊處理單元10輸出的參考影像資訊。整體視差估計單元20利用整體視差估計機制根據參考影像計算各修正影像的整體視差資訊,以及依據各修正影像的整體視差資訊對各視角影像進行影像剪裁。其中,對各視角影像進行影像剪裁係保留相似區域的影像資訊,並刪除相似區域以外的影像資訊。 As shown in FIG. 2, the overall parallax estimating unit 20 has an input side and a multi-view image source connection for acquiring multi-view images View1~Viewn. The reference data input terminal and the reference information processing unit 10 are connected to obtain the reference image information output by the reference information processing unit 10. The overall disparity estimation unit 20 calculates the overall disparity information of each corrected image according to the reference image by using the overall disparity estimation mechanism, and performs image cropping on each view image according to the overall disparity information of each corrected image. Among them, performing image cropping on each view image retains image information of a similar area and deletes image information other than the similar area.

通過整體視差估計單元20計算後產生的各視角影像的整體視差資訊可通過記憶體控制器41發送給亮度修正單元30(見「第9圖」),而整體視差資訊如「第2圖」所示其中至少包含有各修正影像與參考影像的位移量位移量d。 The overall parallax information of each view image generated by the overall disparity estimation unit 20 can be transmitted to the brightness correction unit 30 (see FIG. 9) through the memory controller 41, and the overall disparity information is as shown in FIG. The displacement amount d of each of the corrected image and the reference image is included.

配合前述本發明方法中的「影像亮度變化影響位移的驗證步驟」,在此列舉一種整體視差估計單元20的電路架構實施範例如「第9圖」所示,係使用參考影像ViewR與其他視角影像計算出最小SAD值,計算一開始分別使用一組測試影像進行兩種SAD值的計算。第一種SAD值的計算是使用一原始的測試影像與參考影像通過「第9圖」中下方所示計算電路的路徑進行計算,係將原始的測試影像與參考影像利用一第一減法器21a、一第一絕對 值編碼器22a和一第一累加器23a計算出第一組具有最小SAD值的位移量d1。第二種SAD值的計算是將除了參考影像外的測試影像都先增加一預設的亮度值L1。如「第9圖」中所示,透過一加法器24進行亮度增加,然後再與參考影像利用一第二減法器21b、一第二絕對值編碼器22b和一第二累加器23b計算出第二組具有最小SAD值的位移量d2。最後,將計算出的兩組位移量d1及位移量d2通過比較器25進行位移量的檢查,驗證兩組得到的是否為相同的位移量,藉此驗證亮度改變後的影像是否會影響位移量計算。 In conjunction with the "Verification Step of Image Brightness Effect Affecting Displacement" in the foregoing method of the present invention, a circuit architecture implementation example of the overall parallax estimating unit 20 is shown here, for example, "Fig. 9", which uses a reference image ViewR and other viewing angle images. The minimum SAD value is calculated, and the calculation of the two SAD values is performed using a set of test images at the beginning. The calculation of the first SAD value is performed by using the original test image and the reference image through the path of the calculation circuit shown in the lower part of "Fig. 9", and the original test image and the reference image are utilized by a first subtractor 21a. First absolute The value encoder 22a and a first accumulator 23a calculate the first set of displacement amounts d1 having the smallest SAD values. The second SAD value is calculated by first adding a predetermined brightness value L1 to the test image except the reference image. As shown in FIG. 9, the brightness is increased by an adder 24, and then the reference image is calculated by using a second subtractor 21b, a second absolute value encoder 22b, and a second accumulator 23b. Two sets of displacements d2 having a minimum SAD value. Finally, the calculated displacement amount d1 and the displacement amount d2 of the two groups are checked by the comparator 25 to verify whether the two groups obtain the same displacement amount, thereby verifying whether the image after the brightness change affects the displacement amount. Calculation.

亮度修正單元30具有一輸入側和參考資訊處理單元10連接取得參考影像的亮度平均值。亮度修正單元30以參考影像的亮度平均值為基準,透過可調式亮度修正機制修正經過影像剪裁後各修正影像的亮度資訊,以使經過亮度資訊修正後的各修正影像的亮度平均值最接近參考影像的亮度平均值,然後輸出經過亮度修正後的各修正影像及其亮度修正資訊。 The brightness correction unit 30 has an input side and a reference information processing unit 10 connected to obtain a brightness average value of the reference image. The brightness correcting unit 30 corrects the brightness information of each corrected image after the image is cut by the adjustable brightness correction mechanism based on the average brightness of the reference image, so that the brightness average of each corrected image corrected by the brightness information is closest to the reference. The average brightness of the image, and then output the corrected image after brightness correction and its brightness correction information.

亮度修正單元30基本核心在於實現本發明提出的可調式亮度修正機制,依據前文的說明可知本發明的可調式亮度修正機制中包含:機率分佈函數(PDF)、可調式累積分佈函數,以及轉換函數三個部份。這三個部份的一種電路架構實施範例如「第10圖」至「第11圖」所示。其中,機率分佈函數(PDF)和可調式累積分佈函數的一種電路架構如「第10圖」所示,當影像的亮度值輸入時需要將亮度值做統計,使用大量的比較器31設定0~255參數當作觸發條件。當輸入影像與比較器的數值相同則利用後端的 增量器32(incrementer)加1作累加,再通過暫存器33a(register)和位移暫存器33b(shift register)暫存累加的結果(即為機率分佈函數的結果),整張影像傳輸完後相對也統計完所有影像資訊。 The basic core of the brightness correction unit 30 is to implement the adjustable brightness correction mechanism proposed by the present invention. According to the foregoing description, the adjustable brightness correction mechanism of the present invention includes: a probability distribution function (PDF), an adjustable cumulative distribution function, and a conversion function. Several parts. A circuit architecture implementation of these three parts is shown in "Figure 10" to "Figure 11". Among them, a circuit structure of the probability distribution function (PDF) and the adjustable cumulative distribution function is shown in Fig. 10. When the brightness value of the image is input, the brightness value needs to be counted, and a large number of comparators 31 are used to set 0~ The 255 parameter is used as the trigger condition. When the input image is the same as the value of the comparator, the back end is used. The incrementer 32 (incrementer) adds 1 for accumulation, and then temporarily accumulates the result by the register 33a (register) and the shift register 33b (shift register) (that is, the result of the probability distribution function), and the entire image is transmitted. After all, all the image information is also counted.

計算完機率分佈函數後利用加法器36a將每一數值作相加的動作得到累加分佈函數值(CDF),而依據本發明提出的可調式累加分佈函數,再增加一個可變係數c與累加分佈函數(CDF)通過減法器34相減再利用絕對值編碼器35取絕對值後重新編排。利用一排序電路S1以小到大的排序這樣一來可得到新的累加分佈數值CDF,再藉由轉換函數(見前文說明中的公式(2.3))進行亮度增加的效果。當可變係數c變化一次所得的累加分佈函數值也有所不同。 After calculating the probability distribution function, the adder 36a is used to add each value to obtain an accumulated distribution function value (CDF), and according to the adjustable cumulative distribution function proposed by the present invention, a variable coefficient c and an accumulated distribution are added. The function (CDF) is subtracted by the subtractor 34 and then re-arranged by taking the absolute value by the absolute value encoder 35. A new cumulative distribution value CDF can be obtained by sorting the sorting circuit S1 in a small to large manner, and the effect of brightness increase is performed by a conversion function (see equation (2.3) in the foregoing description). The value of the accumulated distribution function obtained when the variable coefficient c changes once also differs.

再經過轉換函數的電路架構(見「第11圖」),轉換函數的電路架構根據累加分佈的係數逐一增加亮度數值。計算完亮度影像資訊,同樣可利用參考資訊處理單元10計算亮度平均值,然後將計算的結果利用比較器37與參考影像的亮度平均值進行相減及比較。其中,數值越小就代表兩張影像的亮度資訊越相同。最後,找到一組最接近修正資訊的亮度修正值(correction luminance value,CLV)傳送到儲存單元40進行儲存,當下一張影像出入時,可直接將亮度修正資訊讀取出來對映修正。 After passing through the circuit structure of the conversion function (see "Figure 11"), the circuit structure of the conversion function increases the luminance value one by one according to the coefficient of the accumulated distribution. After calculating the brightness image information, the reference information processing unit 10 can also be used to calculate the brightness average value, and then the calculated result is subtracted and compared with the brightness average value of the reference image by the comparator 37. Among them, the smaller the value, the more the brightness information of the two images is the same. Finally, a correction luminance value (CLV) that is closest to the correction information is found and transmitted to the storage unit 40 for storage. When the next image is sent in and out, the brightness correction information can be directly read out and corrected.

另外在本發明方法中提到讓亮度資訊擁有降低亮度功能之減少的轉換函數的電路架構如「第12圖」所示。其中,「第12圖」與「第11圖」之轉換函數的電路架構不同的地方在於與CDF 利用乘法器39相乘後使用減法器38與輸入資訊相減以降低亮度修正資訊。「第11圖」之轉換函數的電路架構在與CDF利用乘法器39相乘後使用則是使用加法器36b與輸入資訊相加以降低亮度修正資訊。 Further, in the method of the present invention, a circuit structure in which the luminance information has a reduced conversion function for reducing the luminance function is shown as shown in Fig. 12. Among them, the circuit structure of the conversion function of "12th picture" and "11th picture" is different from CDF After multiplying by the multiplier 39, the subtractor 38 is used to subtract the input information to reduce the brightness correction information. The circuit structure of the conversion function of "Fig. 11" is used after multiplying the CDF by the multiplier 39 by adding the addition information to the input information to reduce the brightness correction information.

儲存單元40的一實施方式包括一記憶體控制器41和數個記憶體SRAM1至SRAM 4。記憶體控制器41用來控制四個記憶體SRAM1至SRAM 4進行資料的讀取和寫入操作,以及將整體視差估計單元20輸出的各修正影像的整體視差資訊寫入第一記憶體SRAM1。第一記憶體SRAM1用以供亮度修正單元30進行亮度資訊修正之用(見「第13圖」)。第二記憶體SRAM2用來儲存經過亮度資訊修正後的各修正影像及其亮度修正資訊。換言之,第二記憶體SRAM2用來儲存參考影像與相鄰的修正影像修正後的影像資訊。透過記憶體儲存資料的方式,當有其他的修正影像(即其他的視角影像)輸入時,我們可讀取第二記憶體SRAM2的資料進行修改。 One embodiment of storage unit 40 includes a memory controller 41 and a plurality of memory SRAM1 through SRAM 4. The memory controller 41 is for controlling the reading and writing operations of the four memory SRAM1 to the SRAM 4, and writing the overall parallax information of the respective corrected images output from the overall parallax estimating unit 20 to the first memory SRAM1. The first memory SRAM 1 is used by the brightness correcting unit 30 for brightness information correction (see "Fig. 13"). The second memory SRAM 2 is used to store the corrected images and the brightness correction information corrected by the brightness information. In other words, the second memory SRAM 2 is used to store the reference image and the adjacent corrected image corrected image information. When the data is stored in the memory, when other corrected images (ie other perspective images) are input, we can read the data of the second memory SRAM2 for modification.

如「第14圖」所示,第三記憶體SRAM3可先儲存參考影像的U色彩空間資訊UR,及儲存色彩修正後U色彩空間的色彩修正資訊。如「第15圖」所示,第四記憶體SRAM4可先儲存參考影像的V色彩空間資訊VR,及儲存色彩修正後V色彩空間的色彩修正資訊As shown in Figure 14, the third memory SRAM3 can store the U color space information UR of the reference image and the color correction information of the U color space after the color correction is stored. . As shown in Figure 15, the fourth memory SRAM4 can store the V color space information VR of the reference image and the color correction information of the V color space after the color correction. .

色彩修正單元50具有一輸入側和參考資訊處理單元10連接。色彩修正單元50用於取得修正影像(即為各視角影像) 的色彩資訊Y、UT和VT,利用U色彩空間的色彩修正資訊、V色彩空間的色彩修正資訊及各修正影像的整體視差資訊修正各修正影像中對映位置的色彩資訊。 The color correction unit 50 has an input side connected to the reference information processing unit 10. The color correction unit 50 is configured to obtain color information Y, UT, and VT of the corrected image (that is, each view image), and use the color correction information of the U color space. , color correction information of V color space And the overall parallax information of each corrected image corrects the color information of the mapped position in each corrected image.

在本發明裝置的一實施例,另外為了讓修正前後有比較的實際數據,本發明將前述所使用到的統計方法,將參考影像與修正前後的資訊統計,可藉由得到的資訊進行比較,找出修正前後的資訊是否相同。其中,U色彩空間資料統計電路架構的一種實施方式如「第16圖」所示。色彩修正後U色彩空間資料統計電路架構的一種實施方式則如「第17圖」所示。 In an embodiment of the apparatus of the present invention, in addition, in order to compare the actual data before and after the correction, the present invention compares the reference image with the information before and after the correction according to the statistical method used, and can compare the obtained information. Find out if the information before and after the correction is the same. Among them, an implementation manner of the U color space data statistical circuit architecture is shown in "16th picture". An implementation of the U color space data statistics circuit architecture after color correction is shown in Figure 17.

本發明之實施例利用整體視差估計機制從參考影像和修正影像間找到最大相似的區域。在透過影像剪裁找到參考影像和修正影像的最大相似區域後,為了再提高修正後的影像品質,本發明方法及其裝置係以一參考影像做為標準,而利用參考影像和各修正影像進行比對。接著,對各修正影像進行亮度與色彩的修正。當完成亮度資訊修正後之修正影像的亮度平均值越接近參考影像的亮度平均值,即代表修正資訊越好。色彩修正演算法則讓各修正影像資訊都與參考影像接近。 Embodiments of the present invention utilize an overall disparity estimation mechanism to find the region of greatest similarity between a reference image and a corrected image. After finding the maximum similar area of the reference image and the corrected image through the image cropping, in order to further improve the corrected image quality, the method and the device of the present invention use a reference image as a standard, and use the reference image and each corrected image to perform comparison. Correct. Next, the correction and the color are corrected for each of the corrected images. When the brightness average of the corrected image after the brightness information correction is completed, the closer to the brightness average of the reference image, the better the correction information is. The color correction algorithm allows each corrected image information to be close to the reference image.

由以上的實施例說明內容可以發現本發明方法及其裝置能將多視角影像的影像資訊重新修正,並且能重建影像亮度與色彩資訊,並將不必要的影像資訊刪除,以提高影像品質和減少區塊匹配的錯誤率。因此,提升多視角影像的影像品質,以輸出多視角影像到三維合成軟體而建立立體影像。 It can be seen from the above description that the method and device of the present invention can re-correct image information of multi-view images, reconstruct image brightness and color information, and delete unnecessary image information to improve image quality and reduce image quality. The error rate of block matching. Therefore, the image quality of the multi-view image is improved, and the multi-view image is output to the three-dimensional composite software to establish a stereoscopic image.

雖然本發明已透過上述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之請求項所界定者為準。 While the present invention has been described above by way of example, the present invention is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of patent protection is subject to the terms of the claims attached to this specification.

10‧‧‧參考資訊處理單元 10‧‧‧Reference Information Processing Unit

20‧‧‧整體視差估計單元 20‧‧‧Integral Parallax Estimation Unit

30‧‧‧亮度修正單元 30‧‧‧Brightness correction unit

40‧‧‧儲存單元 40‧‧‧ storage unit

41‧‧‧記憶體控制器 41‧‧‧ memory controller

50‧‧‧色彩修正單元 50‧‧‧Color Correction Unit

d‧‧‧位移量 D‧‧‧displacement

View1~Viewn‧‧‧視角影像 View1~Viewn‧‧‧ view image

VT‧‧‧修正影像經過色彩空間轉換後的V色彩空間資訊 VT‧‧‧Fixed V color space information after image space conversion

UT‧‧‧修正影像經過色彩空間轉換後的U色彩空間資訊 UT‧‧‧Fixed U color space information after image space conversion

Y‧‧‧參考影像/修正影像的亮度資訊 Y‧‧‧Reference image/correction image brightness information

SRAM1‧‧‧第一記憶體 SRAM1‧‧‧ first memory

SRAM2‧‧‧第二記憶體 SRAM2‧‧‧ second memory

SRAM3‧‧‧第三記憶體 SRAM3‧‧‧ third memory

SRAM4‧‧‧第四記憶體 SRAM4‧‧‧ fourth memory

Claims (10)

一種多視角影像的修正裝置,包括:一參考資訊處理單元,用以接收複數個視角影像、根據各該視角影像的亮度平均值以及一閥值者選取該些視角影像中之一做為一參考影像、以及將其餘視角影像作為複數個修正影像,其中該些視角影像所對應之視角互不相同;一整體視差估計單元,電性連接該參考資訊處理單元,用以利用一整體視差估計機制根據該參考影像計算各該修正影像的整體視差資訊,以及依據各該修正影像的該整體視差資訊對各該視角影像進行影像剪裁;一亮度修正單元,電性連接該參考資訊處理單元,用以以該參考影像的亮度平均值為基準透過一可調式直方圖等化演算法修正剪裁後的各該修正影像的亮度資訊,以使亮度資訊修正後的各該修正影像的亮度平均值最接近該參考影像之亮度平均值;以及一色彩修正單元,電性連接該參考資訊處理單元及該亮度修正單元,用以由該整體視差資訊最靠近該參考影像的該修正影像開始根據亮度資訊修正後的各該修正影像以及前一影像透過一色彩修正機制產生一色彩修正資訊並根據該色彩修正資訊選擇性修正對應之亮度資訊修正後的該修正影像的色彩資訊。 A multi-view image correction device includes: a reference information processing unit, configured to receive a plurality of view image images, select one of the view image images as a reference according to a brightness average value of each view image and a threshold value The image and the remaining view images are used as a plurality of corrected images, wherein the view angles correspond to different viewing angles; an overall disparity estimating unit is electrically connected to the reference information processing unit for utilizing an overall disparity estimation mechanism according to The reference image is used to calculate the overall disparity information of each of the corrected images, and to perform image cropping on each of the view images according to the overall disparity information of each of the corrected images; a brightness correcting unit is electrically connected to the reference information processing unit for The brightness average of the reference image is corrected by an adjustable histogram equalization algorithm to correct the brightness information of each of the corrected images, so that the brightness average of each corrected image after the brightness information is corrected is closest to the reference. An average brightness of the image; and a color correction unit electrically connected to the reference The processing unit and the brightness correcting unit are configured to generate a color correction information by using the color correction mechanism after the corrected image of the entire parallax information closest to the reference image is started according to the brightness information and the previous image is corrected by a color correction mechanism. The color information of the corrected image corrected by the corresponding brightness information is selectively corrected according to the color correction information. 如申請專利範圍第1項所述之多視角影像的修正裝置,其中 該整體視差估計機制計算所得的該整體視差資訊中至少具有各該修正影像與該參考影像的一位移量,該整體視差估計機制係透過計算各該修正影像的整體視差資訊的絕對差值總和(SAD)取得各該修正影像與該參考影像的該位移量,該亮度修正單元再透過計算每個該位移量之SAD值並尋找其中最小之SAD值的方式找出該參考影像和各該修正影像間的最大相似區域,對各該修正影像進行影像剪裁,保留相似區域的影像資訊,刪除相似區域以外的影像資訊,其中對各該視角影像進行影像剪裁另包括將該些視角影像中最左邊與最右邊的影像資訊刪除。 A multi-view image correction device as claimed in claim 1, wherein The overall disparity information calculated by the overall disparity estimation mechanism has at least one displacement of each of the modified image and the reference image, and the overall disparity estimation mechanism calculates a sum of absolute differences of the total disparity information of each of the corrected images ( And obtaining, by the SAD, the displacement amount of each of the corrected image and the reference image, wherein the brightness correction unit further finds the reference image and each of the corrected images by calculating a SAD value of each of the displacement amounts and searching for a minimum SAD value thereof. The largest similar area between the two, the image is cut for each of the modified images, the image information of the similar area is retained, and the image information other than the similar area is deleted, wherein the image cropping of each of the view images further includes the leftmost of the view images. The rightmost image information is deleted. 如申請專利範圍第1項所述之多視角影像的修正裝置,其中該色彩修正機制係藉由下列公式得到該色彩修正資訊 The apparatus for correcting multi-view images as described in claim 1, wherein the color correction mechanism obtains the color correction information by the following formula with 一種多視角影像的修正方法,包括:根據複數個視角影像的亮度從該些視角影像中選取一者作為一參考影像,其中其餘的該些視角影像作為複數個修正影像;利用一整體視差估計機制根據該參考影像計算各該修正影像的整體視差資訊,以及依據各該修正影像的整體視 差資訊對各該修正影像進行影像剪裁;以該參考影像之亮度平均值為基準透過一可調式亮度修正機制修正剪裁後之各該修正影像的亮度,以使亮度資訊修正後的各該修正影像的亮度平均值最接近該參考影像之亮度平均值;以及由該整體視差資訊最靠近該參考影像的該修正影像開始根據亮度資訊修正後的各該修正影像以及前一影像透過一色彩修正機制產生一色彩修正資訊,並根據該色彩修正資訊選擇性修正對應之亮度資訊修正後的該修正影像的色彩資訊。 A method for correcting a multi-view image includes: selecting one of the view images as a reference image according to brightness of the plurality of view images, wherein the remaining view images are used as a plurality of corrected images; and utilizing an overall disparity estimation mechanism Calculating the overall parallax information of each of the corrected images according to the reference image, and determining the overall view of the corrected image according to the reference image The difference information is used for image clipping of each of the corrected images; and the brightness of each of the corrected images after the clipping is corrected by an adjustable brightness correction mechanism based on the average brightness of the reference image, so that the corrected images of the corrected brightness information are corrected The brightness average value is closest to the brightness average value of the reference image; and the corrected image that is closest to the reference image by the overall disparity information starts to be generated according to the brightness information, and the previous image is generated by a color correction mechanism. a color correction information, and selectively correcting color information of the corrected image corresponding to the brightness information according to the color correction information. 如申請專利範圍第4項所述之多視角影像的修正方法,其中係從該複數個視角影像中選取亮度平均值最接近一閥值者設為該參考影像。 The method for correcting a multi-view image according to claim 4, wherein the reference image is set by selecting a brightness average value closest to a threshold from the plurality of view images. 如申請專利範圍第4項所述之多視角影像的修正方法,其中該整體視差估計機制係透過計算各該修正影像的整體視差資訊的絕對差值總和(SAD)取得各該修正影像與該參考影像的一位移量,再透過計算每個該位移量之SAD值並尋找其中最小之SAD值的方式找出該參考影像和各該修正影像間的最大相似區域,對各該修正影像進行影像剪裁,保留相似區域的影像資訊,刪除相似區域以外的影像資訊,其中對各該視角影像進行影像剪裁包括將該複數個視角影像中最左邊與最右邊的影像資訊刪除。 The method for correcting multi-view images as described in claim 4, wherein the overall disparity estimation mechanism obtains each of the corrected images and the reference by calculating a sum of absolute differences (SAD) of the total disparity information of each of the corrected images. A displacement amount of the image is obtained by calculating the SAD value of each of the displacement amounts and finding the SAD value of the displacement amount to find the maximum similarity between the reference image and each of the corrected images, and performing image cropping on each of the corrected images. The image information of the similar area is retained, and the image information other than the similar area is deleted, wherein performing image cropping on each of the plurality of view images includes deleting the leftmost and rightmost image information of the plurality of view images. 如申請專利範圍第4項所述之多視角影像的修正方法,其中該可調式亮度修正機制係透過一可調式直方圖等化演算法對該些修正影像進行亮度調整,該可調式直方圖等化演算法包含:一機率分佈函數,一可調式累積分佈函數,及一轉換函數。 The method for correcting a multi-view image as described in claim 4, wherein the adjustable brightness correction mechanism performs brightness adjustment on the corrected images through an adjustable histogram equalization algorithm, the adjustable histogram, etc. The algorithm includes: a probability distribution function, an adjustable cumulative distribution function, and a conversion function. 如申請專利範圍第7項所述之多視角影像的修正方法,該可調式累積分佈函數係在一累積分佈函數增加一可變係數與一累加分佈函數相減再取絕對值後重新編排,透過逐次調整該可變係數對該修正影像進行多次的亮度調整,計算該修正影像多次調整亮度後的每一次亮度平均值,再從全部的該亮度平均值中找出最接近該參考影像之亮度平均值者作為亮度修正完成之該修正影像。 The method for correcting a multi-view image according to claim 7, wherein the adjustable cumulative distribution function is re-arranged after subtracting an absolute value from a cumulative distribution function by adding a variable coefficient to an accumulated distribution function. Adjusting the variable coefficient successively to adjust the brightness of the corrected image multiple times, calculating the average brightness value of the corrected image after adjusting the brightness multiple times, and finding the closest to the reference image from all the average values of the brightness. The brightness average is used as the corrected image for the brightness correction. 如申請專利範圍第4項所述之多視角影像的修正方法,其中該色彩修正機制係藉由下列公式得到該色彩修正資訊 The method for correcting a multi-view image as described in claim 4, wherein the color correction mechanism obtains the color correction information by the following formula with 如申請專利範圍第4項所述之多視角影像的修正方法,其中該色彩修正步驟中係將與該參考影像相鄰的該修正影像修正完成後,再利用修正完成的該修正影像對相鄰的其他的該修正影像再進行色彩修正。 The method for correcting a multi-view image according to claim 4, wherein the color correction step corrects the corrected image adjacent to the reference image, and then uses the corrected image pair adjacent to the correction. The other corrected images are then color corrected.
TW102141311A 2013-11-13 2013-11-13 Method and apparatus for correcting the multi-view images TWI504235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102141311A TWI504235B (en) 2013-11-13 2013-11-13 Method and apparatus for correcting the multi-view images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102141311A TWI504235B (en) 2013-11-13 2013-11-13 Method and apparatus for correcting the multi-view images

Publications (2)

Publication Number Publication Date
TW201519635A true TW201519635A (en) 2015-05-16
TWI504235B TWI504235B (en) 2015-10-11

Family

ID=53721114

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102141311A TWI504235B (en) 2013-11-13 2013-11-13 Method and apparatus for correcting the multi-view images

Country Status (1)

Country Link
TW (1) TWI504235B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI602420B (en) * 2016-10-06 2017-10-11 晶睿通訊股份有限公司 Stereo vision image calibration method and related image capturign device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI258716B (en) * 2004-11-16 2006-07-21 Ind Tech Res Inst Image capturing platform of measuring for 3-D material, and correcting compensation method
TW201005673A (en) * 2008-07-18 2010-02-01 Ind Tech Res Inst Example-based two-dimensional to three-dimensional image conversion method, computer readable medium therefor, and system
TWI363710B (en) * 2009-08-26 2012-05-11 Nat Univ Tsing Hua 3-d imaging and displaying device
KR20120105199A (en) * 2011-03-15 2012-09-25 엘지디스플레이 주식회사 Multi view-able stereoscopic image display device and driving method thereof
TWI465104B (en) * 2011-05-04 2014-12-11 Oriental Inst Technology Image color correction system and the correction method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI602420B (en) * 2016-10-06 2017-10-11 晶睿通訊股份有限公司 Stereo vision image calibration method and related image capturign device
US10735710B2 (en) 2016-10-06 2020-08-04 Vivotek Inc. Stereo vision image calibration method and related image capturing device

Also Published As

Publication number Publication date
TWI504235B (en) 2015-10-11

Similar Documents

Publication Publication Date Title
US10911737B2 (en) Primary and auxiliary image capture devices for image processing and related methods
US10540806B2 (en) Systems and methods for depth-assisted perspective distortion correction
KR102142641B1 (en) Systems and methods for multiscopic noise reduction and high-dynamic range
TWI537875B (en) Image fusion method and image processing apparatus
US9288392B2 (en) Image capturing device capable of blending images and image processing method for blending images thereof
US8274552B2 (en) Primary and auxiliary image capture devices for image processing and related methods
JP5744614B2 (en) Image processing apparatus, image processing method, and image processing program
US10165249B2 (en) Method for smoothing transitions between scenes of a stereo film and controlling or regulating a plurality of 3D cameras
US10109063B2 (en) Image processing in a multi-channel camera
CN116324882A (en) Image signal processing in a multi-camera system
JP5843599B2 (en) Image processing apparatus, imaging apparatus, and method thereof
TWI504235B (en) Method and apparatus for correcting the multi-view images
WO2017168528A1 (en) Image processing apparatus, image processing method, and image processing program
JP5854801B2 (en) Image processing apparatus, image processing method, and program
KR20150014687A (en) Apparatus for preprocessing 3 dimentional image to encode

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees