CN105704415B - A kind of video deinterleaves treating method and apparatus - Google Patents

A kind of video deinterleaves treating method and apparatus Download PDF

Info

Publication number
CN105704415B
CN105704415B CN201610073699.3A CN201610073699A CN105704415B CN 105704415 B CN105704415 B CN 105704415B CN 201610073699 A CN201610073699 A CN 201610073699A CN 105704415 B CN105704415 B CN 105704415B
Authority
CN
China
Prior art keywords
pixel
rebuild
field picture
need
weighting coefficient
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.)
Active
Application number
CN201610073699.3A
Other languages
Chinese (zh)
Other versions
CN105704415A (en
Inventor
罗宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201610073699.3A priority Critical patent/CN105704415B/en
Publication of CN105704415A publication Critical patent/CN105704415A/en
Application granted granted Critical
Publication of CN105704415B publication Critical patent/CN105704415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • H04N7/012Conversion between an interlaced and a progressive signal
    • 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/0127Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Television Systems (AREA)

Abstract

The present invention discloses a kind of video and deinterleaves treating method and apparatus, and wherein method includes calculating current time to rebuild the space weight coefficient and time weighting coefficient of each pixel of field picture;Calculate to rebuild the static weighting coefficient of each pixel of field picture according to the space weight coefficient and time weighting coefficient that need to rebuild each pixel of field picture;According to the static weighting coefficient that need to rebuild each pixel of field picture, the space interpolation data that need to currently rebuild field picture, the temporal interpolation data that need to currently rebuild field picture calculate that field picture data need to be rebuild.The considerations of the technical program is by generalized time weight and space weight, and after obtaining weighting weight, then into the image data for obtaining rebuilding field after row interpolation, improve picture quality, improve the effect after video deinterleaves.

Description

A kind of video deinterleaves treating method and apparatus
Technical field
It deinterleaves treating method and apparatus the present invention relates to technical field of video processing more particularly to a kind of sport video.
Background technology
There are two types of scan modes for existing radio data system:One is progressive scan (Progressivescanning) Mode, another kind are interlacing scan (Interlacedscanning) modes.Progressive scan is within each Δ t times to one The complete image of width is scanned, it is referred to as a frame.Interlacing scan is to be divided to two to carry out 2 a frame image:1 interlacing scan. Wherein first is known as odd field, only scans its odd-numbered line;And second is known as even field, only scans its even number line.By The advantages of row scanning, is that image definition is high, image detail exquisiteness is abundant, stablizes and without interline flicker etc.;The disadvantage is that needing larger Transmission bandwidth.The advantages of interlacing scan is that the data volume under fixed-bandwidth with half obtains higher refresh rate, to drop Low flicker;The disadvantage is that phenomena such as image vertical direction resolution ratio reduces half, and there are interline flicker and edge sawtooths.
It generally requires to convert interlaced video to promote the quality of video image in many practical applications and regard line by line Frequently, the technology for converting interlaced video to progressive video is also known as (De-interlacing) technology that deinterleaves.According to interpolation side The technology of deinterleaving can be divided into two major classes by the difference of formula:(intra-field) interpolation deinterleaves in, (inter- between field Field) interpolation deinterleaves.
The technology that deinterleaves of high quality is in order to which raising efficiency generally uses hardware realization, therefore cost is relatively high.In reality In, in order to reduce development cost, generally video is carried out using software and deinterleaved processing, but video is gone in the prior art The effect is unsatisfactory for interleaving treatment.
Invention content
It deinterleaves treating method and apparatus for this reason, it may be necessary to provide a kind of video, solves to locate during existing video deinterleaves Manage the undesirable problem of effect.
To achieve the above object, it inventor provides a kind of video to deinterleave processing method, include the following steps:
The space weight coefficient and time weighting coefficient of each pixel of field picture need to be rebuild by calculating current time;
It according to the space weight coefficient and time weighting coefficient that need to rebuild each pixel of field picture calculates that field picture need to be rebuild each The static weighting coefficient of pixel;
According to the static weighting coefficient that need to rebuild each pixel of field picture, the space interpolation data that need to currently rebuild field picture, The temporal interpolation data that field picture need to currently be rebuild calculate that field picture data need to be rebuild.
Further, described that static weighting coefficient specific steps packet is calculated to obtain according to space weight coefficient and time weighting coefficient It includes:Space weight coefficient is multiplied by time weighting coefficient and obtains static weighting coefficient.
Further, it includes step that the calculating, which need to currently rebuild the space weight coefficient of each pixel of field picture,:
An interim frame is formed using field picture known to current time and a field picture adjacent thereto;
It is r2 to enable the current data rebuild on pixel position, thereon respectively r1, r0, and lower is respectively r3, r4;
V1=1 is enabled, is r0 points from current location, e1=when r0 points are not equal to r1 points with the mean value of r2 points (float)abs(r0-r2);
E2=(float) abs (r0+r2-2*r1);
If e1<E2, then v1=e1/e2;
Similarly v2=1, when r2 points are not equal to r3 points with the mean value of r4 points;
E1=(float) abs (r2-r4);
E2=(float) abs (r2+r4-2*r3);
if(e1<e2)
V2=e1/e2;
The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight Control parameter.
Further, it includes step that the calculating, which need to currently rebuild the time weighting coefficient of each pixel of field picture,:First calculate The quadratic sum of each pixel of field picture difference of pixel in Shang Yichang and next field picture corresponding position certain area need to be rebuild, The value that evolution of averaging obtains is obtained into time weighting coefficient by Nonlinear Mapping again.
Further, current time need to rebuild the space interpolation data of each pixel of field picture and obtain as follows:It obtains It must need to rebuild lastrow of the pixel on frame image space and next line image data;Being found out from this two rows data can be with There is minimal gradient direction line by need to calculate pixel, then be weighted by uplink and downlink corresponding data in this direction flat , the space interpolation result of pixel need to be rebuild by obtaining the position.
Further, current time needs the temporal interpolation data for rebuilding each pixel of field picture to obtain as follows: Field picture data existing for a upper timeslice using current time and field picture data weighted average existing for future time piece, It obtains currently rebuilding field picture temporal interpolation data.
Further, the computational methods that need to currently rebuild each pixel data of field picture are:Current pixel is subtracted using one Static weighting coefficient obtains the movement weighting coefficient of the pixel, and the end value of pixel is that usage time interpolated data is multiplied by static add Weight coefficient, in addition space interpolation data are multiplied by the result of movement weighting coefficient.
And it deinterleaves processing unit, including following module the present invention also provides a kind of video:
Weight coefficient computing module:For calculate current time need to rebuild each pixel of field picture space weight coefficient and when Between weight coefficient;
Weighting coefficient computing module:For according to the space weight coefficient and time weighting system that need to rebuild each pixel of field picture Figure to rebuild the static weighting coefficient of each pixel of field picture;
Image data computing module:For according to need to rebuild the static weighting coefficient of each pixel of field picture, currently need to rebuild The space interpolation data of field picture, the temporal interpolation data that need to currently rebuild field picture calculate that field picture data need to be rebuild.
Further, weighting coefficient computing module, which is additionally operable to space weight coefficient being multiplied by time weighting coefficient, obtains static state Weighting coefficient.
Further, the weight coefficient computing module is additionally operable to:
An interim frame is formed using field picture known to current time and a field picture adjacent thereto;
It is r2 to enable the current data rebuild on pixel position, thereon respectively r1, r0, and lower is respectively r3, r4;
V1=1 is enabled, is r0 points from current location, e1=when r0 points are not equal to r1 points with the mean value of r2 points (float)abs(r0-r2);
E2=(float) abs (r0+r2-2*r1);
If e1<E2, then v1=e1/e2;
Similarly v2=1, when r2 points are not equal to r3 points with the mean value of r4 points;
E1=(float) abs (r2-r4);
E2=(float) abs (r2+r4-2*r3);
if(e1<e2)
V2=e1/e2;
The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight Control parameter.
Further, weight coefficient computing module be additionally operable to first calculate need to rebuild each pixel of field picture in Shang Yichang and The quadratic sum of the difference of pixel in next field picture corresponding position certain area, then the value that evolution of averaging obtains passed through non-linear Mapping obtains time weighting coefficient.
Further, further include following module:
Space interpolation computing module:Need to rebuild lastrow and next line of the pixel on frame image space for obtaining Image data;Found out from this two rows data can pass through need to calculate pixel there is minimal gradient direction line, then pass through this Uplink and downlink corresponding data on direction is weighted averagely, and the space interpolation result of pixel need to be rebuild by obtaining the position.
Further, further include following module:
Temporal interpolation computing module:For using field picture data existing for a upper timeslice for current time and lower a period of time Between field picture data weighted average existing for piece, obtain currently rebuilding field picture temporal interpolation data.
Further, described image data computation module is also used for one and subtracts current pixel static state weighting coefficient obtaining The end value of the movement weighting coefficient of the pixel, pixel is that usage time interpolated data is multiplied by static weighting coefficient, in addition space Interpolated data is multiplied by the result of movement weighting coefficient.
It is different from the prior art, the considerations of above-mentioned technical proposal is by generalized time weight and space weight, and is added After weighing weight, then into the image data for obtaining rebuilding field after row interpolation, picture quality is improved, improved after video deinterleaves Effect.
Description of the drawings
Fig. 1 is the flow chart of the method for the present invention embodiment;
Fig. 2 is the schematic diagram of specific implementation mode video frame;
Fig. 3 is apparatus of the present invention structural schematic diagram.
Reference sign:
200,202, even row frame;201, strange row frame;
300, video deinterleaves processing unit;301, weight coefficient computing module;
303, weighting coefficient computing module;305, image data computing module;
307, space interpolation computing module;309, temporal interpolation computing module.
Specific implementation mode
For the technology contents of technical solution, construction feature, the objects and the effects are described in detail, below in conjunction with specific reality It applies example and attached drawing is coordinated to be explained in detail.
Fig. 3 is please referred to Fig.1, is deinterleaved processing method the present embodiment provides a kind of video, the method for the present invention can be applied In video deinterleaves processing unit.The processing that deinterleaves is actually at by the vision signal acquired by field picture Reason, restores the frame image signal of each field picture timeslice, i.e., to the complementary field picture that is lacked in each field picture timeslice into Row is rebuild to obtain complete frame image.Processing deinterleave by force, to obtain and need to rebuild pixel in frame image space On lastrow and next line image data (data i.e. in field picture known to current time), use upper a period of time of current time Between existing for piece (with current time spatial complementary) field picture data with it is (mutual with current time space existing for future time piece Mend) field picture data weighted average, it obtains currently rebuilding field picture temporal interpolation data.As shown in Fig. 2, needing to pass through idol Row frame 200 and even row frame 202 are rebuild and obtain strange row frame 201.
Specifically, this method includes the following steps:Step S101 first, which calculates current time, need to rebuild each pixel of field picture Space weight coefficient and time weighting coefficient;Then in step S102 according to the space weight system that need to rebuild each pixel of field picture Number and time weighting coefficient calculate to rebuild the static weighting coefficient of each pixel of field picture;And step S103 is according to need to rebuild field The static weighting coefficient of each pixel of image, the space interpolation data that need to currently rebuild field picture, need to currently rebuild field picture when Value Data is interleave to calculate that field picture data need to be rebuild.The present invention integrates the time weighting and space weight of each pixel, i.e., synthesis is examined Considered with the relevant many factors of image, the reduction effect of the image data obtained in this way is more preferable.
It is described that static weighting system is calculated to obtain according to space weight coefficient and time weighting coefficient in certain preferred embodiments Counting specific steps includes:Space weight coefficient is multiplied by time weighting coefficient and obtains static weighting coefficient.I.e. static weighting coefficient For the product of space weight coefficient and time weighting coefficient.
In the present invention, it includes step that the calculating, which need to currently rebuild the space weight coefficient of each pixel of field picture,:
An interim frame is formed using field picture known to current time and a field picture adjacent thereto;
It is r2 to enable the current data rebuild on pixel position, thereon respectively r1, r0, and lower is respectively r3, r4;
V1=1 is enabled, is r0 points from current location, e1=when r0 points are not equal to r1 points with the mean value of r2 points (float)abs(r0-r2);
E2=(float) abs (r0+r2-2*r1);
If e1<E2, then v1=e1/e2;
Similarly v2=1, when r2 points are not equal to r3 points with the mean value of r4 points;
The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight Control parameter.
Time weighting coefficient can obtain as follows:The each pixel of field picture need to be rebuild in Shang Yichang by first calculating With the quadratic sum of the difference of pixel in next field picture corresponding position certain area, then the value that evolution of averaging obtains passed through non-thread Property maps to obtain time weighting coefficient.Here certain area can be set according to actual needs.
Space interpolation data can obtain as follows:Acquisition needs reconstruction pixel upper on frame image space A line and next line image data;Found out from this two rows data can pass through need to calculate pixel have minimal gradient direction Line, then it is weighted by uplink and downlink corresponding data in this direction average, it obtains the position and need to rebuild the space of pixel and insert It is worth result.
Temporal interpolation data can be calculated by simple weighted average, specifically:Use current time Field picture data existing for a upper timeslice and field picture data weighted average existing for future time piece, are currently needed to rebuild Field picture temporal interpolation data.
Static weighting coefficient and movement weighting coefficient and can be 1, then need to currently rebuild each pixel data of field picture Computational methods be:Current pixel static state weighting coefficient is subtracted using one and obtains the movement weighting coefficient of the pixel, and pixel is most Final value is that usage time interpolated data is multiplied by static weighting coefficient, in addition space interpolation data are multiplied by the knot of movement weighting coefficient Fruit.
As a specific embodiment, the processing procedure that deinterleaves of the invention can use following function representation:tmpdst [n]=(unsigned char) (para* (float) ((psrc0 [n]+psrc1 [n])/2)+(1-para) *
(float) edge_inter (tmpsrc+n-W, tmpsrc+n+W, W, n, tmpsrc [n]));
N in above formula, value range are picture traverse.Above formula is divided into two parts, and a portion is static data, static The calculating of data is calculated using formula (psrc0 [n]+psrc1 [n])/2, is finally multiplied by weighting coefficient para.Another part It is the data of movement, is calculated with function edge_inter, be finally multiplied by weighting coefficient (1-para).
The calculating of weighting coefficient para:Para=sta*f;Wherein sta indicates that static component, f indicate dynamic component.sta =static_detect5 (pre, back, n, W);F=hf_parameter (pexel, 0).
The Computing Principle of static_detect5, previous frame image mutually should start first 5 of position with next frame image Square of the difference of the value of position, averages, and then extracts square root again, obtained value, removes the tab [256] that tables look-up, so that it may to obtain sta.
5 positions in expressed above can also use the replacements such as 3 positions or 7 positions.It is limited when beyond image boundary In image boundary.
The Computing Principle of hf_parameter:
V1=1 is enabled, is the 0th point since the starting point of calculating, when being not equal at the 1st with the 2nd point of mean value at the 0th point
Similarly v2=1, when being not equal at the 3rd with the 4th point of mean value at the 2nd point
Finally output result is pow (v1*v2,0.5) * alpha, and wherein alpha is to indicate dynamic weight, can be with value It is 0.5.
Function edge_inter is to carry out interpolation calculation with lower 1 row data using upper 1 row data, and dis minimums are calculated Position make comparisons with the value in the home position of lastrow data and the data of next line then the value of minimum position, three The intermediate value of person is exactly to export result.
The wherein computational methods of dis:Lastrow data, with next line data, centered on the point currently calculated, abscissa The difference summation of the corresponding points of gap -6-4-2 0246 respectively.
Dis [1]=(abs (p0 [- 4]-p1 [2])+abs (p0 [- 3]-p1 [3])+abs (p0 [- 2]-p1 [4])) * 2;
Dis [3]=(abs (p0 [- 3]-p1 [1])+abs (p0 [- 2]-p1 [2])+abs (p0 [- 1]-p1 [3])) * 2;
Dis [5]=(abs (p0 [- 2]-p1 [0])+abs (p0 [- 1]-p1 [1])+abs (p0 [0]-p1 [2])) * 2;
Dis [7]=(abs (p0 [- 1]-p1 [- 1])+abs (p0 [0]-p1 [0])+abs (p0 [1]-p1 [1])) * 2;
Dis [9]=(abs (p0 [0]-p1 [- 2])+abs (p0 [1]-p1 [- 1])+abs (p0 [2]-p1 [0])) * 2;
Dis [11]=(abs (p0 [1]-p1 [- 3])+abs (p0 [2]-p1 [- 2])+abs (p0 [3]-p1 [- 1])) * 2;
Dis [13]=(abs (p0 [2]-p1 [- 4])+abs (p0 [3]-p1 [- 3])+abs (p0 [4]-p1 [- 2])) * 2;
If the dis is minimum, take the mean values of two points of the position as the output valve of the position of the minimum.
Inter [1]=abs (p0 [- 3]+p1 [3])/2;
Inter [3]=abs (p0 [- 2]+p1 [2])/2;
Inter [5]=abs (p0 [- 1]+p1 [1])/2;
Inter [7]=abs (p0 [0]+p1 [0])/2;
Inter [9]=abs (p0 [1]+p1 [- 1])/2;
Inter [11]=abs (p0 [2]+p1 [- 2])/2;
Inter [13]=abs (p0 [3]+p1 [- 3])/2.
And deinterleave processing unit the present invention also provides a kind of video, as shown in figure 3, including following module:Weight system Number computing module 301:The space weight coefficient and time weighting coefficient of each pixel of field picture need to be rebuild for calculating current time; Weighting coefficient computing module 303:For being calculated according to the space weight coefficient and time weighting coefficient that need to rebuild each pixel of field picture The static weighting coefficient of each pixel of field picture need to be rebuild by obtaining;Image data computing module 305:For each according to field picture need to be rebuild The static weighting coefficient of pixel, the space interpolation data that need to currently rebuild field picture, the temporal interpolation that need to currently rebuild field picture Data calculate that field picture data need to be rebuild.The device of the invention integrates the time weighting and space weight of each pixel, i.e., synthesis is examined Considered with the relevant many factors of image, the reduction effect of the image data obtained in this way is more preferable.
Wherein, weighting coefficient computing module, which is additionally operable to space weight coefficient being multiplied by time weighting coefficient, obtains static weighting Coefficient.And the weight coefficient computing module is additionally operable to:Use field picture known to current time and a figure adjacent thereto As one interim frame of composition;It is r2 to enable the current data rebuild on pixel position, thereon respectively r1, r0, lower to be respectively r3、r4;V1=1 is enabled, is r0 points from current location, the e1=(float) when r0 points are not equal to r1 points with the mean value of r2 points abs(r0-r2);E2=(float) abs (r0+r2-2*r1);If e1<E2, then v1=e1/e2;Similarly v2=1, when r2 points With r4 points mean value be not equal to r3 points when;
The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight Control parameter.
In certain embodiments, weight coefficient computing module, which is additionally operable to first calculate, need to rebuild each pixel of field picture upper The quadratic sum of the difference of pixel in one and next field picture corresponding position certain area, then the value that evolution of averaging obtains is passed through Nonlinear Mapping obtains time weighting coefficient.
Further, the present apparatus further includes following module:Space interpolation computing module 307:It needs to rebuild picture for obtaining Lastrow of the vegetarian refreshments on frame image space and next line image data;It finds out to pass through from this two rows data and need to calculate picture Vegetarian refreshments has minimal gradient direction line, then is weighted averagely by uplink and downlink corresponding data in this direction, obtains the position The space interpolation result of pixel need to be rebuild by setting.
And the present apparatus further includes following module:Temporal interpolation computing module 309:Upper one for using current time Field picture data existing for timeslice and field picture data weighted average existing for future time piece, obtain currently rebuilding field figure As temporal interpolation data.
In certain embodiments, described image data computation module is also used for one and subtracts current pixel static state weighting system Number obtains the movement weighting coefficient of the pixel, and the end value of pixel is that usage time interpolated data is multiplied by static weighting coefficient, is added Upper space interpolation data are multiplied by the result of movement weighting coefficient.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or terminal device including a series of elements include not only those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or end The intrinsic element of end equipment.In the absence of more restrictions, being limited by sentence " including ... " or " including ... " Element, it is not excluded that there is also other elements in process, method, article or the terminal device including the element.This Outside, herein, " being more than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understandings It includes this number to be.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, apparatus or computer program production Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments Form.All or part of step in the method that the various embodiments described above are related to can be instructed by program relevant hardware come It completes, the program can be stored in the storage medium that computer equipment can be read, for executing the various embodiments described above side All or part of step described in method.The computer equipment, including but not limited to:Personal computer, server, general-purpose computations It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to method, equipment (system) and the computer program product according to embodiment Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided Program instruction is to the processor of computer equipment to generate a machine so that the finger executed by the processor of computer equipment It enables and generates to specify in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of function.
These computer program instructions, which may also be stored in, can guide computer equipment computer operate in a specific manner to set In standby readable memory so that the instruction generation being stored in the computer equipment readable memory includes the manufacture of command device Product, command device realization refer in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes Fixed function.
These computer program instructions can be also loaded on computer equipment so that be executed on a computing device a series of To generate computer implemented processing, the instruction to execute on a computing device is provided for realizing in flow operating procedure The step of function of being specified in one flow of figure or multiple flows and/or one box of block diagram or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications can be made to these embodiments, so example the above is only the implementation of the present invention, It is not intended to limit the scope of patent protection of the present invention, it is every to utilize equivalent structure made by description of the invention and accompanying drawing content Or equivalent process transformation, it is applied directly or indirectly in other relevant technical fields, the patent for being similarly included in the present invention Within protection domain.

Claims (12)

  1. The processing method 1. a kind of video deinterleaves, which is characterized in that include the following steps:
    The space weight coefficient and time weighting coefficient of each pixel of field picture need to be rebuild by calculating current time;
    Calculate to rebuild each pixel of field picture according to the space weight coefficient and time weighting coefficient that need to rebuild each pixel of field picture Static weighting coefficient;
    According to the static weighting coefficient that need to rebuild each pixel of field picture, the space interpolation data that need to currently rebuild field picture, current The temporal interpolation data that field picture need to be rebuild calculate that field picture data need to be rebuild;
    It includes step that the calculating, which need to currently rebuild the space weight coefficient of each pixel of field picture,:
    An interim frame is formed using field picture known to current time and a field picture adjacent thereto;
    It is r2 to enable the current data rebuild on pixel position, and it is respectively r1, r0 to be divided to thereon in two rows, and lower point is in two That capable is respectively r3, r4;
    V1=1 is enabled, is r0 points from current location, e1=(float) abs when r0 points are not equal to r1 points with the mean value of r2 points (r0-r2);
    E2=(float) abs (r0+r2-2*r1);
    If e1<E2, then v1=e1/e2;
    Similarly v2=1, when r2 points are not equal to r3 points with the mean value of r4 points;
    E1=(float) abs (r2-r4);
    E2=(float) abs (r2+r4-2*r3);
    if(e1<e2)
    V2=e1/e2;
    The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight control Parameter.
  2. The processing method 2. video according to claim 1 deinterleaves, it is characterised in that:It is described according to space weight coefficient and Time weighting coefficient calculate static weighting coefficient specific steps include:By space weight coefficient be multiplied by time weighting coefficient obtain it is quiet State weighting coefficient.
  3. The processing method 3. video according to claim 1 deinterleaves, it is characterised in that:The calculating need to currently rebuild field figure As the time weighting coefficient of each pixel includes step:The each pixel of field picture need to be rebuild by first calculating schemes in Shang Yichang and next It is obtained by Nonlinear Mapping as the quadratic sum of the difference of pixel in corresponding position certain area, then by the value that evolution of averaging obtains Time weighting coefficient.
  4. The processing method 4. video according to claim 1 deinterleaves, it is characterised in that:It is each that current time need to rebuild field picture The space interpolation data of pixel obtain as follows:Obtain need to rebuild lastrow of the pixel on frame image space with Next line image data;Found out from this two rows data can pass through need to calculate pixel have minimal gradient direction line, then It is weighted averagely by uplink and downlink corresponding data in this direction, the space interpolation knot of pixel need to be rebuild by obtaining the position Fruit.
  5. The processing method 5. video according to claim 1 deinterleaves, it is characterised in that:Current time needs to rebuild field picture The temporal interpolation data of each pixel obtain as follows:Field picture data existing for a upper timeslice using current time With field picture data weighted average existing for future time piece, obtain currently rebuilding field picture temporal interpolation data.
  6. The processing method 6. video according to claim 1 deinterleaves, it is characterised in that:The each picture of field picture need to currently be rebuild The computational methods of prime number evidence are:Current pixel static state weighting coefficient, which is subtracted, using one obtains the movement weighting coefficient of the pixel, as The end value of element is that usage time interpolated data is multiplied by static weighting coefficient, in addition space interpolation data are multiplied by movement weighting coefficient Result.
  7. The processing unit 7. a kind of video deinterleaves, which is characterized in that including following module:
    Weight coefficient computing module:The space weight coefficient and time power of each pixel of field picture need to be rebuild for calculating current time Weight coefficient;
    Weighting coefficient computing module:For being calculated according to the space weight coefficient and time weighting coefficient that need to rebuild each pixel of field picture The static weighting coefficient of each pixel of field picture need to be rebuild by obtaining;
    Image data computing module:For according to need to rebuild the static weighting coefficient of each pixel of field picture, need to currently rebuild field figure The space interpolation data of picture, the temporal interpolation data that need to currently rebuild field picture calculate that field picture data need to be rebuild;
    The weight coefficient computing module is additionally operable to:
    An interim frame is formed using field picture known to current time and a field picture adjacent thereto;
    It is r2 to enable the current data rebuild on pixel position, and it is respectively r1, r0 to be divided to thereon in two rows, and lower point is in two That capable is respectively r3, r4;
    V1=1 is enabled, is r0 points from current location, e1=(float) abs when r0 points are not equal to r1 points with the mean value of r2 points (r0-r2);
    E2=(float) abs (r0+r2-2*r1);
    If e1<E2, then v1=e1/e2;
    Similarly v2=1, when r2 points are not equal to r3 points with the mean value of r4 points;
    E1=(float) abs (r2-r4);
    E2=(float) abs (r2+r4-2*r3);
    if(e1<e2)
    V2=e1/e2;
    The value for calculating pow (v1*v2,0.5) * alpha is space weight coefficient, and wherein alpha is to indicate preset weight control Parameter.
  8. The processing unit 8. video according to claim 7 deinterleaves, it is characterised in that:
    Weighting coefficient computing module, which is additionally operable to space weight coefficient being multiplied by time weighting coefficient, obtains static weighting coefficient.
  9. The processing unit 9. video according to claim 7 deinterleaves, it is characterised in that:
    Weight coefficient computing module, which is additionally operable to first calculate, need to rebuild each pixel of field picture in Shang Yichang and next field picture pair The quadratic sum of the difference of pixel in the certain area of position is answered, then the value that evolution of averaging obtains is obtained into the time by Nonlinear Mapping Weight coefficient.
  10. The processing unit 10. video according to claim 7 deinterleaves, which is characterized in that further include following module:
    Space interpolation computing module:Need to rebuild lastrow of the pixel on frame image space and next line image for obtaining Data;Found out from this two rows data can pass through need to calculate pixel there is minimal gradient direction line, then pass through the direction On uplink and downlink corresponding data be weighted average, the space interpolation result of pixel need to be rebuild by obtaining the position.
  11. The processing unit 11. video according to claim 7 deinterleaves, which is characterized in that further include following module:
    Temporal interpolation computing module:For using field picture data existing for a upper timeslice for current time and future time piece Existing field picture data weighted average obtains currently rebuilding field picture temporal interpolation data.
  12. The processing unit 12. video according to claim 7 deinterleaves, which is characterized in that described image data computation module It is also used for one and subtracts current pixel static state weighting coefficient obtaining the movement weighting coefficient of the pixel, the end value of pixel is to make It is multiplied by static weighting coefficient with temporal interpolation data, in addition space interpolation data are multiplied by the result of movement weighting coefficient.
CN201610073699.3A 2016-02-02 2016-02-02 A kind of video deinterleaves treating method and apparatus Active CN105704415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610073699.3A CN105704415B (en) 2016-02-02 2016-02-02 A kind of video deinterleaves treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610073699.3A CN105704415B (en) 2016-02-02 2016-02-02 A kind of video deinterleaves treating method and apparatus

Publications (2)

Publication Number Publication Date
CN105704415A CN105704415A (en) 2016-06-22
CN105704415B true CN105704415B (en) 2018-10-02

Family

ID=56228993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610073699.3A Active CN105704415B (en) 2016-02-02 2016-02-02 A kind of video deinterleaves treating method and apparatus

Country Status (1)

Country Link
CN (1) CN105704415B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810601B (en) * 2017-05-04 2020-10-27 福州瑞芯微电子股份有限公司 Motion subtitle de-interleaving method, system, mobile terminal and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633167A (en) * 2004-12-20 2005-06-29 海信集团有限公司 Time-space domain self-adaptive weighted average interlacing removing method for digital video signal
CN1638447A (en) * 2003-10-02 2005-07-13 三星电子株式会社 Image adaptive deinterlacing method and device based on edge
CN1889673A (en) * 2006-06-12 2007-01-03 北京中星微电子有限公司 Motion detecting and uninterlacing method for digital video frequency processing and apparatus thereof
CN101014086A (en) * 2007-01-31 2007-08-08 天津大学 De-interlacing apparatus using motion detection and adaptive weighted filter
CN101600061A (en) * 2009-07-09 2009-12-09 杭州士兰微电子股份有限公司 De-interlaced method of video motion-adaptive and device
CN103458213A (en) * 2013-09-13 2013-12-18 华为技术有限公司 Self-adaptive interlacing solving method and device and image processing system
CN104202555A (en) * 2014-09-29 2014-12-10 建荣集成电路科技(珠海)有限公司 Method and device for deinterlacing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0183149B1 (en) * 1995-12-30 1999-05-01 김광호 Motion image detection method
GB2444534A (en) * 2006-12-06 2008-06-11 Sony Uk Ltd Assessing the reliability of motion information in motion adaptive image processing
CN100479495C (en) * 2007-02-09 2009-04-15 天津大学 De-interlacing method with the motive detection and self-adaptation weight filtering

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638447A (en) * 2003-10-02 2005-07-13 三星电子株式会社 Image adaptive deinterlacing method and device based on edge
CN1633167A (en) * 2004-12-20 2005-06-29 海信集团有限公司 Time-space domain self-adaptive weighted average interlacing removing method for digital video signal
CN1889673A (en) * 2006-06-12 2007-01-03 北京中星微电子有限公司 Motion detecting and uninterlacing method for digital video frequency processing and apparatus thereof
CN101014086A (en) * 2007-01-31 2007-08-08 天津大学 De-interlacing apparatus using motion detection and adaptive weighted filter
CN101600061A (en) * 2009-07-09 2009-12-09 杭州士兰微电子股份有限公司 De-interlaced method of video motion-adaptive and device
CN103458213A (en) * 2013-09-13 2013-12-18 华为技术有限公司 Self-adaptive interlacing solving method and device and image processing system
CN104202555A (en) * 2014-09-29 2014-12-10 建荣集成电路科技(珠海)有限公司 Method and device for deinterlacing

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Weighted Fuzzy Reasoning Scheme for Interlaced;Gwanggil Jeon等;《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》;20090630;第19卷(第06期);全文 *
一个基于运动自适应去隔行算法的视频系统;刘陟等;《现代电子技术》;20050815(第16期);全文 *
一种具有高精度运动检测的自适应运动补偿去隔行算法;许卫全等;《信号处理》;20061031;第22卷(第05期);全文 *
一种自适应去隔行算法的设计;许善祥等;《通信与信息处理》;20080725;第27卷(第07期);全文 *
时空权重和边缘自适应去隔行;丁勇等;《计算机学报》;20070430;第30卷(第04期);全文 *

Also Published As

Publication number Publication date
CN105704415A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
US20200162749A1 (en) Image Processing Method, Device, and System
Ha et al. Motion compensated frame interpolation by new block-based motion estimation algorithm
US8144254B2 (en) Contour enhancement unit and method to enhance the contours of an image
US7929031B2 (en) Image processing apparatus and image processing method
CN101523475B (en) Image display apparatus
CN104700360A (en) Image zooming method and system based on edge self-adaptation
CN101443810A (en) Up-scaling
CN111243544B (en) Method for eliminating water ripple caused by spread spectrum, storage medium and display panel
CN105704415B (en) A kind of video deinterleaves treating method and apparatus
US8692933B1 (en) Method and apparatus for buffering anchor frames in motion compensation systems
CN102800047B (en) Method for reconstructing super resolution of single-frame image
Chu et al. Gradient-based adaptive interpolation in super-resolution image restoration
Qin et al. Blind Single-Image Super Resolution Reconstruction with Gaussian Blur and Pepper & Salt Noise.
CN102164228B (en) Image processing method for enhancing image border resolution
US7532255B2 (en) Color transient improvement unit and method to reduce blurring at color transients in video images
KR20110026942A (en) Loss information estimation method and high resolution transform method of low resolution image
CN106856573B (en) A kind of optimization method and system of video playing power consumption
CN100479497C (en) Method and device of vedio noise reduction
JP2017085363A (en) Contrast correction device and program
Tian et al. A fast edge-directed interpolation algorithm
CN103793892A (en) Image processing apparatus and image processing method
Kim et al. Dynamic rendering quality scaling based on resolution changes
CN1454003A (en) Video image pattern conversion method realized with 2D multiphase interpolating filter
Dai et al. Study on infrared image super-resolution reconstruction based on an improved POCS algorithm
WO2010084380A1 (en) Integrated circuit comprising deflicker unit for filtering image data, and a method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder