TW201346839A - Motion de-blurring method based on motion compensation - Google Patents

Motion de-blurring method based on motion compensation Download PDF

Info

Publication number
TW201346839A
TW201346839A TW101116004A TW101116004A TW201346839A TW 201346839 A TW201346839 A TW 201346839A TW 101116004 A TW101116004 A TW 101116004A TW 101116004 A TW101116004 A TW 101116004A TW 201346839 A TW201346839 A TW 201346839A
Authority
TW
Taiwan
Prior art keywords
picture
operation mode
threshold value
processing unit
value
Prior art date
Application number
TW101116004A
Other languages
Chinese (zh)
Other versions
TWI485649B (en
Inventor
zhi-xian Gong
Zhi-Ming Gong
Zheng-Han Shen
quan-jun Gu
Original Assignee
Chang Jung Christian University
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 Chang Jung Christian University filed Critical Chang Jung Christian University
Priority to TW101116004A priority Critical patent/TW201346839A/en
Publication of TW201346839A publication Critical patent/TW201346839A/en
Application granted granted Critical
Publication of TWI485649B publication Critical patent/TWI485649B/zh

Links

Landscapes

  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A motion de-blurring method based on motion compensation is disclosed, which comprises the following steps: (A) calculating pixel differences at the same positions between a current frame and a reference frame, so as to obtain a plurality of pixel difference values; (B) calculating the summation of absolute values of the pixel difference values, so as to output a total error value; (C) according to the total error value, a first threshold value, a second threshold value and a third threshold value, selecting one of a first processing unit, a second processing unit and a third processing unit to perform interpolation processing to the current and reference frames; (D) if the total error value is less than the first threshold value and greater than the second threshold value, the first processing unit executing a one-way compensation operation mode; and (E) if the total error value is less than or equal to the second threshold value and greater than or equal to the third threshold value, the second processing unit executing a bi-directional compensation operation mode.

Description

基於動態補償之去移動模糊之方法Method of moving blur based on dynamic compensation

本發明是有關於一種去移動模糊之方法,特別是指一種基於動態補償之去移動模糊之方法。The invention relates to a method for moving motion blur, in particular to a method for moving motion blur based on dynamic compensation.

隨著科技的發展,顯示技術越來越發達,為了縮小螢幕的體積、減輕重量以及解決耗電等缺點,液晶顯示器(Liquid Crystal Display,LCD)幾乎已經取代了傳統的陰極射線管(Cathode Ray Tube,CRT)螢幕。此外,由於液晶螢幕的尺寸也不斷地增大,為了提升視訊的品質,也逐漸促成了解析度的提高。然而,也因為液晶顯示器的“響應時間長”及“持續型(hold-type)”的驅動方式,加上“人眼視覺暫留”的特性,因此容易造成移動模糊的現象。With the development of technology, display technology is more and more developed. In order to reduce the size of the screen, reduce weight and solve power consumption, liquid crystal display (LCD) has almost replaced the traditional cathode ray tube (Cathode Ray Tube). , CRT) screen. In addition, as the size of the liquid crystal screen continues to increase, in order to improve the quality of the video, the resolution is gradually improved. However, due to the "long response time" and "hold-type" driving method of the liquid crystal display, and the "human eye persistence" characteristic, the phenomenon of movement blur is likely to occur.

為了能夠有效解決影像在高速移動時所產生的移動模糊及增加畫面的流暢度,許多學者們紛紛提出了許多改善移動模糊的方法,例如:加速液晶分子的動作、降低液晶螢幕的響應時間、插黑技術,以及補插畫面技術等。In order to effectively solve the motion blur caused by high-speed image movement and increase the smoothness of the image, many scholars have proposed many methods to improve the motion blur, such as: accelerating the action of liquid crystal molecules, reducing the response time of the liquid crystal screen, and inserting Black technology, as well as supplemental illustration technology.

所謂的補插技術即是在兩畫面之間利用移動補償的技術插入一張補插畫面或插入一張全黑的畫面,以藉此提昇畫面的頻率。由於高品質電視畫面頻率可能是120Hz、240Hz或更高,因此提高畫面頻率(Frame Rate Up-Conversion,FRUC)乃成為目前最常被提出討論的一個研究主題。The so-called interpolation technique is to insert a supplementary illustration surface or insert a black screen by using motion compensation technology between two pictures, thereby increasing the frequency of the picture. Since the high-quality TV picture frequency may be 120 Hz, 240 Hz or higher, Frame Rate Up-Conversion (FRUC) is currently the most frequently discussed subject.

然而,在補插畫面的過程中,因目前演算法還不能達到百分之百精確的補償,容易造成反效果,因而補償出錯誤的畫面。此時卻只能將補插畫面的動作關閉,以避免補插畫面錯誤,但也失去了消除移動模糊的功能,因此液晶顯示器所產生移動模糊的問題還是不能夠完全地解決,故有必要尋求一解決之道。However, in the process of supplementing the illustration surface, because the current algorithm can not achieve 100% accurate compensation, it is easy to cause counter-effects, thus compensating for the wrong picture. At this time, only the action of the supplementary illustration surface can be turned off to avoid the error of the illustration, but the function of eliminating the motion blur is also lost. Therefore, the problem of the movement blur caused by the liquid crystal display cannot be completely solved, so it is necessary to seek A solution.

因此,本發明之目的,即在提供一種基於動態補償之去移動模糊之方法。Accordingly, it is an object of the present invention to provide a method for moving motion blur based on dynamic compensation.

於是,本發明基於動態補償之去移動模糊之方法,適用於一用以處理一當前畫面及一參考畫面的影像處理裝置,以輸出一內插畫面,該影像處理裝置包括一差值計算單元、一差值統計單元、一運算模式選擇單元、一第一處理單元、一第二處理單元及一第三處理單元,該方法包含下列步驟。Therefore, the method for moving motion blur based on dynamic compensation is applicable to an image processing apparatus for processing a current picture and a reference picture to output an inner picture plane, the image processing apparatus including a difference calculation unit, A difference statistics unit, an operation mode selection unit, a first processing unit, a second processing unit and a third processing unit, the method comprising the following steps.

首先,該差值計算單元計算該當前畫面中每一第一像素與對應於每一第一像素位置的參考畫面中每一第二像素之像素差,以得到多個像素差值。First, the difference calculation unit calculates a pixel difference between each first pixel in the current picture and each second pixel in the reference picture corresponding to each first pixel position to obtain a plurality of pixel difference values.

接著,該差值統計單元計算該等像素差值的絕對值之總和,以輸出一誤差總值。Then, the difference statistic unit calculates the sum of the absolute values of the pixel difference values to output an error total value.

接著,該運算模式選擇單元依據該誤差總值和一第一門檻值、一第二門檻值及一第三門檻值數值之間的關係,選擇該第一處理單元、第二處理單元及第三處理單元的其中一者對該當前畫面及該參考畫面間進行內插處理,其中該第一門檻值大於該第二門檻值,且該第二門檻值大於該第三門檻值。Then, the operation mode selection unit selects the first processing unit, the second processing unit, and the third according to the relationship between the total error value and a first threshold value, a second threshold value, and a third threshold value. One of the processing units performs an interpolation process between the current picture and the reference picture, wherein the first threshold value is greater than the second threshold value, and the second threshold value is greater than the third threshold value.

接著,當該誤差總值小於該第一門檻值且大於該第二門檻值時,則該運算模式選擇單元選擇該第一處理單元,且繼而該第一處理單元以一單向補償運算模式對該當前畫面及參考畫面間進行內插處理,以產生該內插畫面。Then, when the total error value is less than the first threshold value and greater than the second threshold value, the operation mode selection unit selects the first processing unit, and then the first processing unit is in a one-way compensation operation mode pair. Interpolation processing is performed between the current picture and the reference picture to generate the inner picture plane.

當該誤差總值小於或等於該第二門檻值且大於或等於該第三門檻值時,則該運算模式選擇單元選擇該第二處理單元,且繼而該第二處理單元以一雙向補償運算模式對該當前畫面及該參考畫面間進行內插處理,以產生該內插畫面。When the total error value is less than or equal to the second threshold value and greater than or equal to the third threshold value, the operation mode selection unit selects the second processing unit, and then the second processing unit adopts a bidirectional compensation operation mode. Interpolating processing between the current picture and the reference picture to generate the inner picture plane.

本發明之功效在於,透過該運算模式選擇單元將該當前畫面與該參考畫面兩張畫面間的該誤差總值與該第一、二、三門檻值進行比較,從第一、二、三處理單元的其中一者,選出最適合用來做內插的補償運算模式,因而解決單獨使用一項補償運算模式無法兼顧各種影像之類型的問題。The effect of the present invention is that the total value of the error between the current picture and the two pictures of the reference picture is compared with the first, second, and third threshold values by the operation mode selection unit, and the first, second, and third thresholds are processed. One of the units selects the compensation operation mode that is most suitable for interpolation, and thus solves the problem that a compensation operation mode alone cannot balance the types of various images.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一個較佳實施例的詳細說明中,將可清楚的呈現。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.

參閱圖1與圖2,為本發明基於動態補償之去移動模糊之方法之較佳實施例,該基於動態補償之去移動模糊之方法係透過一影像處理裝置2來實施。Referring to FIG. 1 and FIG. 2, a preferred embodiment of the method for removing motion blur based on dynamic compensation according to the present invention is implemented by an image processing apparatus 2.

該影像處理裝置2用以處理一當前畫面(Current Frame)11與一參考畫面(Reference Frame)12,並輸出一內插畫面(Interpolated Frame)13。該影像處理裝置2包括一差值計算單元21、一差值統計單元22、一運算模式選擇單元23元、一第一處理單元24、一第二處理單元25,以及一第三處理單元26。The image processing device 2 is configured to process a current frame (Current Frame) 11 and a reference frame (Reference Frame) 12, and output an Interpolated Frame 13. The image processing device 2 includes a difference calculation unit 21, a difference statistics unit 22, an operation mode selection unit 23, a first processing unit 24, a second processing unit 25, and a third processing unit 26.

該差值計算單元21用以接收影像資料為亮度-色度之色彩空間(YUV Color Space)之該當前畫面11與該參考畫面12,其中該當前畫面11與該參考畫面12係解析度為252×288之一訊框(Frame),且其分別包括多個像素(Pixel)。每一像素具有相對應的像素值,該像素值具有亮度值(Luma)或者色度值(Chroma),而該差值計算單元21還用以依據該當前畫面11中每一第一像素與對應於每一第一像素相同位置的參考畫面12中每一像素,計算出兩張畫面間的像素差211,繼而將該等像素差211輸出至該差值統計單元22中。The difference calculation unit 21 is configured to receive the current picture 11 and the reference picture 12 of the color space of the luminance-chrominance (YUV Color Space), wherein the current picture 11 and the reference picture 12 have a resolution of 252. × 288 is a frame, and it includes a plurality of pixels (Pixel), respectively. Each of the pixels has a corresponding pixel value, and the pixel value has a luminance value (Luma) or a chroma value (Chroma), and the difference calculation unit 21 is further configured to respond to each of the first pixels in the current picture 11 The pixel difference 211 between the two pictures is calculated for each pixel in the reference picture 12 at the same position of each first pixel, and then the pixel difference 211 is output to the difference value unit 22.

該差值統計單元22用以計算該等像素差211值的絕對值之總和,並將經由計算所得到的一誤差總值221傳送給該運算模式選擇單元23。The difference statistic unit 22 is configured to calculate the sum of the absolute values of the pixel difference 211 values, and transmit the error total value 221 obtained through the calculation to the operation mode selecting unit 23.

該運算模式選擇單元23依據該誤差總值221和一第一門檻值、一第二門檻值及一第三門檻值數值之間的關係,選擇該第一、二、三處理單元(24、25、26)的其中一者對該當前畫面11及該參考畫面12間進行內插處理,其中該第一門檻值大於該第二門檻值,且該第二門檻值大於該第三門檻值。The operation mode selection unit 23 selects the first, second, and third processing units (24, 25) according to the relationship between the error total value 221 and a first threshold value, a second threshold value, and a third threshold value. And one of the 26) interpolating the current picture 11 and the reference picture 12, wherein the first threshold value is greater than the second threshold value, and the second threshold value is greater than the third threshold value.

在本較較佳實施例中,以解析度為252×288之訊框為例,該第一門檻值為90000、該第二門檻值為60000,以及該第三門檻值為10000,其中該等門檻值之數值係正比於該訊框之解析度。In the preferred embodiment, the frame having a resolution of 252×288 is taken as an example. The first threshold is 90000, the second threshold is 60000, and the third threshold is 10000. The value of the threshold is proportional to the resolution of the frame.

於是,該運算模式選擇單元23藉由判定該誤差總值221小於該第一門檻值且大於該第二門檻值成立的條件之下,選擇該第一處理單元24,且進而該第一處理單元24以一單向補償運算模式對該當前畫面11及參考畫面12進行處理。Therefore, the operation mode selection unit 23 selects the first processing unit 24 and further the first processing unit by determining that the error total value 221 is smaller than the first threshold value and greater than the second threshold value. The current picture 11 and the reference picture 12 are processed in a one-way compensation operation mode.

參閱圖3與圖4,該單向補償運算模式係先將該當前畫面11分割成多個大小相同且彼此不重疊的巨區塊(Macro Block,MB),並經由該當前畫面11中之一巨區塊MBCur與對應於該巨區塊MBCur之座標位置的該參考畫面12在一預定義搜尋範圍(Search Range)內,經由移動估算(Motion Estimation)法去利用區塊比對(Block Matching)的方式在該參考畫面12中搜尋出最相似的一巨區塊MBRefReferring to FIG. 3 and FIG. 4 , the unidirectional compensation operation mode first divides the current picture 11 into a plurality of macro blocks (Macs, MBs) of the same size and not overlapping each other, and passes through one of the current pictures 11 . The macro block MB Cur and the reference picture 12 corresponding to the coordinate position of the macro block MB Cur are used in a predefined search range to utilize the block comparison (Block) via the Motion Estimation method (Block) The matching method searches for the most similar macroblock MB Ref in the reference picture 12.

在本較佳實施例中,該搜尋範圍係為採用全域搜尋(Full Search)的方式針對該搜尋範圍中各個像素座標位置進行區塊比對,並採用平均絕對值差(Mean Absolute Difference)之運算方式作為相似巨區塊之選擇的依據,該平均絕對值差如以下方程式(1)所示:In the preferred embodiment, the search range is a block search for each pixel coordinate position in the search range by means of a full search, and the operation of the mean absolute difference (Mean Absolute Difference) is used. The method is based on the selection of similar giant blocks, and the average absolute value difference is as shown in the following equation (1):

其中,among them,

f K :當前畫面11; f K : current picture 11;

f K-T :參考畫面12;及 f KT : reference picture 12; and

MN:大小為M×N之巨區塊。MN: A giant block of size M×N.

舉例來說,如圖3所示,在求出對應於該當前畫面11中之該巨區塊MBCur之參考畫面12中該最相似的巨區塊MBRef後,可直接藉由該巨區塊MBCur及巨區塊MBRef之相對座標位置差去計算出移動向量MV(Motion Vector,MV),假設該當前畫面11中的巨區塊MBCur座標位置為(x+i,y+j)且該參考畫面12中最相似的巨區塊MBRef座標位置為(x,y),則該移動向量MV則為(-i,-j)。For example, as shown in FIG. 3, after finding the most similar macroblock MB Ref in the reference picture 12 corresponding to the macro block MB Cur in the current picture 11, the macro area can be directly used. The relative coordinate position difference between the block MB Cur and the macro block MB Ref is used to calculate the motion vector MV (Motion Vector, MV), assuming that the macro block MB Cur coordinate position in the current picture 11 is (x+i, y+j And the most similar macroblock MB Ref coordinate position in the reference picture 12 is (x, y), then the motion vector MV is (-i, -j).

參閱圖4,在經由移動估算求出移動向量MV之後,接下來在該單向補償運算模式中係再透過移動補償(Motion Compensation,MC)演算法求出該當前畫面11與該參考畫面12之中間狀態,其中該內插畫面13之巨區塊MBInt為該當前畫面11之巨區塊MBCur與該參考畫面12之巨區塊MBRef所對應的巨區塊,該內插畫面13之巨區塊MBInt係由其移動向量MV除以二所計算出來。Referring to FIG. 4, after the motion vector MV is obtained through the motion estimation, the current picture 11 and the reference picture 12 are obtained by the motion compensation (MC) algorithm in the unidirectional compensation operation mode. An intermediate state, wherein the macro block MB Int of the inner illustration surface 13 is a macro block corresponding to the macro block MB Cur of the current picture 11 and the macro block MB Ref of the reference picture 12, and the inner picture surface 13 The giant block MB Int is calculated by dividing its motion vector MV by two.

在本較佳實施例中,為了解決該單向補償運算模式過程中容易出現之破洞現象,該內插畫面13係為透過一移動向量表(Motion Vector Map)將該等巨區塊MBInt重新排列重建而來,該內插畫面13亦可表示為:In the preferred embodiment, in order to solve the hole phenomenon which is easy to occur in the one-way compensation operation mode, the inner illustration surface 13 is such that the macro block MB Int is transmitted through a motion vector map (Motion Vector Map). Rearranged and reconstructed, the inner illustration surface 13 can also be expressed as:

I:內插畫面13; I : inside illustration face 13;

x:當前畫面11之水平座標位置; x : the horizontal coordinate position of the current screen 11;

y:當前畫面11之垂直座標位置; y : the vertical coordinate position of the current screen 11;

M V x :水平移動向量;及 M V x : horizontal movement vector; and

MV y :垂直移動向量。 MV y : Vertical motion vector.

此外,參閱圖1與圖5,該運算模式選擇單元23藉由判定該誤差總值221小於或等於該第二門檻值且大於或等於該第三門檻值成立的條件之下,選擇該第二處理單元25,且進而該第二處理單元25以一雙向補償運算模式對該當前畫面11及參考畫面12進行處理。In addition, referring to FIG. 1 and FIG. 5, the operation mode selecting unit 23 selects the second by determining that the error total value 221 is less than or equal to the second threshold value and is greater than or equal to the third threshold value. The processing unit 25, and further the second processing unit 25, processes the current picture 11 and the reference picture 12 in a bidirectional compensation operation mode.

該雙向補償運算模式包含一前向補償演算法及一後向補償演算法,且該後向補償演算法所執行的程序之細節部分類似於該單向補償運算模式,該後向補償演算法同樣也採用全域搜尋方式去透過移動估算演算法進行區塊的比對,繼而得到移動向量MV,並經由移動補償重建出基於後向補償之內插畫面13。The bidirectional compensation operation mode includes a forward compensation algorithm and a backward compensation algorithm, and the details of the program executed by the backward compensation algorithm are similar to the one-way compensation operation mode, and the backward compensation algorithm is also the same The global search method is also used to perform block alignment through the motion estimation algorithm, and then the motion vector MV is obtained, and the inner graph surface 13 based on backward compensation is reconstructed via motion compensation.

然而,該前向補償運算模式之作法同樣係先將該參考畫面12分割成多個大小相同且彼此不重疊的巨區塊,並經由該參考畫面12中之巨區塊MBRef在該當前畫面11之全域搜尋範圍中,利用移動估算演算法中以區塊比對的方式,去找出與該參考畫面12中之巨區塊MBRef最相似的該當前畫面11中之巨區塊MBCur,進而推算出移動向量MV,同樣再經由移動補償演算法求出該內插畫面13之巨區塊MBInt,進而可重建出基於前向補償之內插畫面13。However, the forward compensation operation mode is also first to divide the reference picture 12 into a plurality of macro blocks of the same size and not overlapping each other, and the current picture is displayed via the macro block MB Ref in the reference picture 12 . global search range of 11, the embodiment using the motion estimation algorithm to the block matching, to find out the current picture and the reference picture macroblock MB Ref. 12 the most similar macroblock of 11 MB Cur Then, the motion vector MV is derived, and the macroblock MB Int of the inner illustration plane 13 is also obtained through the motion compensation algorithm, and the inner graph surface 13 based on the forward compensation can be reconstructed.

因此,在該雙向補償運算模式下的內插畫面13可由前向補償及後向補償之內插畫面13之計算求得,即如以下方程式(2)所示:Therefore, the inner illustration surface 13 in the two-way compensation operation mode can be obtained from the calculation of the inner surface 13 of the forward compensation and the backward compensation, as shown in the following equation (2):

其中,among them,

I:內插畫面13; I : inside illustration face 13;

x:內插畫面13之水平座標位置; x : the horizontal coordinate position of the inner illustration surface 13;

y:內插畫面13之垂直座標位置; y : the vertical coordinate position of the inner illustration surface 13;

M V x :水平移動向量;及 M V x : horizontal movement vector; and

MV y :垂直移動向量 MV y : vertical motion vector

I(x+,y+,t-1):基於前向預估之內插畫面13 I ( x + , y + , t -1): based on the forward estimate within the illustration plane 13

I(x-,y-,t+1):基於後向預估之內插畫面13 I ( x - , y - , t +1): based on the backward estimate within the illustration plane 13

在本較佳實施例中,為了減少進行該雙向補償運算模式過程中容易出現之區塊效應,則於該前向、後向補償演算法進行區塊比對的時候,採用一基於重疊區塊之移動估計演算法(Overlapped Block-Based Motion Estimation,OBME),並以以巨區塊內之中心像素不超出原巨區塊之範圍為準則作擴大範圍之比對。In the preferred embodiment, in order to reduce the block effect that is easy to occur during the bidirectional compensation operation mode, when the forward and backward compensation algorithms are used for block comparison, an overlap based block is used. Overlapped Block-Based Motion Estimation (OBME), and the ratio of the extent of the central pixel in the macroblock does not exceed the range of the original giant block.

此外,參閱圖1,該運算模式選擇單元23藉由判定該誤差總值221大於或等於該第一門檻值,或者該誤差總值221小於該第三門檻值成立的條件之下,選擇該第三處理單元26,且進而該第三處理單元26以一畫面重複運算模式對當前畫面11及參考畫面12間進行內插處理,該畫面重複運算模式係以複製該參考畫面12,並由該複製的參考畫面12作為該內插畫面13。In addition, referring to FIG. 1, the operation mode selecting unit 23 selects the first condition by determining that the error total value 221 is greater than or equal to the first threshold value, or the error total value 221 is less than the third threshold value. The third processing unit 26, and further the third processing unit 26 interpolates between the current picture 11 and the reference picture 12 in a picture repeat operation mode, the picture repeat operation mode is to copy the reference picture 12, and the copy is performed by the copy The reference picture 12 is used as the inner picture plane 13.

參閱圖1與圖2,本發明之基於動態補償之去移動模糊之方法之較佳實施例,適用於該用以處理該當前畫面11及該參考畫面12的影像處理裝置2,以輸出該內插畫面13。該方法包含下列步驟:Referring to FIG. 1 and FIG. 2, a preferred embodiment of the method for moving motion blur based on dynamic compensation is applied to the image processing apparatus 2 for processing the current picture 11 and the reference picture 12 to output the inner image. Illustration face 13. The method consists of the following steps:

首先,如步驟S31所示,該影像處理裝置2讀取影像序列(圖未示)之亮度-色度(YUV)值。First, as shown in step S31, the image processing device 2 reads the luminance-chrominance (YUV) value of the video sequence (not shown).

接著,如步驟S32所示,輸入該當前畫面11與參考畫面12至該影像處理裝置2,其中該當前畫面11為該影像序列中的第k個訊框,而該參考畫面12為該影像序列中的第k-1個訊框。Then, as shown in step S32, the current picture 11 and the reference picture 12 are input to the image processing device 2, wherein the current picture 11 is the kth frame in the image sequence, and the reference picture 12 is the image sequence. The k-1th frame in the middle.

接著,如步驟S33所示,該差值計算單元21計算該當前畫面11中每一第一像素與對應於每一第一像素位置的參考畫面12中每一第二像素之像素差211,以得到該等像素差211值。Then, as shown in step S33, the difference calculating unit 21 calculates a pixel difference 211 between each first pixel in the current picture 11 and each second pixel in the reference picture 12 corresponding to each first pixel position, to The pixel difference 211 value is obtained.

接著,如步驟S34所示,該差值統計單元22計算該等像素差211值的絕對值之總和,以輸出表示該當前畫面11與該參考畫面12兩者間之畫面變化的量化結果之該誤差總值221。Next, as shown in step S34, the difference statistic unit 22 calculates the sum of the absolute values of the values of the pixel differences 211 to output a quantized result indicating the change of the picture between the current picture 11 and the reference picture 12. The total error is 221.

接著,如步驟S35所示,該運算模式選擇單元23依據該誤差總值221和該第一、第二、第三門檻值門檻值之間的數值關係,選擇該第一、二、三處理單元(24、25、26)的其中一者對該當前畫面11及該參考畫面12間進行內插處理,其中該第一門檻值大於一該第二門檻值,且該第二門檻值大於該第三門檻值。Then, as shown in step S35, the operation mode selecting unit 23 selects the first, second, and third processing units according to the numerical relationship between the error total value 221 and the first, second, and third threshold threshold values. One of (24, 25, 26) interpolating between the current picture 11 and the reference picture 12, wherein the first threshold is greater than a second threshold, and the second threshold is greater than the first Three thresholds.

繼而,如步驟S36所示,當該運算模式選擇單元23藉由判定該誤差總值221小於該第一門檻值且大於該第二門檻值時,表示該當前畫面11與該參考畫面12之間的畫面變化略大,或者光線變化較強烈,因此採用複雜度較低的演算法,則該運算模式選擇單元23選擇該第一處理單元24,且繼而該第一處理單元24以該單向補償運算模式對該當前畫面11及參考畫面12進行處理,以產生該內插畫面13。Then, as shown in step S36, when the operation mode selection unit 23 determines that the error total value 221 is smaller than the first threshold and greater than the second threshold, it indicates that the current picture 11 and the reference picture 12 are The picture changes slightly, or the light changes are relatively strong, so the algorithm with lower complexity is used, the operation mode selecting unit 23 selects the first processing unit 24, and then the first processing unit 24 uses the one-way compensation. The operation mode processes the current picture 11 and the reference picture 12 to generate the inner picture plane 13.

或者,如步驟S37所示,當該運算模式選擇單元23藉由判定該誤差總值221小於或等於該第二門檻值且大於或等於該第三門檻值時,表示該當前畫面11為一平緩移動畫面,則該運算模式選擇單元23選擇該第二處理單元25,且繼而該第二處理單元25結合該雙向補償運算模式及該基於重疊區塊之移動估計演算法,對該當前畫面11及參考畫面12進行處理,以產生該內插畫面13。Alternatively, as shown in step S37, when the operation mode selection unit 23 determines that the error total value 221 is less than or equal to the second threshold value and is greater than or equal to the third threshold value, it indicates that the current picture 11 is a gentle Moving the picture, the operation mode selecting unit 23 selects the second processing unit 25, and then the second processing unit 25 combines the bidirectional compensation operation mode and the overlap block based motion estimation algorithm to the current picture 11 and The reference picture 12 is processed to generate the inner picture plane 13.

或者,如步驟S38所示,當該運算模式選擇單元23藉由判定該誤差總值221大於或等於該第一門檻值,或者該誤差總值221小於該第三門檻值時,該第三處理單元26以該畫面重複運算模式對該當前畫面11及該參考畫面12進行處理,並透過該畫面重複運算模式複製該參考畫面12以形成該內插畫面13。Alternatively, as shown in step S38, when the operation mode selecting unit 23 determines that the error total value 221 is greater than or equal to the first threshold value, or the error total value 221 is less than the third threshold value, the third processing The unit 26 processes the current picture 11 and the reference picture 12 in the picture repeat operation mode, and copies the reference picture 12 through the picture repeat operation mode to form the inner picture plane 13.

在本較佳實施例中,在該誤差總值221大於或等於該第一門檻值時,表示該當前畫面11為一轉場畫面;且在該誤差總值221小於該第三門檻值時,表示該當前畫面11為一靜態畫面。In the preferred embodiment, when the error total value 221 is greater than or equal to the first threshold value, the current picture 11 is a transition picture; and when the error total value 221 is less than the third threshold value, Indicates that the current picture 11 is a static picture.

繼而,如步驟S39所示,將步驟S36~S38其中一者所產生之該內差畫面輸出,繼而插入到該當前畫面11及參考畫面12之連續兩張畫面中。Then, as shown in step S39, the internal difference picture generated by one of the steps S36 to S38 is output, and then inserted into two consecutive pictures of the current picture 11 and the reference picture 12.

如表一所示,為非專利之學術文獻所提出演算法的PSNR值統計;其中,在文獻[1]中所提出的演算法為全域搜尋並採用雙向補償運算之方法,其PSNR值平均約為29.136。而文獻[2]則加入了修正移動向量的作法使PSNR值有些許提高,但效果仍舊有限。而在文獻[3]至[6]中則逐步加入了基於重疊區塊之移動估計演算法和修正移動向量的作法,此作法雖然逐漸提高PSNR值,但演算法複雜度也隨之提高。且利用對稱性動態估測的缺點為,在移動物體與背景顏色相近時,可能會因找不到正確的移動向量而在補插時容易補償出錯誤的畫面。且在文獻[7]中則採用前向補償運算之方法,其PSNR值平均約為29.083。As shown in Table 1, the PSNR value statistics of the algorithm proposed in the non-patent academic literature; wherein the algorithm proposed in the literature [1] is a global search and a bidirectional compensation operation method, the average PSNR value is about Is 29.136. However, the literature [2] added a modified motion vector to make the PSNR value slightly improved, but the effect is still limited. In the literature [3] to [6], the mobile estimation algorithm based on overlapping blocks and the modified motion vector are gradually added. Although the PSNR value is gradually improved, the complexity of the algorithm is also improved. The disadvantage of using symmetry dynamic estimation is that when the moving object is close to the background color, it may be easy to compensate for the wrong picture during the interpolation because the correct motion vector cannot be found. In the literature [7], the method of forward compensation operation is adopted, and the PSNR value is about 29.083 on average.

因此本較佳實施例所提出的架構則為全域搜尋搭配影像序列之變化量輔以該第一、二、三門檻值做為判斷的依據,以做出最精確的自適應性補償。如表一所示,經過比較之後發現,本發明基於動態補償之去移動模糊之方法在各種不同的測試影片中皆能有效提高其PSNR值,且大部分優於各文獻所提之演算法。Therefore, the architecture proposed by the preferred embodiment is to use the first, second, and third thresholds as the basis for determining the variation of the global search collocation image sequence to make the most accurate adaptive compensation. As shown in Table 1, after comparison, it is found that the method based on dynamic compensation of the moving motion blur can effectively improve the PSNR value in various test films, and most of them are better than the algorithms proposed in each document.

表一中所提及的非專利之學術文獻:Non-patent academic literature mentioned in Table 1:

[1] S. H. Lee,Y. C. Shin,S. Yang,H. H. Moon,and R. H. Park,“Adaptive motion-compensated interpolation for frame rate up-conversion,”Consumer Electronics,IEEE Transactions on,vol. 48,no. 3,pp. 444-450,2002.[1] SH Lee, YC Shin, S. Yang, HH Moon, and RH Park, "Adaptive motion-compensated interpolation for frame rate up-conversion," Consumer Electronics, IEEE Transactions on, vol. 48, no. 3, pp 444-450, 2002.

[2] J. Zhang,L. Sun,S. Yang,and Y. Zhong,“Position prediction motion-compensated interpolation for frame rate up-conversion using temporal modeling,”in Image Processing,2005. ICIP 2005. IEEE International Conference on,2005,vol. 1,p. I-53.[2] J. Zhang, L. Sun, S. Yang, and Y. Zhong, “Position prediction motion-compensated interpolation for frame rate up-conversion using temporal modeling,” in Image Processing, 2005. ICIP 2005. IEEE International Conference On,2005,vol. 1,p. I-53.

[3] T. S. Chong,O. C. Au,W. S. Chau,and T. W. Chan,“Multiple objective frame rate up conversion,”in Multimedia and Expo,2005. ICME 2005. IEEE International Conference on,2005,pp. 253-256.[3] T. S. Chong, O. C. Au, W. S. Chau, and T. W. Chan, “Multiple objective frame rate up conversion,” in Multimedia and Expo, 2005. ICME 2005. IEEE International Conference on, 2005, pp. 253-256.

[4] K. Hilman,H. W. Park,and Y. Kim,“Using motion-compensated frame-rate conversion for the correction of 3: 2 pulldown artifacts in video sequences,”Circuits and Systems for Video Technology,IEEE Transactions on,vol. 10,no. 6,pp. 869-877,2000.[4] K. Hilman, HW Park, and Y. Kim, "Using motion-compensated frame-rate conversion for the correction of 3: 2 pulldown artifacts in video sequences," Circuits and Systems for Video Technology, IEEE Transactions on, vol 10, no. 6, pp. 869-877, 2000.

[5] S. H. Lee,O. Kwon,and R. H. Park,“Weighted-adaptive motion-compensated frame rate up-conversion,”Consumer Electronics,IEEE Transactions on,vol. 49,no. 3,pp. 485-492,2003.[5] SH Lee, O. Kwon, and RH Park, "Weighted-adaptive motion-compensated frame rate up-conversion," Consumer Electronics, IEEE Transactions on, vol. 49, no. 3, pp. 485-492, 2003 .

[6] Y. T. Yang,Y. S. Tung,and J. L. Wu,“Quality enhancement of frame rate up-converted video by adaptive frame skip and reliable motion extraction,”Circuits and Systems for Video Technology,IEEE Transactions on,vol. 17,no. 12,pp. 1700-1713,2007.[6] YT Yang, YS Tung, and JL Wu, "Quality enhancement of frame rate up-converted video by adaptive frame skip and reliable motion extraction," Circuits and Systems for Video Technology, IEEE Transactions on, vol. 17, no. 12, pp. 1700-1713, 2007.

[7] B. W. Jeon,G. I. Lee,S. H. Lee,and R. H. Park,“Coarse-to-fine frame interpolation for frame rate up-conversion using pyramid structure,”Consumer Electronics,IEEE Transactions on,vol. 49,no. 3,pp. 499-508,2003.[7] BW Jeon, GI Lee, SH Lee, and RH Park, "Coarse-to-fine frame interpolation for frame rate up-conversion using pyramid structure," Consumer Electronics, IEEE Transactions on, vol. 49, no. 3, Pp. 499-508, 2003.

綜上所述,由於本較佳實施例透過判斷影像序列中該當前畫面11與該參考畫面12之間的畫面變化量,並引用該第一、二、三門檻值且適時搭配補插技術做自動且正確的補償,因此在考慮不同程度畫面變化所形成的該內插畫面13時可避免習知所造成的問題,繼而減少液晶顯示器上容易產生的移動模糊及降低輸入延遲,故確實能達成本發明之目的。In summary, the preferred embodiment of the present invention determines the amount of picture change between the current picture 11 and the reference picture 12 in the video sequence, and refers to the first, second, and third thresholds, and timely complements the interpolation technique. Automatic and correct compensation, so that the problem caused by the conventional image surface 13 formed by varying degrees of picture change can be avoided, and then the movement blur easily generated on the liquid crystal display and the input delay can be reduced, so that it can be achieved. The object of the invention.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

11...當前畫面11. . . Current picture

12...參考畫面12. . . Reference picture

13...內插畫面13. . . Inside illustration

2...影像處理裝置2. . . Image processing device

21...差值計算單元twenty one. . . Difference calculation unit

211...像素差211. . . Pixel difference

22...差值統計單元twenty two. . . Difference statistics unit

221...誤差總值221. . . Total error

23...運算模式選擇單元twenty three. . . Operation mode selection unit

24...第一處理單元twenty four. . . First processing unit

25...第二處理單元25. . . Second processing unit

26...第三處理單元26. . . Third processing unit

S31~S39...步驟S31~S39. . . step

MV...移動向量MV. . . Moving vector

MBCur...當前畫面巨區塊MB Cur . . . Current screen giant block

MBRef...參考畫面巨區塊MB Ref . . . Reference screen giant block

MBInt...內插畫面巨區塊MB Int . . . Inside illustration giant block

圖1是一方塊圖,說明用以實施本發明基於動態補償之去移動模糊之方法的較佳實施例之裝置;1 is a block diagram showing an apparatus for implementing a preferred embodiment of the method for moving motion blur based on dynamic compensation of the present invention;

圖2是一流程圖,說明本發明基於動態補償之去移動模糊之方法的較佳實施例;2 is a flow chart showing a preferred embodiment of the method for removing motion blur based on dynamic compensation according to the present invention;

圖3是一示意圖,說明該較佳實施例中一當前畫面之一巨區塊在一參考畫面中的一搜尋範圍內比對出一最相似的巨區塊;3 is a schematic diagram showing that a macroblock of a current picture in the preferred embodiment compares a most similar macroblock in a search range in a reference picture;

圖4是一示意圖,說明該較佳實施例中之一單向補償運算模式;以及4 is a schematic diagram showing a one-way compensation operation mode in the preferred embodiment;

圖5是一示意圖,說明該較佳實施例中之一雙向補償運算模式。Figure 5 is a schematic diagram showing a bidirectional compensation operation mode in the preferred embodiment.

S31~S39...步驟S31~S39. . . step

Claims (10)

一種基於動態補償之去移動模糊之方法,適用於一用以處理一當前畫面及一參考畫面的影像處理裝置,以輸出一內插畫面,該影像處理裝置包括一差值計算單元、一差值統計單元、一運算模式選擇單元、一第一處理單元、一第二處理單元及一第三處理單元,該方法包含下列步驟:(A)該差值計算單元計算該當前畫面中每一第一像素與對應於每一第一像素位置的參考畫面中每一第二像素之像素差,以得到多個像素差值;(B)該差值統計單元計算該等像素差值的絕對值之總和,以輸出一誤差總值;(C)該運算模式選擇單元依據該誤差總值和一第一門檻值、一第二門檻值及一第三門檻值數值之間的關係,選擇該第一處理單元、第二處理單元及第三處理單元的其中一者對該當前畫面及該參考畫面間進行內插處理,其中該第一門檻值大於該第二門檻值,且該第二門檻值大於該第三門檻值;(D)當該誤差總值小於該第一門檻值且大於該第二門檻值時,則該運算模式選擇單元選擇該第一處理單元,且繼而該第一處理單元以一單向補償運算模式對該當前畫面及參考畫面間進行內插處理,以產生該內插畫面;及(E)當該誤差總值小於或等於該第二門檻值且大於或等於該第三門檻值時,則該運算模式選擇單元選擇該第二處理單元,且繼而該第二處理單元以一雙向補償運算模式對該當前畫面及該參考畫面間進行內插處理,以產生該內插畫面。A method for removing motion blur based on dynamic compensation is applicable to an image processing apparatus for processing a current picture and a reference picture to output an internal illustration surface, the image processing apparatus comprising a difference calculation unit and a difference a statistical unit, an operation mode selection unit, a first processing unit, a second processing unit, and a third processing unit, the method comprising the following steps: (A) the difference calculation unit calculates each first in the current picture a pixel is different from a pixel of each second pixel in the reference picture corresponding to each first pixel position to obtain a plurality of pixel difference values; (B) the difference statistical unit calculates a sum of absolute values of the pixel difference values And outputting an error total value; (C) the operation mode selecting unit selects the first processing according to a relationship between the total error value and a first threshold value, a second threshold value, and a third threshold value Interpolating the current picture and the reference picture by one of the unit, the second processing unit, and the third processing unit, wherein the first threshold is greater than the second threshold, and the second gate The value is greater than the third threshold value; (D) when the total error value is less than the first threshold value and greater than the second threshold value, then the operation mode selection unit selects the first processing unit, and then the first processing The unit interpolates the current picture and the reference picture in a one-way compensation operation mode to generate the inner picture plane; and (E) when the total error value is less than or equal to the second threshold value and greater than or equal to the When the third threshold is used, the operation mode selection unit selects the second processing unit, and then the second processing unit interpolates the current picture and the reference picture in a bidirectional compensation operation mode to generate the inner Illustration. 根據申請專利範圍第1項所述之基於動態補償之去移動模糊之方法,其中在該步驟(D)中,該第一處理單元在執行該單向補償運算模式過程中係結合一全域搜尋法對該當前畫面及參考畫面間進行內插處理。The method for moving motion blur based on dynamic compensation according to claim 1, wherein in the step (D), the first processing unit combines a global search method in performing the one-way compensation operation mode Interpolation processing is performed between the current picture and the reference picture. 根據申請專利範圍第1項所述之基於動態補償之去移動模糊之方法,其中在該步驟(E)中,該第二處理單元在執行該雙向補償運算模式過程中係結合一全域搜尋法對該當前畫面及參考畫面間進行內插處理。The method for moving motion blur based on dynamic compensation according to claim 1, wherein in the step (E), the second processing unit combines a global search method pair in performing the two-way compensation operation mode Interpolation processing is performed between the current picture and the reference picture. 根據申請專利範圍第1項所述之基於動態補償之去移動模糊之方法,其中在該步驟(E)中,該第二處理單元係結合該雙向補償運算模式及一基於重疊區塊之移動估計演算法,對當前畫面及該參考畫面間進行內插處理。The method for moving motion blur based on dynamic compensation according to claim 1, wherein in the step (E), the second processing unit combines the bidirectional compensation operation mode and a motion estimation based on overlapping blocks The algorithm performs interpolation processing between the current picture and the reference picture. 根據申請專利範圍第1項所述之基於動態補償之去移動模糊之方法,還包含步驟(F),當該誤差總值大於或等於該第一門檻值,或者該誤差總值小於該第三門檻值時,該第三處理單元以一畫面重複運算模式於當前畫面及該參考畫面間進行內插處理,並且該畫面重複運算模式透過對該參考畫面進行複製,以產生該內插畫面。The method for removing motion blur based on dynamic compensation according to claim 1 of the patent application, further comprising the step (F), when the total value of the error is greater than or equal to the first threshold, or the total value of the error is smaller than the third When the threshold is set, the third processing unit performs interpolation processing between the current picture and the reference picture in a picture repeat operation mode, and the picture repeat operation mode copies the reference picture to generate the inner picture plane. 根據申請專利範圍第5項所述之基於動態補償之去移動模糊之方法,其中當該運算模式選擇單元藉由判定該誤差總值大於或等於該第一門檻值時,表示該當前畫面為一轉場畫面。The method for moving motion blur based on dynamic compensation according to claim 5, wherein the operation mode selection unit indicates that the current picture is one by determining that the total error value is greater than or equal to the first threshold value. Transition screen. 根據申請專利範圍第5項所述之基於動態補償之去移動模糊之方法,其中當該運算模式選擇單元藉由判定該誤差總值小於或等於該第二門檻值且大於或等於該第三門檻值時,表示該當前畫面為一平緩移動畫面。The method for moving motion blur based on dynamic compensation according to claim 5, wherein the operation mode selection unit determines that the error total value is less than or equal to the second threshold value and greater than or equal to the third threshold When the value is displayed, it indicates that the current picture is a smooth moving picture. 根據申請專利範圍第5項所述之基於動態補償之去移動模糊之方法,其中當該運算模式選擇單元藉由判定該誤差總值小於該第三門檻值時,表示該當前畫面為一靜態畫面。The method for moving motion blur based on dynamic compensation according to claim 5, wherein the operation mode selection unit indicates that the current picture is a static picture by determining that the total error value is smaller than the third threshold value. . 根據申請專利範圍第5項所述之基於動態補償之去移動模糊之方法,其中該當前畫面及該參考畫面的影像資料係為亮度-色度之色彩空間之影像資料。The method for moving motion blur based on dynamic compensation according to claim 5, wherein the image data of the current picture and the reference picture is image data of a color space of luminance-chroma. 根據申請專利範圍第1項所述之基於動態補償之去移動模糊之方法,其中該當前畫面及該參考畫面的影像資料係為亮度-色度之色彩空間之影像資料。The method for moving motion blur based on dynamic compensation according to claim 1, wherein the image data of the current picture and the reference picture is image data of a color space of luminance-chrominance.
TW101116004A 2012-05-04 2012-05-04 Motion de-blurring method based on motion compensation TW201346839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101116004A TW201346839A (en) 2012-05-04 2012-05-04 Motion de-blurring method based on motion compensation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101116004A TW201346839A (en) 2012-05-04 2012-05-04 Motion de-blurring method based on motion compensation

Publications (2)

Publication Number Publication Date
TW201346839A true TW201346839A (en) 2013-11-16
TWI485649B TWI485649B (en) 2015-05-21

Family

ID=49990731

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101116004A TW201346839A (en) 2012-05-04 2012-05-04 Motion de-blurring method based on motion compensation

Country Status (1)

Country Link
TW (1) TW201346839A (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7020201B2 (en) * 2002-11-20 2006-03-28 National Chiao Tung University Method and apparatus for motion estimation with all binary representation
US7646817B2 (en) * 2003-03-28 2010-01-12 Microsoft Corporation Accelerating video decoding using a graphics processing unit
US8553776B2 (en) * 2004-07-21 2013-10-08 QUALCOMM Inorporated Method and apparatus for motion vector assignment
TW200743365A (en) * 2006-05-05 2007-11-16 Univ Nat Central Method of de-interlace processing by edge detection

Also Published As

Publication number Publication date
TWI485649B (en) 2015-05-21

Similar Documents

Publication Publication Date Title
JP4083265B2 (en) Method and apparatus for converting image signal system
US8508659B2 (en) System and method for frame rate conversion using multi-resolution temporal interpolation
US8514939B2 (en) Method and system for motion compensated picture rate up-conversion of digital video using picture boundary processing
CN101867759B (en) Self-adaptive motion compensation frame frequency promoting method based on scene detection
US8355442B2 (en) Method and system for automatically turning off motion compensation when motion vectors are inaccurate
US8542298B2 (en) Image processing device and image processing method
US8749703B2 (en) Method and system for selecting interpolation as a means of trading off judder against interpolation artifacts
KR20060135770A (en) Reducing artefacts in scan-rate conversion of image signals by combining interpolation and extrapolation of images
US8576341B2 (en) Occlusion adaptive motion compensated interpolator
US7787048B1 (en) Motion-adaptive video de-interlacer
US8289446B2 (en) Intermediate frame occlusion estimation system using projected vectors
US10096093B2 (en) Object speed weighted motion compensated interpolation
GB2450121A (en) Frame rate conversion using either interpolation or frame repetition
US9241095B2 (en) Method and system for adaptive temporal interpolation filtering for motion compensation
US8542322B2 (en) Motion compensated interpolation system using combination of full and intermediate frame occlusion
US8345148B2 (en) Method and system for inverse telecine and scene change detection of progressive video
US20110211083A1 (en) Border handling for motion compensated temporal interpolator using camera model
US20080165278A1 (en) Human visual system based motion detection/estimation for video deinterlacing
US8929447B2 (en) Image deblurring method using motion compensation
TW201234859A (en) Frame rate up-conversion device and method thereof
TW201346839A (en) Motion de-blurring method based on motion compensation
Cordes et al. 57.1: Invited Paper: Key Requirements for High Quality Picture‐Rate Conversion
Sugiyama et al. Motion compensated frame rate conversion using normalized motion estimation
Bellers et al. 44.4: Motion Compensated Frame Rate Conversion for Motion Blur Reduction
Wittebrood et al. Tackling occlusion in scan rate conversion systems

Legal Events

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