TW201116057A - Method of determining film mode - Google Patents

Method of determining film mode Download PDF

Info

Publication number
TW201116057A
TW201116057A TW98135314A TW98135314A TW201116057A TW 201116057 A TW201116057 A TW 201116057A TW 98135314 A TW98135314 A TW 98135314A TW 98135314 A TW98135314 A TW 98135314A TW 201116057 A TW201116057 A TW 201116057A
Authority
TW
Taiwan
Prior art keywords
abnormal
film mode
picture
flag
diff
Prior art date
Application number
TW98135314A
Other languages
Chinese (zh)
Other versions
TWI410133B (en
Inventor
Ying-Ru Chen
Original Assignee
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 Tech Ltd filed Critical Himax Tech Ltd
Priority to TW98135314A priority Critical patent/TWI410133B/en
Publication of TW201116057A publication Critical patent/TW201116057A/en
Application granted granted Critical
Publication of TWI410133B publication Critical patent/TWI410133B/en

Links

Abstract

The present invention is directed to a method of determining film mode. Firstly, it is determined whether current mode is the film mode. If the determination is positive, the pixels of the current picture are analyzed to decide whether the number of abnormal pixels exceeds threshold(s). If the decision is positive, the current mode may be out of the film mode.

Description

201116057 . 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明係有關去交錯(de-interlace),特別是關於一 種適用於去交錯之影片模式(film mode)偵測。 [先前技術】 [0002] [0003] 美國國家電視標準委員會(National Television System Committee,NTSC)廣播視訊格式的圖像頻率 為每秒60圖場(亦即,60 fields/sec),然而以膠捲 拍攝的電影之圖像頻率為每秒24圖框(亦即,24 frames/sec)。為了讓電影能夠在NTSC格式的電視機上 播放,一般係以3:2轉換(你:御H 方式,將 電影相鄰二圖框當中的第一並將第二 圖框轉變為2颶場;換句話說,相鄰二囷框會被轉變為5 圖場。依此原則,每秒24圖框即被轉變為每秒60圖場, 因而符合NTSC格式。201116057. VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to de-interlace, and more particularly to a film mode detection suitable for deinterlacing. [Prior Art] [0002] [0003] The National Television System Committee (NTSC) broadcast video format has an image frequency of 60 fields per second (ie, 60 fields/sec), but is filmed in film. The image frequency of the movie is 24 frames per second (ie, 24 frames/sec). In order to allow the movie to be played on an NTSC-formatted TV set, it is generally converted in 3:2 (you: Royal H mode, the first of the two adjacent frames of the movie and the second frame is converted into 2 markets; In other words, the adjacent frames are converted to 5 fields. According to this principle, 24 frames per second are converted to 60 fields per second, thus conforming to the NTSC format.

Infellecfua! 逐订倒相(Phase Alterifi+ng㈣,,PAL)廣播視 訊格式的圓像頻率為每秒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圖框轉變為每秒5〇圖場,因而符合pAL格式。 NTSC或PAL格式所傳送者都是交錯的(interlaced)圖 場影像’若要將其顯示於非交錯式(non-interlaced) 098135314 表單編號A0101 第3頁/共17頁 0982060555-0 [0004] 201116057 或循序式(pr〇gressive)顯示器上,則必須先將圖場 還原成圖框’此稱為去交錯(de-interlace)。―般交 錯訊號於進行去交錯時,係使用空間上(spatial)内插 或時間上(temp〇ral)内插來產生或填補所欠缺的掃描 線。其中,空間上内插僅使用同一圖場的像素以產生新 的像素,因此,又稱為圖場内(intra-field)或二維 内插;時間上内插則使用相鄰不同圖場的像素來產生新 像素’因此,又稱為圖場間(inter_field)或三維内 插。通常,靜止區係以時間上獻插來進行去交錯,而移 動區則以空間上内插來進抒去交錯。靜止區和移動區必 須藉由移動(Boti〇n)偵_1|^對荆,因姝> 以内插方法 來進行去交錯—般又稱為移g謂魂去拓# (也〇ti〇n adaptive de-interlace) ,用以塵嗓^影像模式去 交錯(film mode de—:interlace)方法。 [0005] [0006] 〇 但疋’對於影片模式(fil拜仙和)訊號各去交錯,則Infellecfua! Phased reverse (Phase Alterifi+ng (4), PAL) broadcast video format with a round image frequency of fields/sec) «In order to allow movies to be played on a pAL format TV, a 2:2 conversion can be used ( The 2:2 pull down) method converts 24 frames per second to 48 fields per second, however this will result in an acceleration of about 4%. Here, 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 seconds per second for movies. The frame is converted to 5 fields per second, thus conforming to the pAL format. NTSC or PAL format transmissions are interlaced image fields 'To display them in non-interlaced 098135314 Form No. A0101 Page 3 / Total 17 Page 0992060555-0 [0004] 201116057 Or on a pr〇gressive display, the field must first be restored to a frame 'this is called de-interlace. In the case of deinterlacing, spatial interleaving or temp〇ral interpolation is used to generate or fill the 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 pixels of adjacent different fields. To generate new pixels' is therefore also called inter-field or three-dimensional interpolation. Typically, the quiescent zones are deinterlaced by temporal interpolation, while the mobile zones are interleaved by spatial interpolation. The quiescent zone and the moving zone must be deinterlaced by means of interpolation (Boti 〇 ) ) | | | , , , , 以 以 — — — — — — — — — — — — — ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( n adaptive de-interlace), used in the film mode de-: interlace method. [0005] [0006] 〇 But 疋’ for the film mode (filby and singular) signals are interlaced, then

!夺£二,.u * ^ I 是複製前一圖場或後一圈場“荃如棒故線玉還原成圖框Take 2, .u * ^ I is to copy the previous scene or the next lap.

’此和交錯訊號之去交錯作考同'如果以内插方法對 、 · \Jt*rice 影片模式訊號進行去交錯,;使蝽釜面模糊或跳動。 由於接收電視訊號時,可能穿插收到交錯訊號或影片模 式訊號’因此’接收機必須能夠適時地判別所收到訊號 的類別究竟屬於一般交錯訊號或為影片模式訊號.但是 ,傳統接收機無法在影片模式轉變為交錯模式時及時判 別並跳出影片模式’因而產生鋸齒狀並造成畫面破裂。 因此,亟需提出一種新穎的判斷機制,適時地將影片模 式轉變為一般交錯模式,以避免畫面產生破裂現象。 098135314 表單編號A0101 第 頁/共17頁 0982060555-0 [0007] 201116057 【發明内容】 []鑑;^上述,本發明實兔例的目的之—在於提出一種影片 模式贿方法’其可偵測得知訊號是否已由影>5模式轉 變為一般去交錯模式,用以適時地改變去交錯方法以 提升影像品質。 [0009]'This is the same as the deinterlacing of the interlaced signals.' If the interleaving method, the \Jt*rice film mode signal is deinterlaced; the enamel surface is blurred or beaten. Due to the reception of the TV signal, the interlaced signal or video mode signal may be interspersed. Therefore, the receiver must be able to discriminate whether the type of the received signal belongs to the general interlaced signal or the video mode signal. However, the conventional receiver cannot When the film mode is changed to the interlaced mode, the film mode is discriminated and jumped out in time', which is jagged and causes the picture to break. Therefore, it is urgent to propose a novel judgment mechanism to timely transform the film mode into a general interlaced mode to avoid cracking of the picture. 098135314 Form No. A0101 Page/Total 17 Page 0982060555-0 [0007] 201116057 [Summary] [] Jian; ^ The above, the purpose of the rabbit example of the present invention is to propose a film mode bribe method 'which can be detected Whether the signal has changed from the shadow > 5 mode to the general deinterlacing mode is used to change the deinterlacing method in time to improve the image quality. [0009]

根據本發明實施例,首年,決定目前是否處於影片模式 (him mode)。如果處於影片模式,則分析目前畫面 的像素,以決定異常像素個數是否超過臨界值。其中, 如果異常像素個數超過臨界值,則表示已離開影片模式 、】文以進行移動巧適去交錯(motion adaptive de_ interlace)。在本實施例味界植色含一畫面異常 臨界值及-掃描線異常臨界赛芦異常像素 個數超過常臨*值時,則‘動.常旗標, 使其狀態變為线;當目前雜線的異常像素個數超過 掃描線異f臨界值時’顯動—掃描線異常旗標,使其 «_主動β其巾’當主動時,則 整張畫面㈣描線去交錯;當掃描 線異常旗標變為主“,对儀線改為進行移動調 適去交錯;當畫面異常旗標及掃描線異常旗標皆為非主 動時’則進行影片模式去交錯。 【實施方式】 [0010]第一圖之流程圖顯示本發明實施例之影片模式(film mode)判斷或精化(refine)方法,用以偵測得知訊號 是否已由影片模式(film mode)轉變為一般去交錯模 式(de-interlace mode),因而適時地將影片模式去 098135314 表單煸號A0101 第5頁/共17頁 0982060555-0 201116057 方法改變為移動調適去交錯(motion adaptive lnterlace)方法,以避免晝面的鋸齒狀或破裂現象 [0011] :第''圖所示的流程中’首先,步驟11決定目前是否處 於影片模式。如果步驟11的結果為否,則進入步驟12, 使用移動調適去交錯技術來進行去交錯。一般來說,餘 止區你、 °节以時間上内插來進行去交錯,而移動區則以空間 上内插來進行去交錯。如果步驟11的結果為是,則於步 驟13中進一步分析統計目前畫面的像素資料。一旦統計 得知異常或產生蟓裂現象翁魯棄祕龜超遞饞界值時則 表=可能已離闕影片模式,入步驟12以移 動調適去交錯技術來進行去费*13並未發 現異常像素或其個數未超過臨界值,則表示仍然處於影 片棋式,因此,使其進入步驟14以影片模式去交錯技術 來進行去交錯。一般來說,於^影丨片模式下f係藉由複製 前一圖場或後—圖場的全圖場還原成 參 圖框According to an embodiment of the present invention, in the first year, it is decided whether or not it is currently in the mode of the mouse. If in movie mode, the pixels of the current picture are analyzed to determine if the number of abnormal pixels exceeds a critical value. Wherein, if the number of abnormal pixels exceeds a critical value, it means that the movie mode has been left, and the motion adaptive de_interlace has been moved. In the embodiment, the color boundary of the scent boundary includes a screen abnormal value and the number of abnormal pixels of the scanning line abnormality criticality exceeds the constant value*, then the 'moving flag is changed to make the state become a line; When the number of abnormal pixels of the miscellaneous line exceeds the critical value of the scanning line, the 'visual-scanning line abnormal flag' is such that when «_active β its towel' is active, the whole picture (four) is deinterlaced; when the scanning line The abnormal flag becomes the main ", and the instrument line is changed to perform mobile adaptation and deinterlacing; when the picture abnormal flag and the scan line abnormal flag are both inactive", the film mode is deinterleaved. [Embodiment] [0010] The flowchart of the first figure shows a film mode determination or refinement method according to an embodiment of the present invention for detecting whether a signal has been changed from a film mode to a general deinterlace mode ( De-interlace mode), thus timely changing the film mode to 098135314 Form nickname A0101 Page 5 of 17 page 0982060555-0 201116057 Change the method to the motion adaptive lnterlace method to avoid the jaggedness of the face Or broken Splitting phenomenon [0011]: In the flow shown in the '' diagram', first, step 11 determines whether it is currently in the film mode. If the result of step 11 is no, then proceeds to step 12, using the motion adaptation deinterlacing technique for deinterleaving. In general, the rest area you and the section are interpolated in time to interleave, and the moving area is spatially interpolated for deinterlacing. If the result of step 11 is yes, then in step 13 Analyze and count the pixel data of the current picture. Once the statistics know that the abnormality or the splitting phenomenon, Weng Lu abandoned the secret turtle super-delivery threshold value, then the table = may have left the film mode, proceed to step 12 to move the adaptive deinterlacing technology. The deferred fee *13 does not find that the abnormal pixel or its number does not exceed the critical value, it means that it is still in the movie chess style, so it goes to step 14 to deinterlace in the film mode deinterlacing technique. Generally speaking, in ^ In the shadow mode, f is restored to the reference frame by copying the entire field of the previous field or the back field.

Property Office ' [0012] 在本實施例中,步驟13之分析統計係以掃描線為單位來[0012] In this embodiment, the analysis and statistics of step 13 are in units of scan lines.

進行的。當整張畫面中異常像素個數已超過第—臨界值 (或稱為畫面異常臨界值)_’則啟動相關的第一旗找 (或稱為晝面異常旗標)fm_refine_en,使其狀心為 主動(active)。另外,當目前掃描線中異常像素個數 已超過第二臨界值(或稱為掃描線異常臨界值)時則 啟動相關的第二旗標(或稱為掃描線異常旗標) firefine-line一en,使其狀態變為主動(ΜΗν㈠。 098135314 表單編號A0101 第6頁/共17頁 0982060555-0 201116057 述第一旗標firef ine一en或第二旗標 ~eflne〜line—en至少一個被啟動時則進入步驟12 乂移動調適去交錯技術來進行去交錯;否則,進入步驟 4以影片模式去交錯技術來進行去交錯。在本實施例中 货第旗標fm_ref ine_en被啟動後’則整張畫面的掃 各線白t要改以移動調適去交錯;然而,啟動第二旗標 ine—line_en只會影響下一條掃描線。 [0013] 第一圏顯示啟動第一圖之第一/第二旗標的詳細流程圖。ongoing. When the number of abnormal pixels in the entire picture has exceeded the first-threshold value (or called the screen abnormality threshold) _', the related first flag search (or called facet abnormal flag) fm_refine_en is started to make it center-shaped. Active. In addition, when the number of abnormal pixels in the current scan line has exceeded the second critical value (or called the scan line abnormal threshold), the related second flag (or called the scan line abnormal flag) is started. firefine-line one En, its state becomes active (ΜΗν(一). 098135314 Form number A0101 Page 6 of 17 page 0982060555-0 201116057 The first flag firef ine one en or the second flag ~eflne~line-en at least one is activated Then go to step 12 乂 move adaptation deinterlacing technology to perform deinterlacing; otherwise, proceed to step 4 to perform deinterleaving by film mode deinterlacing technology. In this embodiment, the flag fm_ref ine_en is activated after the whole piece The scan line white t of the picture should be changed to move and adjust to deinterlace; however, starting the second flag ine-line_en will only affect the next scan line. [0013] The first line shows the first/second flag of the first picture. Detailed flowchart of the target.

首先,步驟21決定目前是否處於影片模式。如果步驟21 的結果為否,則進入一般去交錯模式;如果結果為是, 則以掃描線為單位,依序是否會產 生鋸齒狀或者是否為異常像|推各翁之去交錯 依據奇或偶囷場之不同,因而會複製前一圖場或下一 [0014] 圖場的全部掃描線。鏗於此,步㈣將會依據其是否複 製前-囷場掃描線,分別时驟及步3B來進行異 常像素的判定。第三爾顧德I減輩、pc、 叫、目前畫面(,線^|0¥畫面(掃描細 、NC、NE)的部分掃描線及其像素。 於步驟23A中’檢査目前畫面與前―畫面的對應位置是否 有差異或者是否具㈣的差異。步驟23β則是檢查目前畫 面與下-畫面的對應位置是否有差異或者是否具相當的 差異。在本實施例中,以變數Fl4示目前畫面與前一畫 面的對應位置是否有差異,而變數以則表示目前畫面與 下一畫面的對應位置是否有差異: Fl = 2* 丨 B-PC | > 丨 B-D | & 2” D-PC | > | B-D | 098135314 表單编號A0101 0982060555-0 201116057 F2=2* I B-NC I > I B-D | & 2* | D-NC | > | B-D | [0015] [0016] [0017] 另外,以變數Fll表示目前畫面與前一畫面的對應位置是 否具有相當的(或很大)差異’而以變數F22表示目前畫 面與下一畫面的對應位置是否具有相當的(或很大)差 異:First, step 21 determines if it is currently in movie mode. If the result of step 21 is no, the general deinterlacing mode is entered; if the result is YES, whether the zigzag or the abnormal image is generated in the order of the scanning line is in accordance with the odd or even The difference in the market, thus copying all the scan lines of the previous field or the next [0014] field. In this case, step (4) will determine the abnormal pixel based on whether it copies the front-field scan line, respectively, and step 3B. The third Erde, the pc, the call, the current screen (the line ^|0¥ screen (scanning fine, NC, NE) part of the scan line and its pixels. In step 23A 'check the current screen and the front - Whether there is a difference in the corresponding position of the picture or whether there is a difference in (4). In step 23β, it is checked whether there is a difference or a difference in the corresponding position between the current picture and the lower picture. In this embodiment, the current picture is indicated by the variable F14. Whether there is a difference from the corresponding position of the previous picture, and the variable indicates whether there is a difference between the current picture and the corresponding position of the next picture: Fl = 2* 丨B-PC | > 丨BD | & 2" D-PC | > | BD | 098135314 Form Number A0101 0982060555-0 201116057 F2=2* I B-NC I > I BD | & 2* | D-NC | > | BD | [0015] [0016] In addition, the variable F11 indicates whether the corresponding position of the current picture and the previous picture has a considerable (or large difference), and the variable F22 indicates whether the corresponding position of the current picture and the next picture has a considerable (or large )difference:

Fll=2* | B-PC | >( | B-D | +T) & 2* | D-PC | >( | B-D | +T) F22=2* | B-NC 丨 >(丨 B-D | +T) & 2* 丨 D-NC | >( | B-Fll=2* | B-PC | >( | BD | +T) & 2* | D-PC | >( | BD | +T) F22=2* | B-NC 丨>(丨BD | +T) & 2* 丨D-NC | >( | B-

D | +T) 其中,T為一預設常數。 . 此外,在本實施例中,還使前革面與前一 畫面的對毒位置是否使用二效果,並 以C2表示目前畫面與下一畫面的對應位置是否使用二維 去交錯會有較好效果,其可使用下式進行判定:D | +T) where T is a preset constant. In addition, in this embodiment, whether the opposite position of the front surface and the previous picture is used, and whether the corresponding position of the current picture and the next picture is used by the two-dimensional deinterlacing is better. The effect can be determined using the following formula:

Cl=2D_diff< :|』剩& __娜丨.& 2D_diff<Tspatial—diff》『p : C2=2D_diff< | B-NC | &《齡枝,!· I D-NC 丨 & 2D_di ff<Tspatial_di ff 其中,Tspatial_diff為預設常數’ 2D_diff代表二維 去交錯所決定的内插方向上,上、下兩條掃描線上選定 方向的像素點之間的差值。 在本實施例中’步驟23A以下式來判別其是否會產生鑛齒 狀或者是否為異常像素: ((F1 = = 1 & F 2 = = 0 )或(F11 = = 1 & F 2 2 = = 1))且 C1 098135314 表單編號A0101 第8頁/共17頁 0982060555-0 201116057 [_纟驟2_以下式來判別其是否會產生鑛齒狀或者是否為 異常像素: ((Fl==〇 & F2 = = l)或(Fll = = l & j?22 = = i))且C2 剛*果經步·3Α或步驟23B判定該像素會產生鑛齒狀或者 為異常像素,麟第二計數值(或稱為掃描線異常像素 計數值)fm_refine_line一count 加一(步驟 24),且 將第一計數值(或稱為畫面異常像素計數值) fm—refine_count加一(步疵25)。Cl=2D_diff< :|』left &__娜丨.&2D_diff<Tspatial-diff》『p : C2=2D_diff< | B-NC | & "age branch,!· I D-NC 丨& 2D_di ff<Tspatial_di ff where Tspatial_diff is a preset constant ' 2D_diff represents the difference between the pixels in the selected direction on the upper and lower scan lines in the interpolation direction determined by the two-dimensional deinterlacing. In the present embodiment, 'Step 23A' is used to determine whether it will produce a mineral tooth or whether it is an abnormal pixel: ((F1 = = 1 & F 2 = = 0 ) or (F11 = = 1 & F 2 2 = = 1)) and C1 098135314 Form No. A0101 Page 8 / Total 17 Page 0992060555-0 201116057 [_ Step 2_ The following formula to determine whether it will produce orthodontic or abnormal pixels: (Fl== 〇& F2 = = l) or (Fll = = l & j?22 = = i)) and C2 just * step through step 3 or step 23B determines that the pixel will produce a mineral tooth or an abnormal pixel, The second count value (or referred to as scan line abnormal pixel count value) fm_refine_line-count plus one (step 24), and the first count value (or called picture abnormal pixel count value) fm_refine_count is incremented by one (step 25) ).

[0020] 重複上述步驟21-25,直到等锋掃描線處理結束(步驟26 )為止。接著,於步驟愈素計數值 fm_ref ine-1 ine_count __1 ine_th e 通 #二__每_為固定值 其只與畫面寬度·。如果步驟27_定結果為是,則 啟動相關的第二旗標(掃描線異常旗標). 為,,1” 另一方面,當整條掃描線 e-Une-⑽,使_麵⑽-)或[0020] The above steps 21-25 are repeated until the equal-line scan line processing ends (step 26). Next, in the step, the count value fm_ref ine-1 ine_count __1 ine_th e pass #二__ every _ is a fixed value, which is only related to the screen width·. If the result of step 27_ is YES, the relevant second flag (scan line abnormal flag) is started. For, 1" On the other hand, when the entire scan line e-Une-(10), the _ face (10) - )or

Pron^rfv ***» fensa- -η#*» £ ? Tr 步驟26)時,除了 會重置(reset)掃描線異常像素計數值 fm_refine_line_count (步驟28),也會於步驟⑼判 定畫面異常像素計數值返refine_c_t是否超過(第 )臨界值fm一refine_th。通常,此第一臨界值為變動 值’其會因所處掃描線位置而不同,越下面的掃插線, 則此第—臨界值會越大。如果㈣29的判定結果為是, 則啟動相闕的第-旗標(畫面異常旗標〜efine_en ’使其狀態變為主動(active)或為„ 。 098135314 表單编號 0982060555-0 201116057 [0022] 根據上述實施例,藉由鋸齒狀異常像素點的判斷,可以 偵測得知訊號是否已由影片模式轉變為一般去交錯模式 ,因而適時地改變去交錯方法,以避免畫面的鋸齒狀及 破裂現象。 [0023] 以上所述僅為本發明之參佳實施例而已,並非用以限定 本發明之申請專利範圍;凡其它未脫離發明所揭示之精 神下所完成之等效改變或修飾,均應包含在下述之申請 專利範圍内。 【圖式簡單說明】 · [0024] 第一圖之流程圖顯示本發明實施例之影片模式判斷方法 第二圖顯示啟動第一圖之第一第二旗標的詳細流程圖。 第三圖顯示前一畫面、目前畫面、下一畫面的部分掃描 線及其像素。 【主要元件符號說明】 [0025] 11-14 步驟 2卜29 步驟 PA/PC/PE前一晝面之像素 B/D 目前畫面之像素 NA/NC/NE下一畫面之像素 0982060555-0 098135314 表單編號A0101 第10頁/共17頁When Pron^rfv ***» fensa- -η#*» £ ? Tr step 26), in addition to resetting the scan line abnormal pixel count value fm_refine_line_count (step 28), the screen abnormal pixel is also determined in step (9). Whether the count value returns to refine_c_t exceeds the (th) threshold fm-refine_th. Usually, the first threshold value is a variation value, which varies depending on the position of the scanning line, and the lower the sweep line, the larger the first critical value. If the result of the determination of (4) 29 is YES, the corresponding flag of the phase (the picture abnormal flag ~efine_en ' is started to make its state become active or „. 098135314 Form No. 0982060555-0 201116057 [0022] In the above embodiment, by judging the jagged abnormal pixel point, it can be detected whether the signal has changed from the film mode to the general deinterlacing mode, and thus the deinterlacing method is changed in time to avoid the jagged and broken phenomenon of the picture. 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 included in the spirit of the invention should be included. [0024] The flow chart of the first figure shows the film mode determination method of the embodiment of the present invention. The second figure shows the details of starting the first and second flags of the first figure. The third diagram shows the previous screen, the current screen, and the partial scan lines of the next screen and their pixels. [Main component symbol description] [0025] 11-14 Bu step 2 step 29 PA / PC / PE pixels front side of a day B / D picture of the current pixel NA / NC / NE of the next screen 0982060555-0 Form Number A0101 098 135 314 Page 10/17 Total

Claims (1)

201116057 七、申請專利範圍: 1 . 一種影片模式判斷方法,包含: 決定目前是否處於影片模式(film mode);及 如果處於影片模式,則分析目前畫面的像素,以決定異常 像素個數是否超過臨界值; 其中,如果該異常像素個數超過該臨界值,則表示已離開 影片模式。 2 .如申請專利範圍第1項所述之影片模式判斷方法,如果非 ^ 處於影片模式或已離開影片模式,則進行移動調適去交錯 W (motion adaptive de-interlace);否則,進行影 片模式去交錯(film mode de-interlace ;。 3 .如申請專利範圍第2項所述之影片模式判斷方法,其中上 述之移動調適去交錯步驟中,靜止區以時間上( temporal)内插進行去交錯,而移動區以空間上( spatial)内插進行去交錯,用以將圖場還原成圖框。 4 .如申請專利範圍第2項所述之影栽式ijW方法,其中上 ^ 述之影片模式去交錯步驟中,係前一圖場或下一 ....ήa J y 4 ^ rnm-M 圖場的全部掃描線,用以將圖4'遠扁成圖框。 5 .如申請專利範圍第1項所述之影片模式判斷方法,其中上 述像素的分析步驟中,係以掃描線為單位進行。 6.如申請專利範圍第1項所述之影片模式判斷方法,其中上 述異常像素個數是否超過臨界值的決定步驟包含: 當整張畫面的異常像素個數超過一畫面異常臨界值時,則 啟動一畫面異常旗標,使其狀態變為主動;及 當目前掃描線的異常像素個數超過一掃描線異常臨界值時 098135314 表單編號A0101 第11頁/共17頁 0982060555-0 201116057 ’則啟動-掃描線異常旗標, 如申請專利範圍第6項所述之模式;:為主動。 述之掃描線異常臨界值為—固定萬式列斷方法,其中上 。 其相關於畫面的寬度 如申請專利範圍第"所述之影片模式 述畫面異常臨界值隨掃描 斷方法,其中上 的掃描線,該畫面異常臨界值越大置而變動’位於越下面 如申請專利範圍第"所述之料模式 面異常旗標變為线時,則 法’“晝 Ο 移動調適去交錯;當談掃描 的掃描線皆改為進行 該掃描線異常旗標料非主旗標及 。 :¾ 丁,模式去交錯 ίο 11 . 098135314 如申請專利範圍第6項所述之影片模式判_方法,其中上 述異常像素個數是魏舰界值的衫㈣包含:、 檢查目前畫面之像素與:㈣咖是否有差異; lX':)per% 、’ 如果經檢查具有差奠,則將^賴異常像素計數值予以 計數加且將-畫面異常像素計數值予以計數加一; 如果整條掃麟之掃描線異常像素計數值超過該掃描線異 常臨界值時,則啟動該掃描線異常旗標,使其狀態變為主 動;及 如果整張畫面之晝面異常像素計數值超過該畫面異常臨界 值時’則啟動該畫面異常旗標,使其狀態變為主動。 如申請專利範圍第10項所述之影片模式判斷方法,更包含 以變數F1表示目前畫面之像素與前一畫面的對應位置是否 表單编號A0101 第12頁/共17頁 0982060555-0 201116057 有差異,而以變數F2表示目前畫面之像素與下一畫面的對 應位置是否有差異: Fl=2* | B-PC 丨 > | B-D 丨 & 2木丨 D-PC 丨 > 丨 B-D |, F2 = 2* 丨 B-NC 丨 > 丨 B-D 丨 & 2木 | D-NC 丨 > 丨 B-D 丨, 12201116057 VII. Patent application scope: 1. A film mode judgment method, comprising: determining whether the film mode is currently in use; and if in the film mode, analyzing the pixels of the current picture to determine whether the number of abnormal pixels exceeds the critical value. Value; wherein, if the number of abnormal pixels exceeds the critical value, it indicates that the movie mode has been left. 2. The film mode judging method according to claim 1 of the patent application, if the film mode is in the film mode or has left the film mode, then the motion adaptive de-interlace is performed; otherwise, the film mode is performed. The film mode de-interlace method is as described in claim 2, wherein in the moving adjustment deinterlacing step, the still region is deinterleaved by temporal interpolation. The moving area is deinterlaced by spatial interpolation to restore the field to a frame. 4. The film-based ijW method described in claim 2, wherein the film mode is as described above. In the deinterlacing step, the entire field of the previous field or the next .... ήa J y 4 ^ rnm-M field is used to flatten the picture of Figure 4' into a frame. The film mode judging method according to the first aspect, wherein the analyzing step of the pixel is performed in units of scanning lines. 6. The film mode judging method according to claim 1, wherein the number of abnormal pixels whether The determining step of the over-critical value includes: when the number of abnormal pixels of the entire screen exceeds a screen abnormal threshold, the screen abnormal flag is activated to make the state become active; and the number of abnormal pixels of the current scanning line More than one scan line abnormal threshold value 098135314 Form No. A0101 Page 11 / Total 17 page 0982060555-0 201116057 'The start-scan line abnormal flag, as described in the scope of claim 6;: Active. The scanning line abnormality threshold value is a fixed 10,000-column breaking method, wherein the upper one is related to the width of the picture, as described in the patent application scope "the film mode description screen abnormal threshold value with the scanning method, wherein the scanning Line, the larger the abnormal value of the screen is, the more the value is changed. The more the flag is, the more the flag is, the more the flag is, the more the flag is. The scanned scan lines are all changed to the scan line abnormal flag material non-main flag and . : 3⁄4 D, mode deinterlace ίο 11 . 098135314 The film mode judgment method according to item 6, wherein the number of abnormal pixels is the value of the Wei ship boundary value (4) includes: checking the pixels of the current picture and: (4) whether there is a difference between the coffees; lX':)per%, 'If there is a difference in the inspection, the abnormal pixel count value will be counted and the -picture abnormal pixel count value will be counted plus one; if the entire scan line abnormal line count value exceeds the scan line abnormality critical When the value is set, the scan line abnormal flag is activated to make its state active; and if the abnormal pixel count value of the entire screen exceeds the screen abnormal threshold value, the screen abnormal flag is activated to make the state Become active. For example, the film mode judging method described in claim 10 of the patent application further includes the variable F1 indicating whether the corresponding position of the pixel of the current picture and the previous picture is different from the form number A0101, page 12/17 pages 0982060555-0 201116057 And the variable F2 indicates whether there is a difference between the pixel of the current picture and the corresponding position of the next picture: Fl=2* | B-PC 丨> | BD 丨& 2 丨D-PC 丨> 丨BD |, F2 = 2* 丨B-NC 丨> 丨BD 丨& 2 wood | D-NC 丨> 丨BD 丨, 12 13 其中,若畫面由上至下依序為掃描線A、B、C、β、E ,則 PC代表前一畫面的掃描線c ; Β、D分別代表目前畫面的掃 描線B、D ; NC代表下一畫面.的掃描線〇 如申請專利範圍第11項所述之影片模式判斷方法,更包含 以變數F11表示目前畫面之像素與前一畫面的對應位置是 否有大差異’其大於該變數之差異;而以變數F22表示 目前畫面之像素與下一畫面神對應位置:是守.有大差異,其 大於該變數F2之差異: :\ Fll=2* I B-PC I >( I B-D I +Τ) & 2*1 Β-PC 丨 >(I b-d I +t) , - F22=2* I B-NC |>( | B-D | +T) & 2* | D-NC | >( | B-D I +n i Intellecfua! 其中,τ為一預設常數Properly 如申請專利範圍第i2項所企载式判斷方法,更包含 以變數C1來表示目前畫面與前一畫面的對應位置是否使用 二維去交錯會有較好效果,而以變數C2表示目前畫面與下 一畫面的對應位置是否使用二維去交錯會有較好效果: Cl=2D_diff< | B-PC | & 2D_diff< | D-PC | & 2D_diff<Tspatial_diff , C2=2D_diff< I B-NC | & 2D_diff< | D-NC | & 2D_diff<Tspatial_diff ♦ 其中,Tspatial_diff為預設常數,2D_diff代表二維 098135314 表單編ft A0101 第13頁/共17頁 0982060555-0 201116057 去交錯所決定的内插方向上,上、下兩條掃描線上選定方 向的像素點之間的差值。 14 .如申請專利範圍第13項所述之影片模式判斷方法如果目 冑係複製前-畫面之掃描線’若符合下式則判定目前像素 為異常像素: ~ 15 ((Fl= = l & F2 = = 0)或(Fll= = l & F22=q))且C1。 如申請專利範圍第13項所述之影片模式判斷方法,如果目 前係複製下-畫面之掃描線,絲合下式則判定目^象^ 為異常像素:13 Where, if the picture is from scan to line A, B, C, β, E in order from top to bottom, PC represents the scan line c of the previous picture; Β, D respectively represent the scan lines B, D of the current picture; NC The scanning line representing the next picture, such as the film mode judging method described in claim 11, further includes whether the pixel of the current picture has a large difference from the corresponding position of the previous picture by the variable F11, which is larger than the variable. The difference is; the variable F22 indicates that the pixel of the current picture corresponds to the position of the next picture: it is a guard. There is a big difference, which is greater than the difference of the variable F2: :\ Fll=2* I B-PC I >( I BD I +Τ) & 2*1 Β-PC 丨>(I bd I +t) , - F22=2* I B-NC |>( | BD | +T) & 2* | D- NC | >( | BD I +ni Intellecfua! where τ is a preset constant Properly, as in the application-type judging method of the i2 item of the patent application, and further includes the variable C1 to represent the correspondence between the current picture and the previous picture. Whether the position uses two-dimensional deinterlacing will have a better effect, and the variable C2 indicates whether the corresponding position of the current picture and the next picture uses two-dimensional Wrong will have a better effect: Cl=2D_diff< | B-PC | &2D_diff< | D-PC | &2D_diff<Tspatial_diff,C2=2D_diff< I B-NC | &2D_diff< | D-NC | &2D_diff<Tspatial_diff ♦ where Tspatial_diff is a preset constant, 2D_diff stands for 2D 098135314 Form ft A0101 Page 13 of 17 0982060555-0 201116057 Deinterlacing determines the interpolation direction, upper and lower scan lines The difference between the pixels in the selected direction. 14. The method for judging the film mode as described in claim 13 is to determine if the current pixel is an abnormal pixel if the target is copied. : ~ 15 ((Fl= = l & F2 = = 0) or (Fll= = l & F22=q)) and C1. As in the film mode judgment method described in item 13 of the patent application, if the current system Copy the scan line of the next-screen, and the following formula determines that the target ^ is an abnormal pixel: ((F1= = 0 & F2 = = l)或(Fll==l & 卩,22=^1))且〇2((F1= = 0 & F2 = = l) or (Fll==l & 卩, 22=^1)) and 〇2 098135314 表單蝙* A0101 第14頁/共17頁 0982060555-0098135314 Form bat* A0101 Page 14 of 17 0982060555-0
TW98135314A 2009-10-19 2009-10-19 Method of determining film mode TWI410133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98135314A TWI410133B (en) 2009-10-19 2009-10-19 Method of determining film mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98135314A TWI410133B (en) 2009-10-19 2009-10-19 Method of determining film mode

Publications (2)

Publication Number Publication Date
TW201116057A true TW201116057A (en) 2011-05-01
TWI410133B TWI410133B (en) 2013-09-21

Family

ID=44934682

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98135314A TWI410133B (en) 2009-10-19 2009-10-19 Method of determining film mode

Country Status (1)

Country Link
TW (1) TWI410133B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100902315B1 (en) * 2002-07-25 2009-06-12 삼성전자주식회사 Apparatus and method for deinterlacing
US20050225671A1 (en) * 2004-04-09 2005-10-13 Scott Jen Method of Processing Fields of Images and Related Device for Data Lines Similarity Detection
EP1592256B1 (en) * 2004-04-30 2009-06-17 Panasonic Corporation Image status information correction
US8120703B2 (en) * 2005-09-08 2012-02-21 Silicon Image/BSTZ Source-adaptive video deinterlacer
US20080259206A1 (en) * 2007-04-17 2008-10-23 Himax Technologies Limited Adapative de-interlacer and method thereof

Also Published As

Publication number Publication date
TWI410133B (en) 2013-09-21

Similar Documents

Publication Publication Date Title
KR100303728B1 (en) Deinterlacing method of interlaced scanning video
TWI309950B (en) Image signal processing device, image signal processing method, and image signal displaying device
US8497937B2 (en) Converting device and converting method of video signals
KR20040010862A (en) Apparatus and method for deinterlacing
US20080174694A1 (en) Method and apparatus for video pixel interpolation
JP4933209B2 (en) Video processing device
JP4510874B2 (en) Composite image detector
JP2007274411A (en) Device and method for detecting pull-down signal, and device and method for converting sequential scanning
KR20050037293A (en) Artifacts suppress apparatus of video signal and a method thereof
TWI471010B (en) A motion compensation deinterlacing image processing apparatus and method thereof
US7688388B2 (en) Image processing method and device thereof
TWI392333B (en) De-interlace system
TW201116057A (en) Method of determining film mode
KR100540380B1 (en) Apparatus and method for intra field interpolation of deinterlacer
JP4339237B2 (en) Sequential scan converter
TWI394457B (en) Text protection device and related motion adaptive de-interlacing device
KR100594780B1 (en) Apparatus for converting image and method the same
WO2008038442A1 (en) Color difference signal ip converting method
TWI500316B (en) Method of de-interlacing a horizontal moving subtitle
US20110298977A1 (en) Video processing device
TWI412268B (en) Method of de-interlacing a horizontal moving subtitle
TWI403160B (en) Method of detecting a subtitle
CN102045529B (en) Film mode judgment method
TWI446793B (en) Apparatus and method for detecting video film with mix mode
TWI249354B (en) A method for de-interlacing an interlaced image

Legal Events

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