TWI412268B - Method of de-interlacing a horizontal moving subtitle - Google Patents

Method of de-interlacing a horizontal moving subtitle Download PDF

Info

Publication number
TWI412268B
TWI412268B TW99111739A TW99111739A TWI412268B TW I412268 B TWI412268 B TW I412268B TW 99111739 A TW99111739 A TW 99111739A TW 99111739 A TW99111739 A TW 99111739A TW I412268 B TWI412268 B TW I412268B
Authority
TW
Taiwan
Prior art keywords
area
field
moving
pixels
zone
Prior art date
Application number
TW99111739A
Other languages
Chinese (zh)
Other versions
TW201136297A (en
Inventor
Ying Ru Chen
Ling Hsiu Huang
Original Assignee
Himax Media Solutions Inc
Himax Tech Ltd
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 Himax Media Solutions Inc, Himax Tech Ltd filed Critical Himax Media Solutions Inc
Priority to TW99111739A priority Critical patent/TWI412268B/en
Publication of TW201136297A publication Critical patent/TW201136297A/en
Application granted granted Critical
Publication of TWI412268B publication Critical patent/TWI412268B/en

Links

Landscapes

  • Television Systems (AREA)

Abstract

The present invention is directed to a method of de-interlacing a horizontal moving subtitle. A field is divided into regions, one of which is to be judged. Each region is subjected to moving/serration detection in order to obtain the number of moving pixels/serration pixels. If the to-be-judged region has moving pixels/serration pixels larger than other regions, the to-be-judged region is then de-interlaced by motion adaptive de-interlace and other regions are de-interlaced by 3: 2/2: 2 film-mode de-interlace; otherwise, the whole field is de-interlaced by 3: 2/2: 2 film-mode de-interlace.

Description

水平移動字幕的去交錯方法 Deinterlacing method for horizontally moving subtitles

本發明係有關去交錯(de-interlace),特別是關於一種水平移動字幕的去交錯方法。 The present invention relates to de-interlaces, and more particularly to a de-interlacing method for horizontally moving subtitles.

美國國家電視標準委員會(National Television System Committee,NTSC)廣播視訊格式的圖像頻率為每秒60圖場(亦即,60 fields/sec),然而以膠捲拍攝的電影之圖像頻率為每秒24圖框(亦即,24 frames/sec)。為了讓電影能夠在NTSC格式的電視機上播放,一般係以3:2轉換(3:2 pull down)方式,將電影相鄰二圖框當中的第一圖框轉變為3圖場,並將第二圖框轉變為2圖場;換句話說,相鄰二圖框會被轉變為5圖場。依此原則,每秒24圖框即被轉變為每秒60圖場,因而符合NTSC格式,此種格式稱為3:2影片模 式。 The National Television System Committee (NTSC) broadcast video format has an image frequency of 60 fields per second (ie, 60 fields/sec), whereas the film frequency of movies taken in film is 24 per second. Frame (ie, 24 frames/sec). In order to enable the movie to be played on an NTSC-formatted TV set, the first frame in the adjacent two frames of the movie is converted into a 3-picture field by a 3:2 pull down method. The second frame is converted to 2 fields; in other words, the adjacent frames are converted to 5 fields. According to this principle, 24 frames per second is converted into 60 fields per second, thus conforming to the NTSC format, which is called 3:2 film mode. formula.

逐行倒相(Phase Alternating Line,PAL)廣播視訊格式的圖像頻率為每秒50圖場(亦即,50 fields/sec)。為了讓電影能夠在PAL格式的電視機上播放,可以使用2:2轉換(2:2 pull down)方式,將每秒24圖框轉變為每秒48圖場,然而此將造成約4%的加速。鑑於此,可以使用另一種改良的2:2轉換,稱為2:2:2:2:2:2:2:2:2:2:2:3轉換,其可將電影的每秒24圖框轉變為每秒50圖場,因而符合PAL格式,此種格式稱為2:2影片模式。此外,NTSC於循序模式(progressive mode)時,將每秒30圖框轉變為每秒60圖場,也屬於2:2影片模式。 The image frequency of the Phase Alternating Line (PAL) broadcast video format is 50 fields per second (ie, 50 fields/sec). In order to allow the movie to play on a PAL format TV, you can use a 2:2 pull down method to convert 24 frames per second to 48 fields per second, however this will result in about 4% accelerate. In view of this, you can use another improved 2:2 conversion, called 2:2:2:2:2:2:2:2:2:2:2:3 conversion, which can take 24 pictures per second of the movie. The box is converted to 50 fields per second, thus conforming to the PAL format, which is called the 2:2 film mode. In addition, when NTSC is in progressive mode, it converts 30 frames per second into 60 fields per second, which is also a 2:2 film mode.

NTSC或PAL格式所傳送者都是交錯的(interlaced)圖場影像,若要將其顯示於非交錯式(non-interlaced)或循序式(progressive)顯示器上,則必須先將圖場還原成圖框,此稱為去交錯(de-interlace)。一般交錯訊號於進行去交錯時,係使用空間上(spatial)內插或時間上(temporal)內插來產生或填補所欠缺的掃描線。其中,空間上內插僅使用同一圖場的像素以產生新的像素,因此,又稱為圖場內(intra-field)或二維內插;時間上內插則使用相鄰不同圖場的像素來產生新像素,因此,又稱為圖場間(inter-field)或三維內插。通常,靜止區係以時間上內插來進行去交錯,而移動區則以空間上內插來進行去交錯。靜止區和移動區必須藉由移動(motion)偵測來判別,因此,以內插方法來進行去交錯一般又稱為移動調適去交錯(motion adaptive de-interlace)方法,用以區別於影片模式去交錯(film mode de-interlace)方法。 NTSC or PAL format transmitters are interlaced field images. To display them on a non-interlaced or progressive display, you must first restore the field to a map. Box, this is called de-interlace. In general, interleaved signals use spatial interpolation or temporal interpolation to create or fill missing scan lines. Wherein spatial interpolation uses only pixels of the same field to generate new pixels, and is therefore also referred to as intra-field or two-dimensional interpolation; temporal interpolation uses adjacent different fields. Pixels are used to generate new pixels, and are therefore also referred to as inter-field or three-dimensional interpolation. Typically, the quiescent zone is deinterleaved by temporal interpolation, while the mobile zone is spatially interpolated for deinterlacing. The still area and the moving area must be discriminated by motion detection. Therefore, deinterlacing by interpolation is also called motion adaptive de-interlace method to distinguish it from the film mode. Film mode de-interlace method.

但是,對於影片模式(film mode)訊號之去交錯,則是複製前一圖場或後一圖場的全部掃描線以還原成圖框,此和交錯訊號之去交錯作法不同。如果以內插方法對影片模式訊號進行去交錯,會使得畫面模糊或跳動。 However, for the deinterlacing of the film mode signal, all the scanning lines of the previous scene or the latter field are copied to be reduced to a frame, which is different from the interleaving of the interlaced signals. Deinterlacing the film mode signal by interpolation will blur or beat the picture.

於接收電視訊號時,可能收到的視訊內容為影片模式,但是卻由影片播放器或第四台系統商加入了水平移動交錯字幕訊號。此時,如果使用影片模式去交錯,將造成字幕字體的破裂;如果使用移動調適去交錯,則造成影像的模糊。 When receiving a TV signal, the video content that may be received is in the movie mode, but the horizontal mobile interlaced signal is added by the video player or the fourth system vendor. At this time, if the film mode is used for interlacing, the subtitle font will be broken; if the motion adjustment is used to interleave, the image will be blurred.

因此,亟需提出一種新穎的方法,用以改善影片模式之水平移動字體的破裂現象。 Therefore, there is a need to propose a novel method for improving the cracking of the horizontal moving font of the film mode.

鑑於上述,本發明實施例的目的之一在於提出一種水平移動字幕的去交錯方法,其可在未跳出影片模式狀態下,區域性地針對水平移動字幕進行去交錯。 In view of the above, one of the objects of the embodiments of the present invention is to provide a de-interlacing method for horizontally moving subtitles, which can be deinterleaved regionally for horizontally moving subtitles without jumping out of the movie mode.

根據本發明實施例,將一圖場分為多區,其中一區為待判斷區,並以移動偵測或鋸齒狀偵測方法統計各區的移動像素點或鋸齒像素點。判斷該待判斷區的移動像素點或鋸齒像數點個數是否大於各區的平均移動像素點或平均鋸齒像數點個數。如果判斷結果為是,則針對待判斷區使用移動調適去交錯(motion adaptive de-interlace),其餘各區則使用3:2或2:2影片模式去交錯(film mode de-interlace)。如果判斷結果為否,則該整張圖場使用3:2或2:2影片模式去交錯。 According to an embodiment of the invention, a field is divided into multiple regions, wherein one region is a region to be determined, and the moving pixel or the sawtooth pixel of each region is counted by a motion detection or a sawtooth detection method. It is determined whether the number of moving pixel points or sawtooth image points of the to-be-determined area is greater than the average moving pixel point or the average sawtooth image number of each area. If the result of the determination is yes, then motion adaptive de-interlace is used for the region to be determined, and the remaining regions are used for film mode de-interlace by 3:2 or 2:2. If the result of the determination is no, the entire field is deinterleaved using a 3:2 or 2:2 film mode.

11-15A‧‧‧(第一A圖)步驟 11-15A‧‧ (Step A) steps

11-15B‧‧‧(第一B圖)步驟 11-15B‧‧ (Step B) steps

41-43A‧‧‧(第四A圖)步驟 41-43A‧‧ (Step 4A) steps

41-43B‧‧‧(第四B圖)步驟 41-43B‧‧ (Step 4 B) steps

第一A圖之流程圖顯示本發明實施例之水平移動字幕一待判斷區的去交錯方法。 The flowchart of FIG. 1A shows a deinterlacing method of a horizontal moving subtitle to be determined region according to an embodiment of the present invention.

第一B圖之流程圖顯示本發明實施例之水平移動字幕另一待判斷區的去交錯方法。 The flowchart of the first B diagram shows a deinterleaving method of another to-be-determined area of the horizontal moving subtitle of the embodiment of the present invention.

第二圖顯示將一整張圖場分為大致相等的四區。 The second figure shows that an entire field is divided into four equal areas.

第三圖顯示使用移動偵測方法以得到移動像素點的示意圖。 The third figure shows a schematic diagram of using a motion detection method to obtain moving pixel points.

第四A圖之流程圖顯示本發明另一實施例之水平移動字幕一待判斷區的去交錯方法。 The flowchart of FIG. 4A shows a deinterleaving method of a horizontal moving subtitle to be determined region according to another embodiment of the present invention.

第四B圖之流程圖顯示本發明實施例之水平移動字幕另一待判斷區的去交錯方法。 The flowchart of FIG. 4B shows a deinterleaving method of another to-be-determined area of the horizontal moving subtitle according to the embodiment of the present invention.

第五圖顯示使用鋸齒狀偵測方法以得到鋸齒像素點的示意圖。 The fifth figure shows a schematic diagram using a sawtooth detection method to obtain sawtooth pixel points.

第一A圖及第一B圖之流程圖顯示本發明實施例之水平移動字幕之一待判斷區的去交錯方法,用以在3:2影片模式下,避免水平移動交錯字幕的字體破裂現象。雖然本實施例的水平移動字幕係由右向左移動,然而,在其他實施例中也可以由左向右移動。 The flow chart of the first A picture and the first B picture shows a deinterlacing method of one of the horizontal moving subtitles to be judged in the embodiment of the present invention, in order to avoid the font rupture phenomenon of the horizontally moving interlaced subtitle in the 3:2 film mode. . Although the horizontally moving subtitle of the present embodiment is moved from right to left, it may be moved from left to right in other embodiments.

對於3:2影片模式,其圖場依序為A1 A2 A3 B4 B5 C6 C7 C8 D9 D10。當使用A1和A3作移動(motion)偵測時,由於兩者屬於同一圖框,當其相減時所得到的移動像素個數會很少;當使用A2和B4作移動偵測時,所得到的移動像素個數將相對地大很多。傳統方法於畫面出現水平移動字幕時,經常無法及時發現交錯的字幕,而繼續以3:2影片模 式來進行去交錯,因而使得字體出現破裂現象。此字體破裂現象通常需要等相當長一段時間後,才會被判斷出來。 For the 3:2 film mode, the field is A1 A2 A3 B4 B5 C6 C7 C8 D9 D10. When using A1 and A3 for motion detection, since the two belong to the same frame, the number of moving pixels obtained when they are subtracted will be small; when A2 and B4 are used for motion detection, The number of moving pixels obtained will be relatively large. The traditional method is that when the screen appears to move the subtitle horizontally, it is often impossible to find the interlaced subtitles in time, and continue to use the 3:2 video mode. Deinterlace, which causes the font to rupture. This font rupture usually takes a long time to be judged.

在本實施例中,於A1和A3(亦即,具相同場畫面(亦即,同奇偶場)且間隔一圖場的二個圖場)作移動偵測時,將一整張圖場(亦即,圖場A2)分為大致相等的四區:A區、B區、C區和D區,分別位於左上、右上、左下和右下,如第二圖所示。雖然本實施例將整張圖場分為相等的四區,然而在其他實施例中,則可分為其他數目的區域,且各區不一定要相等,再者,也不需要劃分整張圖場。 In this embodiment, when A1 and A3 (that is, two fields having the same field picture (that is, the same parity field) and spaced by one field) are used for motion detection, an entire picture field is used ( That is, the field A2) is divided into four regions that are substantially equal: A region, B region, C region, and D region, which are located at the upper left, upper right, lower left, and lower right, respectively, as shown in the second figure. Although this embodiment divides the entire field into equal four regions, in other embodiments, it can be divided into other numbers, and the regions do not have to be equal. Furthermore, the entire map does not need to be divided. field.

請參閱第一A圖,首先,於步驟11,以移動偵測方法統計各區(A區、B區、C區和D區)的移動像素點,因而得到各區的移動像素點個數為MA、MB、MC和MD。第三圖顯示使用移動偵測方法以得到移動像素點的示意圖。於第三圖的例示中,判定圖場A2內像數點ca是否為移動像數點,其方法為計算圖場A1和A3的相應(位置)像素pa和na絕對差(例如,灰階的絕對差),如果大於預設臨界值,則像數點ca計為移動像素點。另一個移動偵測方法實施例,於圖場A1和A3各開一個視窗(例如,視窗包含3*3、3*1、1*3個像數點),分別包含像素pa和na,計算視窗(例如,圖場A1)內各像數與另一圖場(例如,圖場A3)視窗內的相應(位置)像數絕對差之和(sum of absolution difference,SAD,例如,灰階的絕對差之和),如果大於預設臨界值,則像數點ca計為移動像素點。 Please refer to FIG. 1A. First, in step 11, the moving pixel points of each area (A area, B area, C area, and D area) are counted by the motion detection method, thereby obtaining the number of moving pixel points of each area. MA, MB, MC, and MD. The third figure shows a schematic diagram of using a motion detection method to obtain moving pixel points. In the illustration of the third figure, it is determined whether the image point c in the field A2 is a moving image point by calculating the absolute difference between the corresponding (position) pixels pa and na of the fields A1 and A3 (for example, gray scale Absolute difference), if it is greater than the preset threshold, the number of points ca is counted as a moving pixel. Another embodiment of the motion detection method opens a window in each of the fields A1 and A3 (for example, the window contains 3*3, 3*1, 1*3 image points), respectively, including pixels pa and na, and a calculation window. (for example, the field A1) and the sum of the absolute differences of the corresponding (position) images in the window of another field (for example, the field A3) (sum of absolution difference, SAD, for example, the absolute of the grayscale The sum of the differences), if it is greater than the preset threshold, the number of points ca is counted as a moving pixel.

接著,於步驟12A,判斷D區(待判斷區)的移動像素點個數是否大於各區平均移動像素點個數。通常,步驟12A之判斷須進行多次,例如3次,在第二圖之流程中係以K值來控制。本步驟12A的判斷式 可表示如下:MA+MB+MC+MD<T3:2,且MD>T3:2/4 Next, in step 12A, it is determined whether the number of moving pixel points of the D zone (to be determined) is greater than the average number of moving pixels of each zone. Usually, the judgment of step 12A has to be performed a plurality of times, for example, three times, and is controlled by the K value in the flow of the second figure. The judgment formula of this step 12A Can be expressed as follows: MA+MB+MC+MD<T3:2, and MD>T3:2/4

其中,T3:2為預設之3:2影片模式臨界值。 Among them, T3:2 is the default 3:2 film mode threshold.

如果經步驟12A判斷得知D區的移動像素點個數大於各區平均移動像素點個數(亦即(MA+MB+MC+MD)/4),即可認為水平移動字幕開始出現於D區。此時,於步驟13A,針對D區使用移動調適去交錯(motion adaptive de-interlace),至於A區、B區、C區則繼續使用3:2影片模式去交錯(film mode de-interlace),直到整張圖場不符合3:2影片模式條件時,再整張切換為移動調適去交錯。如果步驟12A的判斷式不符合,則整張圖場繼續使用3:2影片模式去交錯(步驟14)。 If it is determined by step 12A that the number of moving pixel points in the D zone is greater than the average number of moving pixels in each zone (ie, (MA+MB+MC+MD)/4), it can be considered that the horizontally moving subtitle starts to appear in D. Area. At this time, in step 13A, motion adaptive de-interlace is used for the D zone, and the A, B, and C zones continue to use the 3:2 film mode de-interlace. Until the entire field does not meet the 3:2 film mode condition, the whole picture is switched to the mobile adjustment to interleave. If the decision of step 12A does not match, the entire field continues to be interleaved using the 3:2 film mode (step 14).

在進行去交錯時,由於字幕區域的對比或顏色通常較為明顯,經移動偵測後所得到的絕對差或絕對差之和(SAD)值會較大。鑑於此特性,在本實施例中,可動態增大臨界值T(步驟15A);當絕對差或絕對差之和(SAD)大於臨界值時,待判斷區中對應的像素點(第三圖,像數點ca)將改以二維去交錯(spatial de-interlace),反之,待判斷區中對應的像素點繼續使用3:2影片模式去交錯。 In the deinterlacing, since the contrast or color of the subtitle area is usually obvious, the sum of the absolute difference or the absolute difference (SAD) obtained after the motion detection is large. In view of this characteristic, in the present embodiment, the threshold value T can be dynamically increased (step 15A); when the absolute difference or the sum of absolute differences (SAD) is greater than the critical value, the corresponding pixel in the region to be determined (third map) , like the number of points ca) will be changed to two-dimensional de-interlace (spatial de-interlace), on the contrary, the corresponding pixel points in the area to be judged continue to use the 3:2 film mode to interleave.

