Embodiment
Please consult Fig. 1 and Fig. 2 simultaneously, Fig. 1 is the flow chart of one first embodiment of image uninterleaving method of the present invention.This method is to utilize bit shift compensation to carry out the deinterleave computing.The inventive method successively is respectively second F by receiving three adjacent fields in this video signal data in regular turnN-1, first FnWith the 3rd FN+1Fig. 2 is the functional block diagram of imageuninterleaving circuit 200 of the present invention.This imageuninterleaving circuit 200 includes aninterpolation field module 10,module 11, apixel selection module 12, adecision logic module 14, aninternal memory 15 and an occasion andmodule 16 are estimated in a displacement.Displacement is estimatedmodule 11 and is included a displacement and estimate unit 11a;Pixel selection module 12 includespixel selection unit 12a and 12b;Decision logic module 14 includes decision logic unit 14a.The running of this first embodiment is as described below:
Step 202 interpolation field step:interpolation field module 10 receives and first F of foundationnOne first pixel obtain the interpolation field reference pixel P_intra of a pixel P_mc among the target field F_mc.Wherein, interpolation field reference pixel P_intra can be produced by known interpolation operation (intra-fieldinterpolation);
Step is estimated instep 204 displacement: displacement is estimated unit 11a and is received also according to first FnCarry out displacement with a preceding target field F_mc-1 and estimate, and produce corresponding first FnThe one first motion vector MV_1 and the one first similarity S of this first pixel1Wherein, the first motion vector MV_1 represents the displacement of the possible respective pixel of this first pixel and preceding target field F_mc-1, if the value of the first motion vector MV_1 is 0, represents that then the pixel P_mc of this first pixel and target field F_mc does not have displacement; The first similarity S1Represent the similar situation of this first pixel and the possible respective pixel of preceding target field F_mc-1.Among one embodiment, the first similarity S1Ask method directly to subtract each other to draw a difference value with this first pixel and its respective pixel, as the big more expression first similarity S of difference value1More little, as the more little expression first similarity S of difference value1Big more;
Step 206 and 208 is the pixel selection step:
Step 206:pixel selection unit 12a receives and the foundation first motion vector MV_1 and one second FN-1, produce one first reference pixel P_inter_n-1 corresponding to this first pixel;
Step 208: pixel selection modular unit 12b receives and the foundation first motion vector MV_1 and one the 3rd FN+1, produce one second reference pixel P_inter_n+1 corresponding to this first pixel;
The similar determining step of step 210:decision logic unit 14a is according to the first similarity S1Adjust weighting w1 (weight) ratio of interpolation field reference pixel P_intra, the first reference pixel P_inter_n-1 and the second reference pixel P_inter_n+1, to produce pixel P_mc to target field F_mc that should first pixel.In one embodiment, P_mc=w1* P_inter+ (1-w1) * P_intra, wherein P_inter=(1/2) * (P_inter_n-1+P_inter_n+1).
Step 212: the pixel P_mc ofinternal memory 15 receiving target field F_mc, pixel P_mc and this first pixel of occasion andmodule 16 receiving target field F_mc merge, and export the object pixel of a target frame (frame) Fr_n; And
Step 214: finish.
In another embodiment, can not consider interpolation field reference pixel P_intra, thenstep 202 is omissible.In another embodiment, can not consider the second reference pixel P_inter_n+1, thenstep 208 is omissible.In another embodiment, do not consider the interpolation field reference pixel P_intra and the second reference pixel P_inter_n+1, then step 202,208 and 210 is omissible.
If first FnBe one strange, then target field F_mc is an idol field, and if first FnBe an idol field, then target field F_mc is Yi Qichang.
Fig. 3 utilizes bit shift compensation for the inventive method and carries out the flow chart of second embodiment of deinterleave processing.The inventive method successively is respectively second F in regular turn by receiving three adjacent fields in this video signal dataN-1, first FnWith the 3rd FN+1Fig. 4 is the functional block diagram of second kind of image uninterleaving circuit 300 of the present invention.Image uninterleaving circuit 300 includes aninterpolation field module 10,module 11, apixel selection module 12, adecision logic module 14, aninternal memory 15 and an occasion andmodule 16 are estimated in a displacement.Wherein, displacement is estimatedmodule 11 and is included displacement and estimate unit 31,32 and 33;Pixel selection module 12 includes pixel selection unit 34,35,36 and 37;Decision logic module 14 includes decision logic unit 41,42,43 and 44.Please consult Fig. 3 and Fig. 4 simultaneously, the running of this second embodiment is as described below:
Step 302 is identical withstep 202;
Step 304,306 and 308 is estimated step for displacement:
Step 304: displacement is estimated unit 31 and is received also according to first FnCarry out displacement with a preceding target field F_mc-1 and estimate, produce corresponding first FnThe one first motion vector MV_1 and the one first similarity S of this first pixel1
Step 306: displacement is estimated unit 32 and is received first FnWith one second FN-1, export one second motion vector MV_2 and one second similarity S2
Step 308: displacement is estimated unit 33 and is received first FnWith one the 3rd FN+1, export a triple motion vector M V_3 and a third phase and seemingly spend S3
Step 310,312,314 and 316 is the pixel selection step:
Step 310: pixel selection unit 34 is according to the first motion vector MV_1 and second FN-1Corresponding pixel, produce one first reference pixel P_inter_n-1_a corresponding to this first pixel;
Step 312: pixel selection unit 35 is according to the second motion vector MV_2 and second FN-1Corresponding pixel, produce one the 3rd reference pixel P_inter_n-1_b corresponding to this first pixel;
Step 314: pixel selection unit 36 is according to triple motion vector M V_3 and one the 3rd FN+1Corresponding pixel, produce one the 4th reference pixel P_inter_n+1_a corresponding to this first pixel;
Step 316: pixel selection unit 37 is according to the first motion vector MV_1 and one the 3rd FN+1Corresponding pixel, produce one second reference pixel P_inter_n+1_b corresponding to this first pixel;
Step 318,320,322 and 324 is a similarity determining step:
Step 318: decision logic unit 41 is according to this first and second similarity S1, S2, adjust the weighting ratio w1 of the first reference pixel P_inter_n-1_a and the 3rd reference pixel P_inter_n-1_b, and produce a Wucan respectively according to this weighting w1 and examine pixel P_inter_n-1 and one the 4th similarity S4In one embodiment, its to ask method be S4=w1* S1+ (1-w1) * S2, P_inter_n-1=w1* P_inter_n-1_a+ (1-w1) * P_inter_n-1_b;
Step 320: decision logic unit 42 according to this first and third phase seemingly spend S1, S3, judge the weighting ratio of the 4th reference pixel P_inter_n+1_a and the second reference pixel P_inter_n+1_b, to produce one the 6th reference pixel P_inter_n+1 and one the 5th similarity S5
Step 322: decision logic unit 43 is according to the 4th and the 5th similarity S4, S5, judge that Wucan examines the weighting ratio of pixel P_inter_n-1 and the 6th reference pixel P_inter_n+1, to produce one the 7th reference pixel P_inter and one the 6th similarity S6
Step 324: decision logic unit 44 is according to the 6th similarity S6Adjust the weighting ratio w6 of interpolation field reference pixel P_intra and the 7th reference pixel P_inter, to produce pixel P_mc to target field F_mc that should first pixel.In the present embodiment, P_mc=w6 * P_inter+ (1-w6) * P_intra;
Step 326: the pixel P_mc ofinternal memory 15 receiving target field F_mc, pixel P_mc and this first pixel of occasion andmodule 16 receiving target field F_mc merge, and export the object pixel of a target frame (frame) Fr_n; And
Step 328: finish.
Above-mentioned steps is the preferred embodiment of this second embodiment, but also clipped step certainly, and the pixel selection step of step or part or similarity determining step partly etc. are estimated in the displacement of for example omitting step 302 or part.
Wherein, among the embodiment, the determination methods of decision logic unit 41: as first and second similarity S1, S2During all greater than a critical value, P_inter_n-1=w then1* P_inter_n-1_a+ (1-w1) * P_inter_n-1_b, wherein, weighting w1=(S1/ (S1+ S2)); If the first similarity S1Greater than this critical value and the second similarity S2Less than this critical value, then P_inter_n-1=P_inter_n-1_a; In addition, the 4th similarity S4Obtain with above-mentioned judgment mode.Wherein this decision logic unit 42,43 and 44 determination methods can be similar.
In the present embodiment, target field that last place is obtained system is used for the auxiliary corresponding target field of obtaining present processing midfield, so the aforesaid operations flow process just can be used to calculate in the video signal data a plurality of corresponding target field, reaches the purpose of deinterleaveization at last.Second embodiment also utilizes three field FN-1, Fn, FN+1Predict other possibility pixel value (that is P_inter_n+1_a and P_inter_n+1_b) of each pixel in the target field, therefore when carrying out the subsequent weight computing and set the pixel value of each pixel in this target field, present embodiment can produce preferable operation result and reach and avoid the influence of inappropriate possible pixel value to actual pixel value.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to the covering scope of patent of the present invention.