KR100982509B1 - Film mode detection method and apparatus - Google Patents

Film mode detection method and apparatus Download PDF

Info

Publication number
KR100982509B1
KR100982509B1 KR1020030035561A KR20030035561A KR100982509B1 KR 100982509 B1 KR100982509 B1 KR 100982509B1 KR 1020030035561 A KR1020030035561 A KR 1020030035561A KR 20030035561 A KR20030035561 A KR 20030035561A KR 100982509 B1 KR100982509 B1 KR 100982509B1
Authority
KR
South Korea
Prior art keywords
motion prediction
video signal
prediction mode
field
mode
Prior art date
Application number
KR1020030035561A
Other languages
Korean (ko)
Other versions
KR20040104966A (en
Inventor
송병철
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020030035561A priority Critical patent/KR100982509B1/en
Publication of KR20040104966A publication Critical patent/KR20040104966A/en
Application granted granted Critical
Publication of KR100982509B1 publication Critical patent/KR100982509B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0112Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level one of the standards corresponding to a cinematograph film standard
    • H04N7/0115Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level one of the standards corresponding to a cinematograph film standard with details on the detection of a particular field or frame pattern in the incoming video signal, e.g. 3:2 pull-down pattern
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors

Abstract

본 발명은 영상신호처리에 관한 것으로, 구체적으로는 입력되는 영상신호의 필름 모드를 검출하는 방법 및 장치에 관한 것이다. 본 발명의 필름모드 검출방법은, (a) 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는 단계; (b) 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트하는 단계; (c) 상기 카운트한 값과 소정의 문턱값과 비교하여 0 또는 1로 출력하는 단계; 및 (d) 상기 출력된 값의 주기성을 찾아 필름모드를 판단하는 단계를 포함한다. 본 발명의 방법을 사용하면, 동영상 인코더에서 생성되는 부가정보를 이용하기 때문에, 하드웨어가 복잡하지 않고 별도의 연산과정이 필요하지 않아 효율적이다.The present invention relates to video signal processing, and more particularly, to a method and apparatus for detecting a film mode of an input video signal. The film mode detection method of the present invention comprises the steps of: (a) receiving motion prediction mode information of each field of the interlaced video signal; (b) counting the number of macro blocks having a motion vector of (0, 0) by performing motion prediction on the respective fields under the motion prediction mode; (c) comparing the counted value with a predetermined threshold value and outputting the value as 0 or 1; And (d) determining the film mode by looking for the periodicity of the output values. Using the method of the present invention, since the additional information generated by the moving picture encoder is used, the hardware is not complicated and no additional calculation process is required, which is efficient.

Description

필름 모드 검출방법 및 장치 {Film mode detection method and apparatus} Film mode detection method and apparatus

도 1은 3:2 풀다운 방법을 사용하여 초당 24개의 영화 프레임을 초당 60개의 필드로 변환하는 것을 설명하는 도면이다.1 is a diagram illustrating the conversion of 24 movie frames per second to 60 fields per second using the 3: 2 pulldown method.

도 2는 인터레이스드 필드를 프로그레시브 프레임으로 변환하는 것을 설명하는 도면이다.2 is a diagram illustrating conversion of an interlaced field into a progressive frame.

도 3은 IPPP 구조를 갖는 입력영상으로부터 필름모드를 검출하는 것을 설명하는 도면이다.3 is a diagram illustrating detecting a film mode from an input image having an IPPP structure.

도 4는 IBP 구조를 갖는 입력영상으로부터 필름모드를 검출하는 것을 설명하는 도면이다.4 is a diagram illustrating detecting a film mode from an input image having an IBP structure.

도 5는 상술한 필름모드 검출방법의 플로우차트이다.5 is a flowchart of the film mode detection method described above.

도 6은 필름모드 검출장치의 블록도이다.6 is a block diagram of a film mode detection apparatus.

본 발명은 영상신호처리에 관한 것으로, 구체적으로는 입력되는 영상신호의 필름 모드를 검출하는 방법 및 장치에 관한 것이다.The present invention relates to video signal processing, and more particularly, to a method and apparatus for detecting a film mode of an input video signal.

영화, TV, DVD 등에서 재생되는 영상물은 서로 다른 프레임 구조를 가지고 있다. 입력된 영상 소스가 영화인 경우를 필름 모드라고 하는데, 영화는 초당 24장의 프로그레시브 프레임(progressive frame)으로 구성되며, TV 영상이나 DVD 비디오는 초당 60장의 인터레이스드 필드(interlaced field)로 구성된다. 따라서 영화용으로 제작된 영상을 TV를 통해 방영하기 위해서는 초당 24개의 프로그레시브 프레임을 초당 60개의 인터레이스드 필드로 변환하여야 한다. 이러한 변환을 수행하는 것을 텔레시네(Telecine)라고 하며, 영화를 NTSC TV 영상으로 변환하는 과정에서 3:2 풀다운(pull down)이라고 하는 방법이 사용된다.Images played in movies, TV, DVD, etc. have a different frame structure. When the input image source is a movie, it is called a film mode. A movie is composed of 24 progressive frames per second, and a TV image or a DVD video is composed of 60 interlaced fields per second. Therefore, in order to broadcast a movie produced on a movie, it is necessary to convert 24 progressive frames per second into 60 interlaced fields per second. Performing this conversion is called telecine, and a method called 3: 2 pull down is used in converting a movie into an NTSC TV image.

도 1은 3:2 풀다운 방법을 사용하여 초당 24개의 영화 프레임을 초당 60개의 필드로 변환하는 것을 설명하는 도면이다.1 is a diagram illustrating the conversion of 24 movie frames per second to 60 fields per second using the 3: 2 pulldown method.

도 1을 참조하면, 하나의 프레임(110)으로부터 탑 필드(top field)(111), 버텀 필드(bottom field)(112)를 추출하고, 다시 탑 필드(113)를 한번 더 추출한다. 그리고, 다음 프레임(120)에서 버텀 필드(121) 및 탑 필드(122)를 추출한다. 이러한 과정을 통해서 2개의 프로그레시브 프레임이 5개의 인터레이스드 필드로 변환된다. 또는 한 프레임(130)에서 버텀 필드(131), 탑 필드(132) 및 버텀 필드(133)를 추출한 후에 다음 프레임으로부터 탑 필드와 버텀 필드를 추출한다. 마찬가지로, 이러한 과정을 통해서 2개의 프로그레시브 프레임이 5개의 인터레이스드 필드로 변환된다.Referring to FIG. 1, the top field 111 and the bottom field 112 are extracted from one frame 110, and the top field 113 is extracted again. Then, the bottom field 121 and the top field 122 are extracted in the next frame 120. Through this process, two progressive frames are converted into five interlaced fields. Alternatively, after extracting the bottom field 131, the top field 132, and the bottom field 133 in one frame 130, the top field and the bottom field are extracted from the next frame. Similarly, this process converts two progressive frames into five interlaced fields.

영화 화면이 상술한 3:2 풀다운 방법에 의해 60개의 인터레이스드 필드로 변환되면, 탑 필드와 버텀 필드를 조합하여 60개의 프로그레시브 프레임으로 만들 수 있다. When the movie screen is converted into 60 interlaced fields by the above-described 3: 2 pull-down method, 60 progressive frames may be combined by combining the top field and the bottom field.                         

도 2는 인터레이스드 필드를 프로그레시브 프레임으로 변환하는 것을 설명하는 도면이다.2 is a diagram illustrating conversion of an interlaced field into a progressive frame.

영화 화면을 3:2 풀다운 방법에 의해 변환시킨 영상이 주어지면, 탑 필드와 버텀 필드를 조합하여 3:2 풀다운이 수행되기 전의 프로그레시브 프레임을 얻을 수 있다. 이렇게 만들어 재생하면 보다 향상된 화질을 얻을 수 있고, 슬로우 모션으로 재생시에도 부드러운 움직임의 영상을 얻을 수 있다. 그리고, 24 Frame/second 인 영화를 60 Field/second로 저장함으로써 저장공간이 낭비되는 것을 방지할 수 있다. 그러나 입력 영상이 3:2 풀다운된 영상인지, 아니면 원래부터 인터레이스드 필드로 구성된 영상인지를 판별하여야만 입력영상의 종류에 따라 다른 처리를 수행할 수 있다. 이러한 영상모드의 검출은 NTSC가 아닌 PAL 이나 기타 다른 영상 신호에 대해서도 필요하다. Given an image converted from the movie screen by the 3: 2 pulldown method, a progressive frame before the 3: 2 pulldown is performed by combining the top field and the bottom field. If you play it like this, you can get better image quality and you can get smooth motion video even when playing in slow motion. In addition, by storing a movie having 24 Frame / second at 60 Field / second, it is possible to prevent waste of storage space. However, it is possible to perform different processing according to the type of input image only by determining whether the input image is a 3: 2 pull-down image or an original image composed of an interlaced field. Detection of these video modes is also required for PAL or other video signals other than NTSC.

필름 모드를 검출하기 위한 기존의 방법은, 이용되는 검출특성에 따라 크게 두 가지로 나눌 수 있다. 첫번째는 두 필드(한 프레임) 시간마다 계산되는 필드간의 SAD(Sum of Absolute Difference)의 패턴을 이용하는 것이다. 보다 구체적으로는, 이 SAD의 주기가 5인 특성을 이용하는 방법과 좀 더 주기성 있는 SAD 패턴을 얻기 위해 이전 SAD와의 차 신호를 구하고 이 차 신호의 주기가 5라는 특성을 이용하는 방법이 있다.There are two conventional methods for detecting the film mode, depending on the detection characteristics used. The first is to use a pattern of sum of absolute difference (SAD) between fields calculated every two field (one frame) time. More specifically, there are a method using the characteristic of the period of this SAD is 5 and a method of obtaining the difference signal from the previous SAD and using the characteristic of the period of this difference signal is 5 to obtain a more periodic SAD pattern.

두 번째 방법은 한 필드 시간 사이의 필드간 움직임의 패턴 특성을 이용하는 방법이다. 보다 구체적으로는, 블록의 움직임 벡터의 합을 이전에 구한 합과 합했을 때 이 값이 일정 범위 내에 존재해야만 한다는 것을 이용한 방법과, 픽셀의 움 직임의 크기를 구하여 합함으로써 전체 필드의 움직임의 크기를 구하고 그 신호를 디지털 패턴으로 변화시켰을 때의 바이너리 시퀀스(예를 들어 100010)와 비교하여 필름 모드를 검출하는 방법이 있다.The second method is to use a pattern characteristic of interfield movement between field times. More specifically, the method using the sum of the motion vector of the block and the sum of the previously obtained sum should be within a certain range, and the magnitude of the motion of the entire field by calculating and adding the magnitude of the motion of the pixel. There is a method of detecting the film mode by comparing with a binary sequence (for example, 100010) when obtaining a signal and converting the signal into a digital pattern.

SAD 패턴을 이용하는 방법은 동일한 필드의 프레임 정보끼리의 차를 이용하는 방법이고, 움직임 벡터를 이용하는 방법은 바로 인접한 필드간의 움직임 벡터를 이용하는 방법이다. 그러나 여전히 정확한 패턴을 찾는데 어려움이 있다.The method using the SAD pattern uses a difference between frame information of the same field, and the method using a motion vector uses a motion vector between immediately adjacent fields. However, there are still difficulties in finding the correct pattern.

본 발명이 이루고자 하는 기술적 과제는, 동일한 종류의 필드뿐만 아니라 다른 종류의 필드간의 차 정보 및 움직임 벡터 정보를 이용하여, 보다 정확하게 필름 모드를 검출하는 방법 및 장치를 제공하는데 있다.An object of the present invention is to provide a method and apparatus for more accurately detecting a film mode by using difference information and motion vector information between fields of different types as well as fields of the same type.

상기의 과제를 이루기 위하여 본 발명에 의한 필름 모드 검출방법은, (a) 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는 단계; (b) 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트하는 단계; (c) 상기 카운트한 값과 소정의 문턱값과 비교하여 0 또는 1로 출력하는 단계; 및 (d) 상기 출력된 값의 주기성을 찾아 필름모드를 판단하는 단계를 포함한다.In order to achieve the above object, the film mode detection method according to the present invention comprises the steps of: (a) receiving motion prediction mode information of each field of an interlaced video signal; (b) counting the number of macro blocks having a motion vector of (0, 0) by performing motion prediction on the respective fields under the motion prediction mode; (c) comparing the counted value with a predetermined threshold value and outputting the value as 0 or 1; And (d) determining the film mode by looking for the periodicity of the output values.

상기의 과제를 이루기 위하여 본 발명에 의한 필름 모드 검출장치는, 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는 ME 정보 입력부; 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트하는 계수부; 상기 카운트한 값과 소정의 문턱값과 비교하여 0 또는 1로 출력하는 비교부; 및 상기 출력된 값의 주기성을 찾아 필름모드를 판단하는 패턴검출부를 포함한다.In order to achieve the above object, the film mode detecting apparatus according to the present invention includes a ME information input unit for receiving motion prediction mode information of each field of an interlaced video signal; A coefficient unit for performing motion prediction on each of the fields under the motion prediction mode and counting the number of macro blocks having a motion vector of (0, 0); A comparison unit comparing the counted value with a predetermined threshold value and outputting the value as 0 or 1; And a pattern detection unit that determines a film mode by looking for periodicity of the output value.

상기한 과제를 이루기 위하여 본 발명에서는, 상기 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공한다.In order to achieve the above object, the present invention provides a computer-readable recording medium recording a program for executing the method on a computer.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일실시예를 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 필름모드 검출방법은 인코더 내부에서 동작하는 디텔레시네(detelecine) 방법에 사용되는 것으로, 다음과 같은 기본 가정하에서 동작한다. 즉, 입력 영상은 탑 필드가 먼저 나오는 영상이다. 그리고, 인코더의 움직임 예측(Motion Estimation: ME) 모듈은 I-프레임에 대해서도 P 프레임인 것처럼 ME 과정을 수행하고, 실제 부호화는 I-프레임으로 한다고 가정한다. 이는 I-프레임에 대해서도 움직임 정보가 필요하기 때문이다. 인코더에서 대개 ME 모듈은 항상 동작중이라고 할 수 있으므로 별 무리없이 이런 가정이 가능하다. 한편 본 발명은 특별한 ME 모듈을 사용하지 않는 한, IPPP 구조와 IBP 구조의 GOP(Group of Picture) 영상인 경우에 잘 동작한다.The film mode detection method of the present invention is used in a detelecine method operating in an encoder, and operates under the following basic assumptions. That is, the input image is an image in which the top field comes out first. In addition, the motion estimation module (ME) of the encoder performs the ME process as if it is a P frame for the I-frame, and assumes that the actual encoding is an I-frame. This is because motion information is also required for the I-frame. In an encoder, the ME module is usually always running, so this assumption is easy. Meanwhile, the present invention works well in the case of GOP (Group of Picture) images of the IPPP structure and the IBP structure, unless a special ME module is used.

도 3은 IPPP 구조를 갖는 입력영상으로부터 필름모드를 검출하는 것을 설명하는 도면이다.3 is a diagram illustrating detecting a film mode from an input image having an IPPP structure.

인터레이스드 필드의 영상의 경우 field ME와 frame ME가 모두 수행되며, 둘 중 왜곡이 적은 방식의 움직임 예측(ME)을 택한다. FT n+1와 FB n+2 으로 구성된 P 프레임, P3(310)에서 필드 ME는 도 3을 참조하여 알 수 있듯이, 탑 필드에서 탑 필드로의 움직임 예측(ME)인 T2T(311), 탑 필드에서 버텀 필드로의 움직임 예측인 T2B(312), 버텀 필드에서 탑 필드로의 움직임 예측인 B2T(313) 및 버텀 필드에서 버텀 필드로의 움직임 예측인 B2B(314)로 구성된다. 그리고 탑 필드는 T2T(311)와 T2B(312)중에서 왜곡이 적은 모드를 선택하고, 버텀 필드는 B2T(313)와 B2B(314)중에서 왜곡이 적은 모드를 선택한다.In the case of an image of an interlaced field, both field ME and frame ME are performed, and a motion prediction (ME) of a less distortion type is selected. In the P frame composed of F T n + 1 and F B n + 2 , P3 310, the field ME is T2T 311 which is a motion prediction (ME) from the top field to the top field, as can be seen with reference to FIG. 3. T2B 312, which is the motion prediction from the top field to the bottom field, B2T 313, which is the motion prediction from the bottom field to the top field, and B2B 314, which is the motion prediction from the bottom field to the bottom field. The top field selects a mode with less distortion among the T2T 311 and the T2B 312, and the bottom field selects a mode with less distortion among the B2T 313 and the B2B 314.

도 3을 참조하면, P3(310)의 탑 필드의 움직임 예측에서 대부분의 매크로 블록들이 T2T 모드로 선택된다. 그리고 그 때의 움직임 벡터(Motion Vector : MV)는 (0, 0)이 될 확률이 높다. 왜냐하면 P3(310)의 T2T(311) 움직임 예측에서 탑 필드가 모두 FT n+1로 동일하기 때문이다. P3(310)의 탑 필드의 움직임 예측에서, T2T 모드이며 움직임 벡터(MV)가 (0, 0)인 매크로블록들의 수를 NT 3라고 하자, 이상적인 경우에 NT 3는 필드내의 매크로블록의 수와 동일하다. 그리고 그때의 NT 3값이 최대값이 된다. 이상적인 경우가 아니라고 하더라도 최대값에 근사한 값이 될 것이다.Referring to FIG. 3, most of the macro blocks are selected in the T2T mode in the motion prediction of the top field of P3 310. At that time, the motion vector (MV) is likely to be (0, 0). This is because the top fields are all equal to F T n + 1 in the T2T 311 motion prediction of P3 310. In the top field motion prediction of P3 310, let N T 3 be the number of macroblocks in T2T mode and the motion vector (MV) is (0, 0), ideally N T 3 is the value of the macroblock in the field. Same as number. The value of N T 3 at that time becomes the maximum value. Although not ideal, it will be close to the maximum.

버텀 필드의 움직임 예측에서는 B2B 모드이면서 움직임 벡터가 (0, 0)인 매크로블록의 수를 계산한다. 그리고 그때의 매크로 블록의 수를 NB 3라고 하자. 이러 한 방식으로 P4 프레임, P5 프레임에 대해서 필드단위의 움직임 예측을 수행하면, 각 필드에 대한 연속적인 카운트값 NT 3, NB 3, NT 4, NB 4, NT 5, NB 5 을 얻을 수 있다. 도 3을 참조하면 알 수 있듯이, P3 필드(310)에서 T2T(311) 예측모드에서 필드가 서로 동일하고, P5 필드(320)에서 B2B(321) 예측모드에서 필드가 서로 동일하므로, NT 3와 NB 5 가 다른값들보다 큰 값을 갖는다. 따라서 적당한 문턱값을 설정하여 그 문턱값보다 크면 1, 크지 않으면 0으로 하면, 그 비교 결과값은 "0, 1, 0, 0, 0, 0, 1"과 같은 패턴이 된다. 입력영상이 필름모드라면 1의 값이 나타나는 것이 5의 주기가 된다. 따라서 이러한 주기값을 계산하면 입력영상이 필름모드인지의 여부를 알 수 있다.In motion estimation of the bottom field, the number of macroblocks having a motion vector of (0, 0) in B2B mode is calculated. And let's call N B 3 the number of macro blocks at that time. In this way, if the field-wise motion prediction is performed for P4 and P5 frames, successive count values for each field N T 3 , N B 3 , N T 4 , N B 4 , N T 5 , N B You can get 5 As can be seen from FIG. 3, since the fields are identical to each other in the T2T 311 prediction mode in the P3 field 310 and the fields are identical to each other in the B2B 321 prediction mode in the P5 field 320, N T 3. And N B 5 have a larger value than the other values. Therefore, if an appropriate threshold value is set, and if it is larger than the threshold value, it is 1, and if it is not large, it is 0, and the comparison result is a pattern such as "0, 1, 0, 0, 0, 0, 1". If the input image is a film mode, a value of 1 appears to be 5 periods. Therefore, by calculating the period value, it is possible to know whether the input image is in the film mode.

도 4는 IBP 구조를 갖는 입력영상으로부터 필름모드를 검출하는 것을 설명하는 도면이다.4 is a diagram illustrating detecting a film mode from an input image having an IBP structure.

B-프레임에서의 필드 ME만으로 상술한 바와 같이 주기성이 있는 패턴을 얻을 수 있다. B2 프레임(410)에서 탑 필드의 순방향 움직임 예측은 T2T_F(411)와 T2B_F(412)로 구성된다. B2 프레임(410)에서 버텀 필드의 순방향 움직임 예측은 B2T_F(413)와 B2B_F(414)로 구성된다. 그리고, 탑 필드의 역방향 움직임 예측은 T2T_B(415)와 T2B_B(416)로 구성된다. 그리고, 버텀 필드의 역방향 움직임 예측은 B2T_B(417)와 B2B_B(418)로 구성된다.Only the field ME in the B-frame can obtain a periodic pattern as described above. The forward motion prediction of the top field in the B2 frame 410 consists of T2T_F 411 and T2B_F 412. The forward motion prediction of the bottom field in the B2 frame 410 is composed of the B2T_F 413 and the B2B_F 414. The backward motion prediction of the top field is composed of T2T_B 415 and T2B_B 416. The backward motion prediction of the bottom field is composed of B2T_B 417 and B2B_B 418.

B2 프레임(410)에서 탑 필드의 순방향 움직임 예측에서 T2T 모드이며 움직임 벡터가 (0, 0)인 매크로블록의 수를 N2 T(F)라 하고, 역방향 움직임 예측에서 T2T 모드이며 움직임 벡터가 (0, 0)인 매크로블록의 수를 N2 T(B)라 하자. 그리고, 버텀 필드의 순방향 움직임 예측에서 B2B 모드이며 움직임 벡터가 (0, 0)인 매크로블록의 수를 N2 B(F)라 하고, 역방향 움직임 예측에서 B2B 모드이며 움직임 벡터가 (0, 0)인 매크로블록의 수를 N2 B(F)라 하자. 도 4를 참조하면 필름모드에서는 N2 T(B)의 값이 매우 클 것임을 알 수 있다. B4 프레임(420)에 대해서도 상술한 매크로 블록의 수 N2 T(F), N4 T(B), N4 B(F), N4 B(F)를 계산한다.In B2 frame 410, the number of macroblocks in T2T mode and motion vector (0, 0) in the top field forward motion prediction is N 2 T (F) , and in T2T mode and motion vector in backward motion prediction Let 0, 0) be the number of macroblocks N 2 T (B) . The number of macroblocks in B2B mode and motion vectors of (0, 0) in the forward field prediction of the bottom field is called N 2 B (F) . Let N 2 B (F) be the number of macroblocks. Referring to Figure 4 it can be seen that the value of N 2 T (B) in the film mode is very large. Also for the B4 frame 420, the number N 2 T (F) , N 4 T (B) , N 4 B (F), and N 4 B (F) described above are calculated.