請參閱第一B圖,其顯示本發明實施例之水平移動字幕另一待判斷區的去交錯方法之流程圖。實際上由於無法事先確定水平移動字幕出現的區域,因此,若判定水平移動字幕不在D區,則針對B區進行判定。同樣的原理,以步驟12B判斷B區(待判斷區)的移動像素點個數是否大於各區平均移動像素點個數。通常,步驟12B之判斷須進行多次, 例如3次,在第二圖之流程中係以K值來控制。本步驟12B的判斷式可表示如下:MA+MB+MC+MD<T3:2,且MB>T3:2/4。 Please refer to FIG. 1B, which shows a flowchart of a deinterlacing method for another to-be-determined area of the horizontal moving subtitle according to the embodiment of the present invention. Actually, since it is impossible to determine in advance the area in which the horizontal moving subtitle appears, if it is determined that the horizontal moving subtitle is not in the D area, the determination is made for the B area. In the same principle, it is determined in step 12B whether the number of moving pixel points in the B area (to be determined) is greater than the number of moving pixels in each area. Usually, the judgment of step 12B has to be performed multiple times. For example, 3 times, in the flow of the second figure, it is controlled by the K value. The judgment formula of this step 12B can be expressed as follows: MA+MB+MC+MD<T3:2, and MB>T3:2/4.

如果經步驟12B判斷得知B區的移動像素點個數大於平均移動像素點個數(亦即(MA+MB+MC+MD)/4),即可認為水平移動字幕開始出現於B區。此時,於步驟13B,針對B區使用移動調適去交錯,至於A區、C區、D區則繼續使用3:2影片模式去交錯,直到整張圖場不符合3:2影片模式條件時,再整張切換為移動調適去交錯。如果步驟12B的判斷式不符合,則整張圖場繼續使用3:2影片模式去交錯(步驟14)。 If it is judged by step 12B that the number of moving pixel points of the B area is larger than the average number of moving pixel points (ie, (MA+MB+MC+MD)/4), it can be considered that the horizontal moving subtitle starts to appear in the B area. At this time, in step 13B, the mobile region is deinterleaved for the B region, and the A, C, and D regions continue to use the 3:2 film mode to interleave until the entire field does not meet the 3:2 film mode condition. , then switch to the mobile adaptation to interlace. If the decision of step 12B does not match, the entire field continues to be interleaved using the 3:2 film mode (step 14).

第四A圖及第四B圖之流程圖顯示本發明另一實施例之水平移動字幕之一待判斷區的去交錯方法,用以在2:2影片模式下,避免水平移動交錯字幕的字體破裂現象。雖然本實施例的水平移動字幕係由右向左移動,然而,在其他實施例中也可以由左向右移動。 The flow charts of the fourth A picture and the fourth B picture show a deinterlacing method of one of the horizontal moving subtitles to be judged in another embodiment of the present invention, to avoid horizontally moving the subtitle font in the 2:2 film mode. Cracking phenomenon. Although the horizontally moving subtitle of the present embodiment is moved from right to left, it may be moved from left to right in other embodiments.

對於2:2影片模式,其圖場依序為A1 A2 B3 B4 C5 C6 D7 D8。當使用A1和A2作鋸齒狀偵測時,由於兩者屬於同一圖框,因此所得到的移動像素個數會很少;當使用A2和B3作鋸齒偵測時(不屬於同一圖框),所得到的鋸齒像素個數將相對地大很多。傳統方法於畫面出現水平移動字幕時,經常無法及時發現交錯的字幕,而繼續以2:2影片模式來進行去交錯,因而使得字體出現破裂現象。此字體破裂現象通常需要等 相當長一段時間後,才會被判斷出來。 For the 2:2 film mode, the field is A1 A2 B3 B4 C5 C6 D7 D8. When using A1 and A2 for jagged detection, since the two belong to the same frame, the number of moving pixels obtained will be small; when using A2 and B3 for sawtooth detection (not belonging to the same frame), The resulting number of jagged pixels will be relatively large. The traditional method often fails to find interlaced subtitles in time when the screen appears to move the subtitles horizontally, and continues to deinterlace in the 2:2 film mode, thus causing the font to burst. This font rupture usually needs to wait After a long time, it will be judged.

在本實施例中,於A1和A2(亦即,相鄰二圖場)作鋸齒狀偵測時,將一整張圖場(亦即,圖場A1)分為大致相等的四區:A區、B區、C區和D區,分別位於左上、右上、左下和右下,如第二圖所示。雖然本實施例將整張圖場分為相等的四區,然而在其他實施例中,則可分為其他數目的區域,且各區不一定要相等,再者,也不需要劃分整張圖場。 In this embodiment, when the A1 and A2 (that is, the adjacent two fields) are saw-toothed, an entire field (ie, the field A1) is divided into four regions that are substantially equal: A Zones, Zone B, Zone C, and Zone D are located in the upper left, upper right, lower left, and lower right, respectively, as shown in the second figure. Although this embodiment divides the entire field into equal four regions, in other embodiments, it can be divided into other numbers, and the regions do not have to be equal. Furthermore, the entire map does not need to be divided. field.

