1. Field of the Invention
The present invention relates to a data compression system, and more particularly, to the improvement of an overlapped field detecting apparatus thereof.
2. Description of the Related Art
Generally, a cinema signal having 24 exposure frames per second is converted by a 3:2 pull-down system into a video signal having 60 fields per second based upon the National Television System Committee (NTSC) system. This video signal is called a telecine signal. Such a telecine signal includes overlapped fields, and therefore, overlapped fields are detected and removed before performing a data compression process thereupon. For this purpose, an overlapped field detecting apparatus is provided in a data compression system, which will be explained later in detail.
In prior art overlapped field detecting apparatuses (see: JP-A-9-55879 & JP-A-11-88893), a delay unit delays a video signal, and a subtracter calculates a difference between the video signal and an output signal of the delay unit on a pixel-by-pixel basis. Also, an absolute value circuit calculates an absolute value of the difference on a pixel-by-pixel basis. Further, an accumulator calculates a sum of the absolute values, and a comparator compares the sum of the absolute values per field. A comparator compares the sum of the absolute values with a definite value, thus determining that corresponding fields of two successive frames of the video signal are non-overlapped. This also will be explained later in detail.
In the above-described prior art overlapped field detecting apparatuses, however, since the sum calculated by the accumulator reflects the average value of the absolute values multiplied by the number of pixels per field, the output signal of the comparator cannot accurately discriminate overlapped fields from non-overlapped fields. Particularly, non-overlapped fields have a large part in common with only a small different part are determined to be overlapped. In order to discriminate such non-overlapped fields from overlapped fields, the threshold value can be made lower; however, in this case, overlapped fields with noise are determined to be non-overlapped.
It is an object of the present invention to provide an overlapped field detecting apparatus and method capable of accurately detecting non-overlapped fields which are mostly overlapped, while overlapped fields with noise are also detected.
According to the present invention, in an overlapped field detecting apparatus, a delay unit delays a video signal, and a subtracter calculates a difference between the video signal and an output signal of the delay unit on a pixel-by-pixel basis. Also, an absolute value circuit calculates an absolute value of the difference on a pixel-by-pixel basis. Further, at least one comparator compares the absolute value of the difference with a threshold value on a pixel-by-pixel basis, and at least one accumulator counts a number of pixels when the absolute value of the difference is larger than the threshold value. A determination unit determines whether or not the number of pixels is larger than a definite value, thus determining that corresponding fields of two successive frames of the video signal are non-overlapped.
The present invention will be more clearly understood from the description set forth below, as compared with the prior art, with reference to the accompanying drawings, wherein:
Before the description of the preferred embodiments, prior art overlapped field detecting apparatuses will be explained with reference to
In
If a data compression process is performed upon the above-mentioned telecine signal Vin, overlapped fields are data-compressed, so that an amount of codes assigned to one field is decreased, which degrades the display quality. Therefore, before a data compression process is performed upon the above-mentioned telecine signal Vin, overlapped fields are detected and removed from the telecine signal Vin, which is realized by a data compression system as illustrated in
In
In
A subtracter 303 calculates a difference at each pixel between two sequential odd fields of the telecine signal Vin or a difference at each pixel between two sequential even fields of the telecine signal Vin.
An absolute value circuit 304 calculates an absolute value of the difference at each pixel.
An accumulator 305 calculates a sum S of the absolute values calculated by the absolute value circuit 304, and a comparator 206 compares the sum S with a threshold value TH. As a result, if S≦TH, the output signal of the comparator 306 shows a detection of an overlapped field. On the other hand, if S>TH, the output signal of the comparator 306 shows no detection of an overlapped field.
Note that the telecine signal Vin associated with the output signal of the comparator 306 is supplied to the overlapped field removing unit 202, so as to remove overlapped fields from the telecine signal Vin.
In the overlapped field detecting apparatus of
In
Even in the overlapped field detecting apparatus of
In
In
Thus, the output value SA of the accumulator 802A shows the number of non-overlapped pixels of each field and the output value SB of the accumulator 802B shows the number of overlapped pixels of each field.
The operation of the determination unit 803 is illustrated in
First, at step 901, it is determined whether the output value SA of the accumulator 802A is larger than a small definite value α close to zero. Also, at step 902, it is determined whether the output value SB of the accumulator 802B is larger than a large definite value β which is 0.95·N, for example, where N is the number of pixels per field.
As a result, when SA>α, the control proceeds to step 903 which resets a flag FX (FX=“0”) for showing non-overlapped fields. On the other hand, when SA≦α and SB>β, the control proceeds to step 904 which sets the flag FX (FX “1”) for showing overlapped fields. Also, when SA≦α and SB≦β, the control proceeds to step 903 which resets the flag FX (FX=“0”) for showing non-overlapped fields.
Then, at step 905, the output values SA and SB of the accumulators 802A and 802B are reset, thus completing the flowchart of
If corresponding fields of two successive frames are non-overlapped but mostly overlapped with only a small different part as shown in
Also, if corresponding fields of two successive frames are completely overlapped, a distribution of pixels relative to the absolute value Z of the difference at each pixel therebetween is shown in
Note that, even if noise is added to two overlapped fields, so that a distribution of pixels as indicated by NOISE appears in
Further, if corresponding fields of two successive frames are non-overlapped, a distribution of pixels relative to the absolute value Z of the difference at each pixel therebetween is shown in
Thus, according to the first embodiment, non-overlapped fields which are mostly overlapped with only a small different part are clearly determined to be non-overlapped, while overlapped fields including noise are clearly determined to be overlapped.
In
Thus, the output value SC of the accumulator 802C also shows the number of non-overlapped pixels of each field and the output SD of the accumulator 802D also shows the number of overlapped pixels of each field.
The operation of the determination unit 803 is illustrated in
First, at step 1201, it is determined whether SA+SC is larger than a small definite value α′ close to zero. Also, at step 1202, it is determined whether SB+SD is larger than a large definite value β′ which is 2·0.95·N, for example, where N is the number of pixels per field.
As a result, when SA+SC>α′, the control proceeds to step 1203 which reset a flag FX (FX=“0”) for showing non-overlapped fields. On the other hand, when SA+SC≦α′ and SB+SD>β′, the control proceeds to step 1204 which sets the flag FX (FX=“1”) for showing overlapped fields. Also, when SA+SC≦α′ and SB+SD≦β′, the control proceeds to step 1203 which resets the flag FX (FX=“0”) for showing non-overlapped fields.
Then, at step 1205, the output values SA, SB, SC and SD of the accumulators 802A, 802B, 802C and 802D are reset, thus completing the flowchart of
Thus, according to the second embodiment, non-overlapped fields which are mostly overlapped with only a small different part are more clearly determined to be non-overlapped, while overlapped fields including noise are more clearly determined to be overlapped.
In the above described embodiments, two or more comparators and two or more accumulators are provided, however, only one comparator such as 801A and only one accumulator 802A can be provided. In this case, in
As explained hereinabove, according to the present invention, non-overlapped fields which are mostly overlapped with only a small different part can be surely determined to be non-overlapped, while overlapped fields including noise can be surely determined to be overlapped.
Number | Date | Country | Kind |
---|---|---|---|
2001-162623 | May 2001 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5245424 | Yoshida | Sep 1993 | A |
6490497 | Mitsuhashi et al. | Dec 2002 | B1 |
6611286 | Terasawa et al. | Aug 2003 | B1 |
Number | Date | Country |
---|---|---|
9-55879 | Feb 1997 | JP |
11-88893 | Mar 1999 | JP |
Number | Date | Country | |
---|---|---|---|
20020180888 A1 | Dec 2002 | US |