이를 순서대로 나열하면, N2 T(F), N2 B(F), N2 T(B), N2 B(F, N2 T(F), N4 B(F) , N4 T(B), N4 B(F) 이고 이들 각각의 값을 적당한 문턱값과 비교하여 나열하면, "0, 0, 1, 0, 0, 0, 0, 1" 이 된다. 입력영상이 필름모드라면 1의 값이 나타나는 것이 5의 주기가 된다. 따라서 이러한 주기값을 계산하면 입력영상이 필름모드인지의 여부를 알 수 있다.List them in order: N 2 T (F) , N 2 B (F) , N 2 T (B) , N 2 B (F , N 2 T (F) , N 4 B (F) , N 4 T (B) , N 4 B (F) and each of these values is listed in comparison with the appropriate threshold value, and becomes "0, 0, 1, 0, 0, 0, 0, 1". In this case, the value of 1 indicates that the period is 5. Therefore, calculating the period value indicates whether the input image is in film mode.

필름모드에서 인코더가 동작하고 있는 중에도 계속해서 입력영상이 필름모드의 영상인지 검사한다. 그리고, 상술한 패턴이 깨지면 필름모드의 영상이 아니라고 판단하여 인터레이스드 영상 인코딩 모드로 전환한다. 필름모드에서는 도 2를 참조하여 설명한 바와 같이, 인터레이스드-프로그레시브 변환과정을 통해 프로그레시브 포맷으로 변환한 후 인코딩을 수행한다. 인코더에서의 움직임 예측은 field ME 및 frame ME가 모두 수행된다. 그러므로 IPPP구조이건 IBP구조이건 동일한 종류의 필드간의 field ME 결과는 존재한다. 따라서, 그 결과를 바탕으로 프로그레시브 프레임의 움직임 예측 결과를 정확하게 도출할 수 있다. 결국 움직임 예측은 인터레이스드 프레임인 것처럼 이루어지지만, 인코딩은 프로그레시브 프레임에 대해서 수행된다.While the encoder is operating in film mode, it continuously checks whether the input image is in film mode. If the above pattern is broken, it is determined that the image is not in the film mode and the mode is switched to the interlaced image encoding mode. In the film mode, as described with reference to FIG. 2, the encoding is performed after converting to the progressive format through an interlaced-to-progressive conversion process. Motion prediction in the encoder is performed both field ME and frame ME. Therefore, there are field ME results between fields of the same type, whether IPPP or IBP. Therefore, based on the result, it is possible to accurately derive the motion prediction result of the progressive frame. Eventually the motion prediction is done as if it is an interlaced frame, while the encoding is performed on progressive frames.

상술한 방법은 인코더에서만 적용될 수 있는 것이 아니다. 즉, IPPP구조를 갖는 입력이 들어오면, 인코더 앞단이나, 디코더 후단부에서 동작할 수 있다. 움직임 예측과정이 계산적 부담이 될 수 있으므로, 움직임 벡터가 (0,0)인 경우만 체크하여, T2T인 경우의 매크로블록 수를 카운트하거나, B2B인 경우의 매크로블록 수를 카운트하는 방식으로 연산량을 줄일 수 있다.The above method is not applicable only to the encoder. That is, when an input having an IPPP structure comes in, it can operate at the front end of the encoder or the rear end of the decoder. Since the motion prediction process may be a computational burden, the amount of computation is determined by checking only the motion vector is (0,0) and counting the number of macroblocks in case of T2T or the number of macroblocks in case of B2B. Can be reduced.

도 5는 상술한 필름모드 검출방법의 플로우차트이다.5 is a flowchart of the film mode detection method described above.

인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는다(S510). 움직임 예측은 계속 수행중에 있으므로, 각 필드에서의 움직임 예측정보를 입력받을 수 있다. 도 3을 참조하여 상술한 바와 같이, 상기 인터레이스드 영상신호가 IPPP 구조인 경우에는 각 P 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받고, 도 4를 참조하여 상술한 바와 같이, 상기 인터레이스드 영상신호가 IBP 구조인 경우에는 각 B 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는다.The motion prediction mode information of each field of the interlaced video signal is input (S510). Since motion prediction is continuously being performed, motion prediction information in each field may be input. As described above with reference to FIG. 3, when the interlaced video signal has an IPPP structure, motion prediction mode information of the video signal for each P frame is received for each field, and as described above with reference to FIG. 4. When the interlaced video signal has an IBP structure, motion prediction mode information of the video signal for each B frame is received for each field.

그리고, 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행 하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트한다(S520). 다음으로, 상기 카운트한 값과 소정의 문턱값과 비교하여 0 또는 1로 출력한다(S530). 그리고, 상기 출력된 값의 주기성을 찾아 필름모드를 판단한다(S540). 상술한 바와 같이 주기가 5인 경우에 필름모드로 판단할 수 있다.Then, motion prediction is performed on each field under the motion prediction mode, and the number of macroblocks having a motion vector of (0, 0) is counted (S520). Next, the counted value is compared with the predetermined threshold value and output as 0 or 1 (S530). In operation S540, the film mode is determined by looking for the periodicity of the output value. As described above, when the period is 5, it may be determined as the film mode.

도 6은 필름모드 검출장치의 블록도이다.6 is a block diagram of a film mode detection apparatus.

필름모드 검출장치는 ME 정보 입력부(610), 계수부(620), 비교부(630) 및 패턴검출부(640)를 구비한다.The film mode detecting apparatus includes an ME information input unit 610, a counter 620, a comparator 630, and a pattern detector 640.

ME 정보 입력부(610)는 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는다. 움직임 예측은 계속 수행중에 있으므로, 각 필드에서의 움직임 예측정보를 입력받을 수 있다. 도 3을 참조하여 상술한 바와 같이, 상기 인터레이스드 영상신호가 IPPP 구조인 경우에는 각 P 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받고, 도 4를 참조하여 상술한 바와 같이, 상기 인터레이스드 영상신호가 IBP 구조인 경우에는 각 B 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는다.The ME information input unit 610 receives motion prediction mode information of each field of the interlaced video signal. Since motion prediction is continuously being performed, motion prediction information in each field may be input. As described above with reference to FIG. 3, when the interlaced video signal has an IPPP structure, motion prediction mode information of the video signal for each P frame is received for each field, and as described above with reference to FIG. 4. When the interlaced video signal has an IBP structure, motion prediction mode information of the video signal for each B frame is received for each field.

계수부(620)는 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트한다. 비교부(630)는 상기 카운트한 값과 소정의 문턱값과 비교하여 0 또는 1로 출력한다. 패턴 검출부(640)는 상기 출력된 값의 주기성을 찾아 필름모드를 판단한다.The coefficient unit 620 performs motion prediction on the respective fields under the motion prediction mode, and counts the number of macro blocks having a motion vector of (0, 0). The comparator 630 outputs 0 or 1 by comparing the counted value with a predetermined threshold value. The pattern detector 640 determines the film mode by searching the periodicity of the output values.

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스 템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The invention can also be embodied as computer readable code on a computer readable recording medium. Computer-readable recording media include all types of recording devices that store data that can be read by a computer system. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like, and may also be implemented in the form of a carrier wave (for example, transmission over the Internet). Include. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

상술한 바와 같이 본 발명은, 동영상 인코더에서 생성되는 부가정보를 이용하기 때문에, 하드웨어가 복잡하지 않고 별도의 연산과정이 필요하지 않아 효율적이다.As described above, the present invention uses the additional information generated by the video encoder, so that the hardware is not complicated and a separate calculation process is not required.

Claims (11)

(a) 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는 단계;(a) receiving motion prediction mode information of each field of the interlaced video signal; (b) 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트하는 단계;(b) counting the number of macro blocks having a motion vector of (0, 0) by performing motion prediction on the respective fields under the motion prediction mode; (c) 상기 (b)단계에서 얻은 상기 매크로 블록의 수를 카운트한 값과 소정의 문턱값을 비교하여 0 또는 1을 출력하는 단계; 및(c) comparing the counted number of macroblocks obtained in step (b) with a predetermined threshold and outputting 0 or 1; And (d) 상기 (c)단계에서 출력되는 값에 기초하여 상기 움직임 예측 모드에서 필드가 서로 동일한 경우의 상기 매크로 블록의 수를 카운트한 값이 나타나는 주기가 사전에 설정된 주기를 가지면, 입력 영상신호를 필름모드로서 판단하는 단계를 포함하는 것을 특징으로 하고, (d) If the period in which the value of counting the number of macroblocks when the fields are identical to each other in the motion prediction mode based on the value output in step (c) has a predetermined period, And judging as a film mode, 상기 문턱값은 상기 (b)단계에서 얻은 상기 매크로 블록의 수를 카운트한 값들이 상기 움직임 예측 모드에서 필드가 서로 동일한 경우의 상기 매크로 블록의 수를 카운트한 값을 나타내는 패턴이 되도록 상기 0 또는 1을 출력하기 위해 설정된 값인 것을 특징으로 하는 필름 모드 검출방법.The threshold value is 0 or 1 such that the values obtained by counting the number of the macroblocks obtained in step (b) are patterns representing the values of the number of the macroblocks when the fields are the same in the motion prediction mode. Film mode detection method, characterized in that the set value to output. 제1항에 있어서, 상기 (a) 단계는The method of claim 1, wherein step (a) 상기 인터레이스드 영상신호가 IPPP 구조인 경우에는 각 P 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는 것을 특징으로 하는 필름 모드 검출방법.When the interlaced video signal has an IPPP structure, motion mode prediction information of the video signal for each P frame is input for each field. 제1항에 있어서, 상기 (a) 단계는The method of claim 1, wherein step (a) 상기 인터레이스드 영상신호가 IBP 구조인 경우에는 각 B 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는 것을 특징으로 하는 필름 모드 검출방법.And the motion prediction mode information of the video signal for each B frame is input for each field when the interlaced video signal has an IBP structure. 제2항 또는 제3항에 있어서,The method according to claim 2 or 3, 상기 인터레이스드 영상신호는 탑 필드가 먼저 나오는 인터레이스드 영상신 호인 것을 특징으로 하는 필름 모드 검출방법.And the interlaced video signal is an interlaced video signal having a top field first. 제1항에 있어서,The method of claim 1, 상기 (d) 단계는 상기 (c) 단계에서 출력되는 값에서 1이 나타나는 주기가 5인 경우에 상기 입력 영상신호를 필름 모드로서 판단하는 것을 특징으로 하는 필름 모드 검출방법.In the step (d), when the period in which 1 appears in the value output in the step (c) is 5, the input image signal is determined as a film mode. 인터레이스드 영상신호의 각 필드의 움직임 예측모드정보를 입력받는 움직임 예측모드(ME) 정보 입력부;A motion prediction mode (ME) information input unit for receiving motion prediction mode information of each field of the interlaced video signal; 상기 각 필드에 대하여 상기 움직임 예측모드하에서 움직임 예측을 수행하여, 움직임 벡터가 (0, 0) 인 매크로 블록의 수를 카운트하는 계수부;A coefficient unit for performing motion prediction on each of the fields under the motion prediction mode and counting the number of macro blocks having a motion vector of (0, 0); 상기 매크로 블록의 수를 카운트한 값과 소정의 문턱값을 비교하여 0 또는 1을 출력하는 비교부; 및A comparator for comparing the counted number of macroblocks with a predetermined threshold and outputting 0 or 1; And 상기 비교부로부터 출력된 값에 기초하여 상기 움직임 예측 모드에서 필드가 서로 동일한 경우의 상기 매크로 블록의 수를 카운트한 값이 나타나는 주기가 사전에 설정된 주기를 가지면, 입력 영상신호를 필름모드로 판단하는 패턴검출부를 포함하고, If the period in which the value of counting the number of macroblocks when the fields are identical to each other in the motion prediction mode has a preset period based on the value output from the comparator, determining the input image signal as the film mode. Including a pattern detection unit, 상기 문턱값은 상기 계수부에서 얻은 상기 매크로 블록의 수를 카운트한 값들이 상기 움직임 예측 모드에서 필드가 서로 동일한 경우의 상기 매크로 블록의 수를 카운트한 값을 나타내는 패턴이 되도록 상기 0 또는 1을 출력하기 위해 설정된 값인 것을 특징으로 하는 필름 모드 검출장치.The threshold value is 0 or 1 so that the values obtained by counting the number of the macroblocks obtained by the coefficient unit are patterns representing the values of the number of the macroblocks when the fields are the same in the motion prediction mode. Film mode detection device, characterized in that the set value to. 제6항에 있어서, 상기 움직임 예측모드(ME) 정보 입력부는The method of claim 6, wherein the motion prediction mode (ME) information input unit 상기 인터레이스드 영상신호가 IPPP 구조인 경우에는 각 P 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는 것을 특징으로 하는 필름 모드 검출장치.When the interlaced video signal has an IPPP structure, the film mode detection device according to claim 1, wherein the motion prediction mode information of the video signal for each P frame is input for each field. 제6항에 있어서, 상기 움직임 예측모드(ME) 정보 입력부는The method of claim 6, wherein the motion prediction mode (ME) information input unit 상기 인터레이스드 영상신호가 IBP 구조인 경우에는 각 B 프레임에 대한 영상신호의 움직임 예측모드정보를 각 필드별로 입력받는 것을 특징으로 하는 필름 모드 검출장치.When the interlaced video signal has an IBP structure, the film mode detection device according to claim 1, wherein the motion prediction mode information of the video signal for each B frame is input for each field. 제7항 또는 제8항에 있어서,9. The method according to claim 7 or 8, 상기 인터레이스드 영상신호는 탑 필드가 먼저 나오는 인터레이스드 영상신호인 것을 특징으로 하는 필름 모드 검출장치.And the interlaced video signal is an interlaced video signal having a top field first. 제6항에 있어서,The method of claim 6, 상기 패턴 검출부는 상기 비교부로부터 출력되는 값에서 1이 나타나는 주기가 5인 경우에 상기 입력 영상신호를 필름 모드로 판단하는 것을 특징으로 하는 필름 모드 검출장치.And the pattern detector determines the input image signal as a film mode when a period in which 1 appears in a value output from the comparator is five. 제1항 내지 제3항 및 제 5 항중 어느 한 항에 기재된 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the method according to any one of claims 1 to 3 and 5.
KR1020030035561A 2003-06-03 2003-06-03 Film mode detection method and apparatus KR100982509B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030035561A KR100982509B1 (en) 2003-06-03 2003-06-03 Film mode detection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030035561A KR100982509B1 (en) 2003-06-03 2003-06-03 Film mode detection method and apparatus

Publications (2)

Publication Number Publication Date
KR20040104966A KR20040104966A (en) 2004-12-14
KR100982509B1 true KR100982509B1 (en) 2010-09-15

Family

ID=37380148

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030035561A KR100982509B1 (en) 2003-06-03 2003-06-03 Film mode detection method and apparatus

Country Status (1)

Country Link
KR (1) KR100982509B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100987770B1 (en) * 2003-12-16 2010-10-13 삼성전자주식회사 IPC system for minimizing picture breaks at the time of scene change between fields of interlaced video signals
KR101503066B1 (en) * 2008-08-22 2015-03-16 엘지전자 주식회사 Video Display Apparatus and method for Video Display the same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001204023A (en) 1999-12-02 2001-07-27 Stmicroelectronics Srl Processing for motion vector histogram to recognize interlaced or progressive character of picture

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001204023A (en) 1999-12-02 2001-07-27 Stmicroelectronics Srl Processing for motion vector histogram to recognize interlaced or progressive character of picture

Also Published As

Publication number Publication date
KR20040104966A (en) 2004-12-14

Similar Documents

Publication Publication Date Title
CN1694501B (en) Motion estimation employing adaptive spatial update vectors
JP4724459B2 (en) Motion vector detection using adaptive time prediction
EP1938615B1 (en) Adaptive gop structure in video streaming
US7852937B2 (en) Motion vector estimation employing line and column vectors
KR20090006724A (en) System and method for detecting scrolling text in mixed mode film and video
US7233361B2 (en) Apparatus for and method of detecting whether incoming image signal is in film mode
JPH09163380A (en) Image coding device and motion vector detection method
KR100657261B1 (en) Method and apparatus for interpolating with adaptive motion compensation
US20080002774A1 (en) Motion vector search method and motion vector search apparatus
US7324160B2 (en) De-interlacing apparatus with a noise reduction/removal device
JPH05268594A (en) Motion detector for moving picture
US6268886B1 (en) Apparatus for converting picture format in digital TV and method of the same
EP1501299A1 (en) An apparatus for detecting a telecine signal
JPH06165146A (en) Method and device for encoding image
KR100907960B1 (en) Video Data Encoder Using Telecine Detection
US20050018086A1 (en) Image signal detecting apparatus and method thereof capable of removing comb by bad-edit
JP4518599B2 (en) 3: 2 pulldown detection and optimized video compression encoder in motion estimation phase
JP4843361B2 (en) 32 Pulldown Sequence Detection Device and Detection Method
KR100982509B1 (en) Film mode detection method and apparatus
JPH10257501A (en) Image reproducing device
EP1198139A1 (en) Method and apparatus for encoding video fields
JP2004320279A (en) Dynamic image time axis interpolation method and dynamic image time axis interpolation apparatus
JPH1084545A (en) Coding method for digital video signal and its device
KR20030044139A (en) Film mode detecting apparatus and method of the same
KR100547120B1 (en) Film source detection method by grouping, and apparatus thereof

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee