CN1301017C - Method for testing variety of frames with adjustable critical values - Google Patents
Method for testing variety of frames with adjustable critical values Download PDFInfo
- Publication number
- CN1301017C CN1301017C CNB031279074A CN03127907A CN1301017C CN 1301017 C CN1301017 C CN 1301017C CN B031279074 A CNB031279074 A CN B031279074A CN 03127907 A CN03127907 A CN 03127907A CN 1301017 C CN1301017 C CN 1301017C
- Authority
- CN
- China
- Prior art keywords
- frame
- value
- critical value
- difference
- counter
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Television Systems (AREA)
Abstract
The present invention relates to a method for testing types of frames, which has adjustable critical values. A critical value of a counter is set according to an information dynamic state of a frame field different value in an image. Therefore, whether the type of the frame in the image belongs to an interlaced frame or a progressive frame can be judged so as to eliminate misjudgment caused by field difference. The present invention can achieve the goal of improving the precision for judging types of frames.
Description
Technical field
The present invention is a kind of frame species detection method of adjustable critical value.Be to be the criterion of alternating expression frame or sequential frame as the frame in the image,, reach the purpose that improves the accuracy that frame judges with the frame kind misjudgment of avoiding being caused because of field difference is excessive with an adjustable critical value.
Background technology
The image of video pictures is made up of per second 30 frames of transmission (frame) at present, and then produces the continuous dynamic image, and each frame is combined (with National TelevisionSystem Committee by the multi-strip scanning line; NTSC is an example, transmits 525 scan lines), just each frame utilizes 1/30 second and transmits 525 scan lines.
And the frame of above-mentioned video can be divided into two kinds at present, be respectively alternating expression frame (interlaced frame) and sequential (progressive frame) frame, wherein its scan mode system of alternating expression frame is further divided into figure field, top (top-field) and base map field (bottom-field) with each frame, wherein top figure is the scan line of even number, the base map field then is the scan line of odd number, be divided into twice scanning respectively then, produce a complete frame after figure field, top is scanned the base map field again as scanning earlier; The scan mode of sequential (progressive) frame then is all scan lines of disposable transmission entire frame (Frame), a line one line sequential scanning then.
Figure one (a) and figure one (b) are respectively the image schematic diagram of alternating expression frame 10 and sequential frame 11, by as can be known aforementioned, because the scan mode of alternating expression frame 10 is for to transmit figure field, top (even-line interlace line) and base map field (odd-numbered scan lines) respectively in the different time, therefore can produce image (being commonly referred to as the pectination factor (comb factor)) at contour edge as square image 100 among the figure one (a) and triangle image 101 as pectination, resolution is relatively poor, and relative picture quality is also relatively poor; And since sequential frame 11 for transmitting entire frame simultaneously, so can not produce as the pectination factor among the figure one (a).
By aforementioned as can be known since pectination because of in generation for resolution great influence is arranged, therefore before image output, to carry out a trace routine, to detect the frame of importing is that the alternating expression frame still is the sequential frame, be the alternating expression frame if detect, then picture had a release of an interleave (deinterlacing) treatment step so that the pectination factor is eliminated, to obtain better image output quality before output; If the sequential frame then need not pass through the release of an interleave step and direct image output.
Traditional trace routine is shown in figure two, at first in step 201, counter is made as zero, input one can calculate the frame functional expression F (n) of pixel pectination factor values (comb factor), then carry out step 202, in all pixel substitutions this frame functional expression F (n), step 203, all pixels are scanned pectination factor values (comb factor) with calculating pixel, and the mathematical formulae that this pectination factor values is calculated will be described below; In the step 204, whether the pectination factor values of judging each pixel, then enters in the step 205 if greater than critical value greater than critical value, and Counter Value is added 1; If the pectination factor values less than critical value, then enters step 206, judge whether the pectination factor into the last frame pixel; If then enter step 207; If not, then repeating step 203 to step 206; Step 207, whether judge in the counter numerical value less than critical value,, then judge that in step 208 its frame kind is the sequential frame if when numerical value is less than critical value in the counter, if during greater than critical value, then entering step 209, counter values judges that its frame kind is the alternating expression frame; At last, detection of end program.
Figure three is depicted as the frame pixel schematic diagram of the pectination factor values of step 203 calculating one pixel among the figure two, wherein the pixel 30 of desire calculating betides the (coordinate (x of the X shown in the figure, y)) position, and its pixel value (pixel value) is " x ", and shown in first pixel 31 with second pixel 32 be and the neighborhood pixels of pixel 30 in different figure field, wherein the pixel value of first pixel 31 is that the pixel value of " b ", second pixel 32 is " e ", and the formula of its calculating pixel 30 pectination factor values is:
The pectination factor (Comb Factor (x, y))=(b-x) * (e-x)-(b-e)
2
Though the pectination factor values of utilizing formula to calculate each pixel is made comparisons with a fixedly critical value of setting then and can be judged whether this pixel is the pectination factor, at last can judge the frame kind according to the sum (being the counter number) of the pectination factor again, but this kind method also can cause erroneous judgement.Its reason is the number and top (top field) proportional relation of difference with field, the end (bottem field) owing to the pectination factor, and the proportionate relationship of its difference roughly is the linear relationship of a direct ratio shown in figure four; That is to say that if an alternating expression frame includes the object of slow motion or lower frequency a difference value is less so, pectination factor number also can be less comparatively speaking.But when if presentation content is complicated, when for example including as the first-class complicated object of leaf, rubble in the image, even between top and field, the end not free poor (also being the sequential frame), the number of the pectination factor that it is calculated still has may be bigger; Therefore, if only use the foundation of a critical value of fixing, still have the alternating expression frame erroneous judgement that may produce to be the sequential frame with a slow motion or lower frequency as the judgment frame kind; Or with the erroneous judgement of a fast motion or high-frequency sequential frame be an alternating expression frame may, thereby cause the alternating expression frame promptly exported without the release of an interleave treatment step, make the image output quality impaired.
Above-mentionedly improve the accuracy that the image kind is judged because of using fixing critical value to cause the erroneous judgement of frame kind for solving, the frame species detection method that the present invention proposes a kind of adjustable critical value reaches judges alternating expression frame and sequential frame more accurately.
Summary of the invention
The present invention is a kind of frame species detection method of adjustable critical value.Make a preliminary decision operation with the information of image midfield difference, dynamically adjust the counter critical value according to the field difference value then, as frame kind in the image is to belong to the alternating expression frame (interlaced frame) or the criterion of sequential frame (progressive frame), with an eliminating false judgment that difference was caused, and reach the purpose that improves judgment frame kind accuracy.
For achieving the above object, it is zero that adjustable critical value frame species detection method of the present invention is established counter earlier, and when time field n incoming frame one functional expression F (n), calculate the field difference value at frame (frame) place then; Compare with a field difference higher limit (Fi-th) of setting again; When difference value is less than the field difference higher limit (Fi-th) set, can dynamically set the counter critical value then and there according to the information of field difference value; Calculate then in the frame greater than the pectination factor number of pectination factor critical value and with the counter critical value of this setting relatively, and judge that its frame kind is to belong to alternating expression frame or sequential frame; Whether carry out the step of release of an interleave pixel with decision.
Relevant detailed content of the present invention and technology, existing conjunction with figs. is described as follows.
Description of drawings
Figure one (a) is the image output schematic diagram of alternating expression frame;
Figure one (b) is the image output schematic diagram of sequential frame;
Figure two detects the schematic flow sheet of frame kind class methods for prior art;
Figure three is the frame pixel schematic diagram of the pectination factor values of calculating one pixel;
Figure four is the schematic diagram of a pectination factor number and a difference value;
Figure five is the schematic flow sheet of one of adjustable critical value frame species detection method preferred embodiment of the present invention; And
Figure six is subdivided into the field difference value schematic diagram of four critical values again for the embodiment of the invention.
Symbol description:
10 alternating expression frames;
100 square images;
101 triangle images;
11 sequential frames;
30 pixels;
31 first neighborhood pixels;
32 second neighborhood pixels;
First difference value of d1;
Second difference value of d2;
The 3rd difference value of d3;
The 4th difference value of d4;
The counter-th1 first preset count device critical value;
The counter-th2 second preset count device critical value;
Counter-th3 the 3rd preset count device critical value;
Counter-th4 the 4th preset count device critical value;
Embodiment
Figure five comprises the following steps: for a preferred embodiment schematic flow sheet of the adjustable critical value frame of the present invention species detection method
At first, carry out step 501, setting counter is zero, imports a frame functional expression F (n), because this frame functional expression relates in the prior art, no longer goes to live in the household of one's in-laws on getting married at this and chats.Then carry out step 502, calculate the field difference value of frame (frame) when time field n, its difference value formula can be:
Wherein, M and N be the height and the width of representative frame (frame) respectively, F (x, 2y, n) and F (x, 2y+1 n) then represent the pixel value of figure field, its top and base map field respectively.
After calculating a difference value, promptly enter step 503, a field difference value and a field difference higher limit (Fi-th) of setting of calculating compared; If difference value during more than or equal to the field difference higher limit set, promptly enters step 512, determine that it is the alternating expression frame; If difference value during less than the field difference higher limit (Fi-th) set, promptly enters step 504, dynamically adjust the counter critical value, its adjustment mode will be described below; Then, in step 505,, and calculate the pectination factor values 506 of all pixels with among all pixel substitution frame functional expression F (n) in the frame; Judge that in step 507 whether the pectination factor values is greater than pectination factor critical value (comb TH), if the pectination factor values is during greater than pectination factor critical value, be about to counter and add 1 (step 508), when being less than or equal to pectination factor critical value, then enter step 509 as if the pectination factor values; Step 509 judges whether to be last pixel, if promptly enter step 510; If not, then repeating step 506, continue to calculate next pectination factor values; Whether step 510 judges counter values less than the counter critical value of adjusting, if, then determine that it is sequential frame 511, if not, then determine that it is alternating expression frame 512, last, the detection of end flow process.
In step 504, the dynamic adjustment of counter critical value, one embodiment is shown in figure six, and with reference to figure four, by among the figure four as can be known the size of the size of difference value and pectination factor number roughly be the proportionate relationship of a linearity, therefore, the field difference value can be subdivided into again several values of disparity to tell several scopes, be divided into four in the present embodiment, be respectively first difference value d1, second difference value d2, the 3rd difference value d3 and the 4th difference value d4; Wherein first difference value is aforesaid difference higher limit (Fi-th), when the field difference value that calculates is between first difference value d1 and second difference value d2, then the critical value of its counter dynamically is adjusted to the first preset count device critical value (Counter-th1), when the field difference value that calculates was between second difference value d2 and the 3rd difference value d3, then the critical numerical value of its counter dynamically was adjusted to the second preset count device critical value (Counter-th2); When the field difference value that calculates was between the 3rd difference value d3 and the 4th difference value d4, then the critical value of its counter dynamically was adjusted to the 3rd preset count device critical value (Counter-th3); If the field difference value that calculates is between the 4th difference value d4 and 0 time, then the critical value of its counter dynamically is adjusted to the 4th preset count device critical value (Counter-th4).
What deserves to be mentioned is, can provide a frame species detecting mode fast with this difference value and the comparison of a difference higher limit, if a difference value does not surpass a difference higher limit, must judge that this frame is the alternating expression frame or is the sequential frame via figure five steps 504 to step 510; But if a difference above a difference higher limit, then can directly be characterized as the alternating expression frame and not need via the step of figure five steps 504 to step 510.
More than for the detailed description of the adjustable critical value frame of the present invention species detection method embodiment, the present invention calculates frame (frame) field difference value and difference higher limit when time n earlier and does a judgement relatively, and then dynamically adjust the critical value of counter, to improve judgement, improve the accuracy that the frame kind is judged to alternating expression frame or sequential frame.
In sum, fill part and show the adjustable critical value frame of the present invention species detection method dark well-off progressive of executing on purpose and effect, have industrial value, and be new invention not seen before in the market.
But the above only is the preferred embodiments of the present invention, can not with qualification practical range of the present invention, for example counter can not only be divided into four critical values, more can be divided into more or less critical value according to need.Promptly equal variation and the modification of doing according to claim of the present invention generally all should belong to the scope that patent of the present invention contains.
Claims (5)
1, a kind of frame species detection method of adjustable critical value comprises:
Import a frame;
Calculate this frame field difference value between figure field, top and the base map field when a time field;
Dynamically adjust the counter critical value according to this difference value, comprising:
A plurality of difference critical values are provided, and the counter critical value that each difference critical value is scheduled to the interval difference corresponding between its contiguous difference critical value, according to the interval that the field difference value of calculating falls into, be corresponding to this interval preset count device critical value with the counter critical value setting;
Calculate the pectination factor values of all pixels of frame;
Whether judge this pectination factor values greater than pectination factor critical value, add one if the pectination factor values during greater than pectination factor critical value, is about to counter;
Judging this frame kind according to the counter critical value of counter values and this adjustment, promptly is sequential frame or alternating expression frame; And
Detection of end.
2, the frame species detection method of adjustable critical value as claimed in claim 1 is dynamically adjusted the step of counter critical value according to this difference value, comprising:
This difference value and one is set a difference higher limit relatively;
If when this difference value is set field difference higher limit more than or equal to this, promptly determine that it is the alternating expression frame; And
If when this difference value is set field difference higher limit less than this, promptly adjust the counter critical value dynamically.
3, the frame species detection method of adjustable critical value as claimed in claim 1, the step of calculating the pectination factor values of all pixels of frame comprises in this pixel substitution one frame functional expression, and calculates the pectination factor values of this pixel.
4, the frame species detection method of adjustable critical value as claimed in claim 1, judging in the step of this frame kind according to the counter critical value of counter values and this adjustment, if counter values is more than or equal to the counter critical value of this adjustment, then determine that it is the alternating expression frame, if the counter critical value less than this adjustment then determines that it is the sequential frame.
5, as the frame species detection method of claim 1 a described adjustable critical value, wherein, described several difference critical values are respectively first difference value, second difference value, the 3rd difference value and the 4th difference value, when the field difference value that calculates is between first difference value and second difference value, then this counter critical value dynamically is adjusted to the first preset count device critical value, when the field difference value that calculates was between second difference value and the 3rd difference value, then the critical value of its counter dynamically was adjusted to the second preset count device critical value; When the field difference value that calculates was between the 3rd difference value and the 4th difference value, then its counter critical value dynamically was adjusted to the 3rd preset count device critical value; When the field difference value that calculates was between the 4th difference value and null value, then its counter critical value dynamically was adjusted to the 4th preset count device critical value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031279074A CN1301017C (en) | 2003-04-23 | 2003-04-23 | Method for testing variety of frames with adjustable critical values |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031279074A CN1301017C (en) | 2003-04-23 | 2003-04-23 | Method for testing variety of frames with adjustable critical values |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1540994A CN1540994A (en) | 2004-10-27 |
CN1301017C true CN1301017C (en) | 2007-02-14 |
Family
ID=34322080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031279074A Expired - Fee Related CN1301017C (en) | 2003-04-23 | 2003-04-23 | Method for testing variety of frames with adjustable critical values |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1301017C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9362907B2 (en) * | 2010-12-01 | 2016-06-07 | Htc Corporation | Method of dynamically adjusting threshold values and related electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5452111A (en) * | 1989-12-22 | 1995-09-19 | Eastman Kodak Company | Methods and associated apparatus for forming image data metrics which achieve media compatibility for subsequent imaging applications |
US5521644A (en) * | 1994-06-30 | 1996-05-28 | Eastman Kodak Company | Mechanism for controllably deinterlacing sequential lines of video data field based upon pixel signals associated with four successive interlaced video fields |
CN1162234A (en) * | 1995-04-25 | 1997-10-15 | 德克萨斯仪器股份有限公司 | Film mode line-by-line scanning conversion |
WO2000033579A1 (en) * | 1998-12-02 | 2000-06-08 | Stmicroelectronics Asia Pacific Pte Ltd | Progressive/interlace and redundant field detection for encoder |
WO2000051351A1 (en) * | 1999-02-26 | 2000-08-31 | Sony Electronics, Inc. | Blocking system |
WO2001080559A2 (en) * | 2000-04-18 | 2001-10-25 | Silicon Image | Method, system and apparatus for identifying the source type and quality level of a video sequence |
-
2003
- 2003-04-23 CN CNB031279074A patent/CN1301017C/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5452111A (en) * | 1989-12-22 | 1995-09-19 | Eastman Kodak Company | Methods and associated apparatus for forming image data metrics which achieve media compatibility for subsequent imaging applications |
US5521644A (en) * | 1994-06-30 | 1996-05-28 | Eastman Kodak Company | Mechanism for controllably deinterlacing sequential lines of video data field based upon pixel signals associated with four successive interlaced video fields |
CN1162234A (en) * | 1995-04-25 | 1997-10-15 | 德克萨斯仪器股份有限公司 | Film mode line-by-line scanning conversion |
WO2000033579A1 (en) * | 1998-12-02 | 2000-06-08 | Stmicroelectronics Asia Pacific Pte Ltd | Progressive/interlace and redundant field detection for encoder |
WO2000051351A1 (en) * | 1999-02-26 | 2000-08-31 | Sony Electronics, Inc. | Blocking system |
WO2001080559A2 (en) * | 2000-04-18 | 2001-10-25 | Silicon Image | Method, system and apparatus for identifying the source type and quality level of a video sequence |
Also Published As
Publication number | Publication date |
---|---|
CN1540994A (en) | 2004-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1265633C (en) | Interlacing-removing device and method | |
CN1290057C (en) | Improved spatial resolution of video images | |
CN1941854A (en) | Detecting video format information in a sequence of video pictures | |
CN1928700A (en) | Projection type display device and method for controlling the same | |
CN1571473A (en) | Apparatus and method for processing signal | |
CN111598771A (en) | PCB (printed Circuit Board) defect detection system and method based on CCD (Charge coupled device) camera | |
CN1258288C (en) | Motion tester and testing method | |
CN1301017C (en) | Method for testing variety of frames with adjustable critical values | |
CN1848910A (en) | Global motion adaptive system with motion values correction with respect to luminance level | |
CN1512773A (en) | Image format converting device and method | |
CN1293756C (en) | Video signal processing apparatus, video signal processing method and video source determining method | |
CN1694525A (en) | Image status information correction | |
CN1825939A (en) | Pull-down detection apparatus and pull-down detection method | |
CN101018287A (en) | A method for dynamic image quality adjustment | |
CN1632593A (en) | Motion image detecting method and circuit | |
CN1825941A (en) | Pull-down detection apparatus and pull-down detection method | |
CN1128534C (en) | Correcting method for touch scanner with image sensor | |
CN1770882A (en) | Digital image analysis test pattern and its making method | |
CN1145356C (en) | Adaptive compensation algorithm for digitalization processing of progressive scanned TV signal | |
US6992727B2 (en) | Method for detecting video frame types with adaptive thresholds | |
CN1822670A (en) | Apparatus for interpolating scanning lines | |
CN1512766A (en) | Device and method for changing frame | |
CN1567978A (en) | Map border category sensing method with noise filtering step | |
CN1649407A (en) | Pixel repairing device and method using edge detection as base | |
US20040207752A1 (en) | Method for detecting video frame types with median filtering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070214 |