請參閱第四A圖,首先,於步驟41,以鋸齒狀偵測方法統計各區(A區、B區、C區和D區)的鋸齒像素點,因而得到各區的鋸齒像素點個數為FA、FB、FC和FD。第五圖顯示使用鋸齒狀偵測方法以得到鋸齒像素點的示意圖。於第五圖的例示中,判定圖場A1內的像數點pb是否為鋸齒像數點,本實施例係針對圖場A1和圖場A2得到三個差值:將圖場A1的相應相鄰像素pa和pc相減,將圖場A1和圖場A2的相應相鄰像素pa和cb相減,將圖場A1和圖場A2的相應相鄰像素pc和cb相減。如果同一圖場A1的差值小於相鄰圖場A1、A2的差值,則像數點pb計為鋸齒像素點。 Please refer to FIG. 4A. First, in step 41, the zigzag pixel points of each area (A area, B area, C area, and D area) are counted by a sawtooth detection method, thereby obtaining the number of zigzag pixels in each area. For FA, FB, FC and FD. The fifth figure shows a schematic diagram using a sawtooth detection method to obtain sawtooth pixel points. In the illustration of the fifth figure, it is determined whether the image point pb in the field A1 is a sawtooth image point. In this embodiment, three differences are obtained for the field A1 and the field A2: the corresponding phase of the field A1 is obtained. The adjacent pixels pa and pc are subtracted, and the corresponding adjacent pixels pa and cb of the field A1 and the field A2 are subtracted, and the corresponding adjacent pixels pc and cb of the field A1 and the field A2 are subtracted. If the difference of the same field A1 is smaller than the difference between the adjacent fields A1, A2, the image point pb is counted as a sawtooth pixel.

接著,於步驟42A,判斷D區(待判斷區)的鋸齒像素點個數是否大於各區平均鋸齒像素點個數。通常,步驟42A之判斷須進行多次,例如5次,在第四A圖之流程中係以K值來控制。一般來說,由於2:2影片模式的判斷通常較難於3:2影片模式的判斷,因此,2:2影片模式之判斷次數一般會大於3:2影片模式之判斷次數。本步驟42A的判斷式可表示如下:FA+FB+FC+FD<T2:2,且 FD>T2:2/4 Next, in step 42A, it is determined whether the number of zigzag pixels in the D zone (to be determined) is greater than the average number of zigzag pixels in each zone. Usually, the judgment of step 42A has to be performed a plurality of times, for example, five times, and is controlled by the K value in the flow of the fourth A diagram. In general, since the judgment of the 2:2 film mode is usually difficult to judge in the 3:2 film mode, the number of judgments of the 2:2 film mode is generally greater than the number of judgments of the 3:2 film mode. The judgment formula of this step 42A can be expressed as follows: FA+FB+FC+FD<T2:2, and FD>T2: 2/4

其中,T2:2為預設之2:2影片模式臨界值。 Among them, T2:2 is the default 2:2 film mode threshold.

如果經步驟42A判斷得知D區的鋸齒像素點個數大於各區平均鋸齒像素點個數(亦即(FA+FB+FC+FD)/4),即可認為水平移動字幕開始出現於D區。此時,於步驟43A,針對D區使用移動調適去交錯(motion adaptive de-interlace),至於A區、B區、C區則繼續使用2:2影片模式去交錯(film mode de-interlace),直到整張圖場不符合2:2影片模式條件時,再整張切換為移動調適去交錯。如果步驟42A的判斷式不符合,則整張圖場繼續使用2:2影片模式去交錯(步驟44)。其中,當D區使用移動調適去交錯時,可更進一步只針對B區中的鋸齒像數點進行二維去交錯。 If it is judged by step 42A that the number of zigzag pixels in the D zone is larger than the average number of zigzag pixels in each zone (ie, (FA+FB+FC+FD)/4), it can be considered that the horizontally moving subtitle starts to appear in D. Area. At this time, in step 43A, motion adaptive de-interlace is used for the D zone, and the A, B, and C zones continue to use the 2:2 film mode de-interlace. Until the entire field does not meet the 2:2 film mode condition, the whole picture is switched to the mobile adjustment to interleave. If the decision of step 42A does not match, the entire field continues to be interleaved using the 2:2 film mode (step 44). Wherein, when the D zone is deinterleaved using the motion adaptation, the two-dimensional deinterlacing can be performed only for the number of sawtooth images in the B zone.

請參閱第四B圖,其顯示本發明實施例之水平移動字幕另一待判斷區的去交錯方法之流程圖。實際上由於無法事先確定水平移動字幕出現的區域,因此,若判定水平移動字幕不在D區,則針對B區進行判定。同樣的原理,以步驟42B判斷B區(待判斷區)的鋸齒像素點個數是否大於各區平均鋸齒像素點個數。通常,步驟42A之判斷須進行多次,例如5次,在第四B圖之流程中係以K值來控制。本步驟42B的判斷式可表示如下:FA+FB+FC+FD<T2:2,且FB>T2:2/4。 Please refer to FIG. 4B, which shows a flowchart of a deinterleaving method for another to-be-determined area of the horizontal moving subtitle according to the embodiment of the present invention. Actually, since it is impossible to determine in advance the area in which the horizontal moving subtitle appears, if it is determined that the horizontal moving subtitle is not in the D area, the determination is made for the B area. In the same principle, it is determined in step 42B whether the number of zigzag pixels in the B region (to be determined) is greater than the average number of zigzag pixels in each region. Generally, the judgment of step 42A has to be performed a plurality of times, for example, five times, and is controlled by the K value in the flow of the fourth diagram B. The judgment formula of this step 42B can be expressed as follows: FA + FB + FC + FD < T2: 2, and FB > T2: 2 / 4.

如果經步驟42B判斷得知B區的鋸齒像素點個數大於各區平均鋸齒像素點個數(亦即(FA+FB+FC+FD)/4),即可認為水平移動字幕開始出現於B區。此時,於步驟43B,針對B區使用移動調適去交錯,至於A區、C區、D區則繼續使用2:2影片模式去交錯,直到整張圖場不符合2:2影片模式條件時,再整張切換為移動調適去交錯。如果步驟42B的判斷式不符合,則整張圖場繼續使用2:2影片模式去交錯(步驟44)。其中,當B區使用移動調適去交錯時,可更進一步只針對B區中的鋸齒像數點進行二維去交錯。 If it is judged by step 42B that the number of zigzag pixels in the B region is larger than the average number of zigzag pixels in each region (ie, (FA+FB+FC+FD)/4), it can be considered that the horizontally moving subtitle starts to appear in B. Area. At this time, in step 43B, the mobile adaptation is deinterleaved for the B zone, and the A, C, and D zones continue to use the 2:2 film mode to interleave until the entire field does not meet the 2:2 film mode condition. , then switch to the mobile adaptation to interlace. If the decision of step 42B does not match, the entire field continues to be interleaved using the 2:2 film mode (step 44). Wherein, when the B area is moved and deinterleaved by using the motion adjustment, the two-dimensional deinterlacing can be performed only for the number of sawtooth images in the B area.

以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效改變或修飾,均應包含在下述之申請專利範圍內。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; all other equivalent changes or modifications which are not departing from the spirit of the invention should be included in the following Within the scope of the patent application.

11-15A‧‧‧步驟 11-15A‧‧‧Steps

Claims (7)

一種水平移動字幕的去交錯方法,包含:將一圖場分為多區,其中一區為待判斷區;以移動偵測方法統計各區的移動像素點;判斷該待判斷區的移動像素點個數是否大於各區的平均移動像素點個數;如果該判斷結果為是,則針對該待判斷區使用移動調適去交錯(motion adaptive de-interlace),其餘各區則使用3:2影片模式去交錯(film mode de-interlace);及如果該判斷結果為否,則該整張圖場使用3:2影片模式去交錯。 A de-interlacing method for horizontally moving subtitles includes: dividing a field into multiple regions, wherein one region is a region to be determined; counting moving pixel points of each region by using a motion detection method; and determining a moving pixel of the region to be determined Whether the number is greater than the average number of moving pixels of each zone; if the result of the determination is yes, the motion adaptive de-interlace is used for the to-be-determined zone, and the remaining zones use the 3:2 film mode. Film mode de-interlace; and if the result of the determination is no, the entire field is deinterleaved using a 3:2 film mode. 如申請專利範圍第1項所述水平移動字幕的去交錯方法,其中上述之移動偵測方法,具相同場畫面且間隔該圖場的二個圖場,其相應像素的絕對差,如果大於一預設臨界值,則該圖場相應像數計為移動像素點。 The deinterlacing method for horizontally moving subtitles according to claim 1, wherein the motion detection method has two fields of the same field and spaced apart from the field, and the absolute difference of the corresponding pixels is greater than one. When the threshold is preset, the corresponding image of the field is counted as a moving pixel. 如申請專利範圍第2項所述水平移動字幕的去交錯方法,當上述之判斷結果為是,更包含動態增大該預設臨界值,使得當該絕對差大於該預設臨界值時,該待判斷區中的對應像素將改以二維去交錯。 For example, in the deinterlacing method of the horizontal moving subtitle described in claim 2, when the determination result is yes, the method further includes dynamically increasing the preset threshold, so that when the absolute difference is greater than the preset threshold, the The corresponding pixels in the area to be judged will be deinterlaced in two dimensions. 如申請專利範圍第1項所述水平移動字幕的去交錯方法,其中上述之移動偵測方法,具相同場畫面且間隔該圖場的二個圖場,於該二個圖場各別開一個視窗,計算視窗內各像數與另一圖場視窗內的相應像數絕對差之和(SAD),如果大於一預設臨界值,則該圖場相應像數計為移動像素點。 The deinterlacing method for horizontally moving subtitles according to claim 1, wherein the motion detection method has two fields with the same field picture and spacing the picture field, and each of the two fields is opened. The window calculates a sum of absolute differences (SAD) between the respective pixels in the window and the corresponding image in the other field window. If it is greater than a predetermined threshold, the corresponding image of the field is counted as a moving pixel. 如申請專利範圍第4項所述水平移動字幕的去交錯方法,當上述之判斷結果為是,更包含動態增大該預設臨界值,使得當該絕對差之 和(SAD)大於該預設臨界值時,該待判斷區中的對應像素將改以二維去交錯。 For the deinterlacing method of the horizontal moving subtitles in claim 4, when the above judgment result is yes, the dynamic inclusion of the preset threshold is further included, so that the absolute difference is When (SAD) is greater than the preset threshold, the corresponding pixels in the to-be-determined area will be de-interlaced in two dimensions. 如申請專利範圍第1項所述水平移動字幕的去交錯方法,其中上述之該圖場劃分為A區、B區、C區和D區,分別位於左上、右上、左下和右下並從A區、B區、C區和D區中選一區為該待判斷區。 The deinterlacing method for horizontal moving subtitles according to claim 1, wherein the field is divided into A area, B area, C area and D area, respectively located at upper left, upper right, lower left and lower right and from A One of the district, B zone, C zone and D zone is the zone to be judged. 如申請專利範圍第6項所述水平移動字幕的去交錯方法,其中上述之判斷步驟使用以下的判斷式:MA+MB+MC+MD<T3:2,且MX>T3:2/4其中,MX、MA、MB、MC和MD分別為該待判斷區、A區、B區、C區和D區的移動像素點個數,T3:2為預設之3:2影片模式臨界值。 The deinterlacing method for horizontally moving subtitles according to item 6 of the patent application scope, wherein the determining step uses the following judgment formula: MA+MB+MC+MD<T 3:2 , and MX>T 3:2 /4 Among them, MX, MA, MB, MC, and MD are the number of moving pixels in the to-be-determined area, A-area, B-area, C-area, and D-area, respectively, and T 3:2 is the preset 3:2 film mode criticality. value.
TW99111739A 2010-04-15 2010-04-15 Method of de-interlacing a horizontal moving subtitle TWI412268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99111739A TWI412268B (en) 2010-04-15 2010-04-15 Method of de-interlacing a horizontal moving subtitle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99111739A TWI412268B (en) 2010-04-15 2010-04-15 Method of de-interlacing a horizontal moving subtitle

Publications (2)

Publication Number Publication Date
TW201136297A TW201136297A (en) 2011-10-16
TWI412268B true TWI412268B (en) 2013-10-11

Family

ID=46752160

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99111739A TWI412268B (en) 2010-04-15 2010-04-15 Method of de-interlacing a horizontal moving subtitle

Country Status (1)

Country Link
TW (1) TWI412268B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050259950A1 (en) * 2004-04-30 2005-11-24 Thilo Landsiedel Film mode correction in still areas
US20060238650A1 (en) * 2000-09-08 2006-10-26 Jaldi Semiconductor Corp. A method and apparatus for motion adaptive deinterlacing
US20070291169A1 (en) * 2006-06-06 2007-12-20 Stmicroelectronics S.A. Region-based cadence detector
TW200803489A (en) * 2006-06-19 2008-01-01 Realtek Semiconductor Corp Method and apparatus for processing video data
US20080111917A1 (en) * 2006-11-14 2008-05-15 Novatek Microelectronics Corp. Method and system for determining video deinterlacing strategy
US20090244369A1 (en) * 2008-03-27 2009-10-01 Zoran Corporation Recursive motion for motion detection deinterlacer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060238650A1 (en) * 2000-09-08 2006-10-26 Jaldi Semiconductor Corp. A method and apparatus for motion adaptive deinterlacing
US20050259950A1 (en) * 2004-04-30 2005-11-24 Thilo Landsiedel Film mode correction in still areas
US20070291169A1 (en) * 2006-06-06 2007-12-20 Stmicroelectronics S.A. Region-based cadence detector
TW200803489A (en) * 2006-06-19 2008-01-01 Realtek Semiconductor Corp Method and apparatus for processing video data
US20080111917A1 (en) * 2006-11-14 2008-05-15 Novatek Microelectronics Corp. Method and system for determining video deinterlacing strategy
US20090244369A1 (en) * 2008-03-27 2009-10-01 Zoran Corporation Recursive motion for motion detection deinterlacer

Also Published As

Publication number Publication date
TW201136297A (en) 2011-10-16

Similar Documents

Publication Publication Date Title
US6118488A (en) Method and apparatus for adaptive edge-based scan line interpolation using 1-D pixel array motion detection
KR100403364B1 (en) Apparatus and method for deinterlace of video signal
US7667772B2 (en) Video processing apparatus and method
JP2001506112A (en) High definition television signal processing for transmitting and receiving television signals in a manner compatible with current systems
JP2001285810A (en) Method and device for calculating motion vector
US20050243216A1 (en) Block mode adaptive motion compensation
JP2005208613A (en) Adaptive display controller
JP4933209B2 (en) Video processing device
JP2007312317A (en) Video signal processing apparatus and image display device
US7508449B1 (en) Film mode judder elimination circuit and method
JP4510874B2 (en) Composite image detector
JP4119360B2 (en) Video format conversion apparatus and method
US7129989B2 (en) Four-field motion adaptive de-interlacing
US20060244823A1 (en) Image processing method and device thereof
TWI412268B (en) Method of de-interlacing a horizontal moving subtitle
TWI500316B (en) Method of de-interlacing a horizontal moving subtitle
WO2010092631A1 (en) Video processing device
US7423692B2 (en) De-interlace method and method for generating de-interlace algorithm
JP3812921B2 (en) Video signal identification method and video signal processing method using the same
WO2008038442A1 (en) Color difference signal ip converting method
TWI410133B (en) Method of determining film mode
US8373798B2 (en) Text protection device and related motion adaptive de-interlacing device
JP2009232402A (en) Noise reduction circuit and method
JP2006121568A (en) Image processor and image processing method
KR20230083519A (en) System for Interpolating Color Image Intelligent and Method for Deinterlacing Using the Same