Video picture format conversion method and corresponding device

Information

  • Patent Grant
  • 8264601
  • Patent Number
    8,264,601
  • Date Filed
    Tuesday, December 9, 2008
    16 years ago
  • Date Issued
    Tuesday, September 11, 2012
    12 years ago
Abstract
The present invention can be implemented in a video coder or decoder or directly in any type of display device. According to the invention, a distance representative of the edge orientation in the input picture is calculated, for at least one point situated inside a zone delimited by a first set of neighbouring pixels of the input picture, it is calculated independently from the grid of pixels of the output picture. For at least one pixel of the output picture situated in this zone, a second set of pixels is determined in the input picture from the distance and the position of said pixel of the output picture in this zone. The value of this output pixel is then determined from the value of the pixels of said second set of pixels. This method enables a reduction in the number of calculations for this format conversion.
Description

This application claims the benefit, under 35 U.S.C. §119 of French Patent Application 0759829, filed Dec. 13, 2007.


FIELD OF THE INVENTION

The present invention relates to a method and a device for video picture format conversion. It can be implemented in a video coder or decoder or directly in any type of display device.


TECHNOLOGICAL BACKGROUND OF THE INVENTION

There are currently two formats associated with standard HDTV (High Definition TV). These two formats are the 720p format and the 1080i format. The 720p format produces progressive pictures comprising 720 lines and 1280 columns and the 1080i format produces interlaced pictures comprising 1080 lines and 1920 columns. Each of these formats has advantages that are specific to it. The 720p format presents a better temporal resolution and reproduces fast moving objects without creating a blur effect while the 1080i format presents a better spatial resolution. The programme broadcasters have chosen to use one or other of these formats but not both together. There is therefore a real necessity to process, prior to display, the format of broadcast programmes, to transform it into a format supported by the display device used to display said programmes.


It is known in the art to change the format of a video picture by first carrying out a detection of the local edge orientation in the input picture then carrying out an interpolation based on the detected orientations. A distance representative of the edge orientation is calculated at a point of the input picture having the same spatial position (i.e. the same spatial coordinates) as the pixel of the output picture to be interpolated and this distance is then used to calculate the value of this pixel of the output picture. This method is relatively complex and consuming in terms of calculation resources.


SUMMARY OF THE INVENTION

The purpose of the present invention is to improve this method.


The present invention relates to a format conversion method of an input picture to an output picture, comprising the following steps:

    • calculate, in at least one point situated inside a zone delimited by a first set of neighbouring pixels of the input picture, a distance representative of the edge orientation at this point,
    • determine, for at least one pixel situated in a zone of the output picture corresponding to the zone delimited by the first set of neighbouring pixels of said input picture, a second set of pixels in the input picture from the calculated distance for said point in the zone and from the position of said pixel of the output picture in the zone of the output picture,
    • determine the value of said pixel of the output picture from the value of the pixels of the second set of pixels.


According to a particular embodiment, the neighbouring pixels of the first set belong to at least two consecutive lines or columns of pixels of the input picture.


The calculation of the distance representative of the edge orientation is carried out on a single point of the zone of the input picture to reduce the number of calculations. This point is thus advantageously situated at the centre of said zone.


According to the invention, the distance representative of the edge orientation at a point of the input picture depends on a local gradient of video components of the input picture at said point.


According to a particular embodiment, if the calculated distance exceeds a predefined maximum value, the distance is capped at said maximum value.


According to another particular embodiment, if the calculated distance exceeds a predefined maximum value, the distance is adjusted to a null value.


According to the invention, the value of the pixel of the output picture is advantageously determined by bilinear interpolation of pixels of the second set.


The invention also relates to a device for format conversion of an input picture into an output picture, the input picture and the output picture comprising the pixels, comprising:

    • a calculation circuit to calculate, in at least one point situated inside a zone delimited by a first set of neighbouring pixels of the input picture, a distance representative of the edge orientation at this point, and
    • an interpolation circuit to determine, for at least one pixel situated in a zone of the output picture corresponding to the zone delimited by the first set of neighbouring pixels of said input picture, a second set of pixels in the input picture from the distance or distances calculated for the point or points of the zone and from the position of the pixel of the output picture in the zone of the output picture, and to determine the value of the pixel of said output picture from the value of the pixels of the second set of pixels of the input picture.





BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be better understood upon reading the following description, provided as a non-restrictive example and referring to the annexed drawings wherein:



FIG. 1 shows the steps in a first embodiment of the method according to the invention



FIG. 2 shows the position of a point P of the input picture in which it is calculated at a distance representative of the edge orientation,



FIG. 3 shows the parameters used to calculate the value of a pixel Pout of the output picture located in the same zone of the picture as the pixel P of the input picture shown in FIG. 2,



FIG. 4 shows a device capable of implementing the method of FIG. 1,



FIG. 5 shows the steps in a second embodiment of the method according to the invention, and



FIG. 6 shows a device capable of implementing the method of FIG. 5.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS OF THE INVENTION

The method of the invention is used to carry out a format conversion of an input picture. The method produces an output picture having a format different to that of the input picture, the output picture comprising a larger or smaller number of lines and/or columns than the input picture. The lines and/or columns of the output picture are generated by interpolation of the lines and/or columns of the input picture.


According to the invention, the interpolation is an “edge orientated interpolation”. This interpolation is more particularly realised when based on a detection of local edge orientations in the input picture. This detection is carried out by calculating the distances representative of the orientation of these edges. An example of the calculation of this distance will be described later in the description.



FIG. 1 shows the steps in a first embodiment of the method according to the invention. The method is applied to all or part of an input picture to generate an output picture of a different format. In reference to FIG. 1, the method comprises a first step 110 of calculation of a distance representative of an edge orientation and at least one point situated inside a zone delimited by a first set of neighbouring pixels of the input picture. This zone is for example delimited by 4 adjacent pixels belonging to two consecutive lines and two consecutive columns of the input picture. According to the invention, the distance calculated for a point in this zone of the input picture is used to calculate the value of the pixels of the output picture present in this zone of the picture.


An example of the calculation of the representative distance d of the edge orientation at a point of the input picture is described hereafter. This distance d, is calculated at a point P of the input picture as shown in FIG. 2. FIG. 2 shows 8 pixels of the input picture spread over two consecutive lines yn and yn+1 of the input picture. These pixels belong to the columns of pixels numbered xm−1, xm, xm+1 and xm+2 of the input picture. The pixels of the input picture are represented on the figure by black dots. The distance is calculated at a point P situated inside the zone delimited by the coordinates (xm,yn), (xm+1,yn), (xm+1,yn+1) and (xm,yn+1). The pixel P is identified by the coordinates (x′,y′) in the input picture. In this example, the point P is situated at the centre of the zone delimited by the pixels at coordinates (xm,yn), (xm+1,yn), (xm+1,yn+1) and (xm,yn+1). A horizontal gradient, noted as Ix(x′,y′), and a vertical gradient, noted as Iy(x′,y′), are calculated for the luminance video component (Y in the space of the colours [Y, Cb, Cr] or [Y, U, V]) at this point P.








I
x



(


x


,

y



)


=





I



x




(


x


,

y



)


=


I


(



x
m

+
2

,

y
n


)


+

I


(



x
m

+
2

,


y
n

+
1


)


-

I


(



x
m

-
1

,

y
n


)


-

I


(



x
m

-
1

,


y
n

+
1


)












I
y



(


x


,

y



)


=





I



y




(


x


,

y



)


=


I


(


x
m

,


y
n

+
1


)


+

I


(



x
m

+
1

,


y
n

+
1


)


-

I


(


x
m

,

y
n


)


-

I


(



x
m

+
1

,

y
n


)









where I(x,y) designates the luminance component of the pixel at coordinates (x,y).


The distance d to point P is then taken to equal:






d
=



I
y



(


x


,

y



)




I
x



(


x


,

y



)







The distance d calculated for the pixel P is shown in FIG. 2. A line segment S links the point at coordinates (x′+d,yn) and the point at coordinates (x′−d,yn+1).


According to the invention, this distance d calculated at the point P is used to determine the value of all the pixels of the output picture belonging to the zone of the output picture corresponding to the zone delimited by the points at coordinates (xm,yn), (xm+1,yn), (xm+1,yn+1) and (xm,yn+1) in the input picture. It should be noted that the coordinates (xm,yn), (xm+1,yn), (xm+1,yn+1), (xm,yn+1) are the coordinates in the input picture. The output picture having a number of columns and a number of lines different to those of the input picture, the pixels delimiting this zone have different coordinates in the output picture. Naturally it is possible to extend this zone to any zone surrounding the point P having a different size and/or form.


The format conversion modifies the number and position of lines and/or columns of pixels of the picture. For example, in the output picture, a line y″ of pixels is present between the lines yn and yn+1 of the input picture and a column of pixels x″ is present between the columns of pixels xm and xm+1 of the input picture. A pixel Pout of the output picture is present at the intersection of the line y″ and the column x″ as shown in FIG. 3. The coordinates (x″,y″) are the coordinates of the pixel Pout in the input picture. The output picture having a number of columns and/or lines different to those of the input picture, the pixel Pout has different coordinates, noted as (xout, yout), in the output picture. The distance d calculated for the point P is used to determine the values of all the pixels Pout present in the zone delimited by the points at coordinates (xm,yn), (xm+1,yn), (xm+1,yn+1) and (xm,yn+1).


With reference again to FIG. 1, the method also comprises a determination step 120, for at least one pixel of the output picture situated in this zone, of a second set of pixels in the input picture from the distance d previously calculated and from the position of this pixel of the output picture in this zone. For example, a second set of pixels of the input picture for the pixel Pout is thus calculated. This step is described with reference to FIG. 3. To improve understanding of this step, the following notations are used.

    • ν is the ratio of the number of lines of the input picture to the number of lines of the output picture,
    • r is the ratio of the number of columns of the input picture to the number of columns of the output picture,


      For the pixel Pout at coordinates (xout,yout) in the in the output picture, the lines of pixels yn and yn+1 of the input picture closest to the line yout are determined.

      y″=ν·yout
      yn=E(y″)
    • where E(x) designates the integer part of the variable x.


A vertical phase φ=|y″−yn| representing the distance between the line y″ of the pixel Pout and the line yn of the input picture is defined. φ is comprised between 0 and 1.


The columns of pixels xm and xm+1 of the input picture closest to the column xout are also determined.

X″=r·xout
xm=E(x″)


A horizontal phase θ=x″−xm−0.5 representing the distance between the line x′ of the pixel Pout and the pixel P of the input picture is defined. θ is comprised between −0.5 and 0.5.


If the line segment S is translated horizontally so that it passes through the pixel Pout, this segment then links the point at coordinates (xyn,yn) and the point at coordinates (xyn+1,yn+1).


Then xyn=x″+2·φ·d+θ=x″+dsup and xyn+1=x″+2·(1−φ)·d+θ=x″−dinf are obtained.


It should be noted that |dinf+dsup|=2d.


The second set of pixels determined at step 120 is then for example:

    • the pixel at coordinates (E(xyn),yn),
    • the pixel at coordinates (E(xyn)+sign(d),yn),
    • the pixel at coordinates (E(xyn+1),yn+1),
    • the pixel at coordinates (E(xyn+1)−sign(d),yn+1),
    • where sgn(x) is the sign function of x







sgn


(
x
)


=

{




-
1





if





x

<
0





0




if





x

=
0





1




if





x

>
0









In the example of FIG. 3, the pixel at coordinates (E(xyn),yn) is the pixel at coordinates (xm+1,yn), the pixel at coordinates (E(xyn)+sign(d),yn) is the pixel at coordinates (xm+2,yn), the pixel at coordinates (E(xyn+1),yn+1) is the pixel at coordinates (xm−1,yn+1) and the pixel at coordinates (E(xyn+1)−sign(d),yn+1) is the pixel at coordinates (xm−1,yn+1).


With reference again to FIG. 1, the next step is step 130 that consists in calculating the value of the output pixel Pout at coordinates xout and yout in the output picture from the value of the pixels of the set determined in step 120. For this calculation step, the parameters α and β are defined as follows:

α=|E(xyn)−xyn|
β=|E(xyn+1)−xyn+1|


The value of the pixel P at coordinates (xout, yout) in the output picture is then calculated using the following formula that corresponds to a bilinear interpolation:

Iout(xout,yout)=(1−φ)·└(1−α)·Iin(E(xyn), yn)+α·Iin(E(xyn)+sgn(d), yn)┘+φ[(1−β)·Iin(E(xyn+1), yn+1)+β·Iin(E(xyn+1)+sgn(d), yn+1)]

    • where −Iin(x,y) designates the value of the pixel at coordinates (x,y) in the input picture and Iout(x,y) designates the value of the pixel at coordinates (x,y) in the output picture.


The calculation is carried out on each video component of the pixel. The distance d calculated for the luminance video component is used for the calculation of all the video components of the pixel from the output picture.


Other formulas for the calculation of the video components of pixels of the output picture can be considered. In the example above, the interpolation is bilinear. The use of a linear interpolation or an interpolation by selection of the closest neighbour or a combination of linear or bilinear interpolations can be envisaged. These interpolations are well known by those in the profession. Use of a greater number of lines or columns can also be envisaged. Finally changing the interpolation formula according to the distance module d can be provided for.



FIG. 4 illustrates a 400 device capable of implementing the method of the invention. Yin, Cbin and Crin designate the video components of the picture applied at the input of the device and Yout, Cbout and Crout designate the video components of the output picture of the device. These components are expressed in the colour space [Y, Cb, Cr]. Naturally other colour spaces can be used such as the colour spaces [Y, U, V] or [R, G, B]. For components expressed in the colour space [R, G, B], a luminance component Y is recalculated to determine the local gradients required for the distance calculation. The 400 device comprises:

    • a calculation circuit 410 of distances representative of the edge orientations at points of the input picture, this circuit implements step 110 of the method of the invention, this circuit delivers a distances chart, and
    • an interpolation circuit 430 implementing steps 120 and 130 of the method of the invention from the input picture and the distances chart delivered by the circuit 410, this filter delivers the output picture.



FIG. 5 illustrates a second embodiment of the invention. This second embodiment comprises the steps 501, 510520 and 530. The steps 510 to 530 are identical to steps 110 to 130 of the first embodiment illustrated by FIG. 1. This second embodiment comprises an additional step with the reference 501, of filtering of the input picture. The purpose of this filtering is to improve the calculation of the distances of the edge orientations of the input picture. The filter used is based on a Gaussian kernel. This filter is applied to the input picture signal luminance component Y. Hereafter, Ijf designates the component Ij filtered. The filtered component is then:








I
f



(

x
,
y

)


=



G


(

x
,
y
,
σ

)


*

I


(

x
,
y

)



=




G


(

μ
,
v
,
σ

)


·

I


(


x
-
μ

,

y
-
v


)










μ








v









where


:









G


(

x
,
y
,
σ

)


=


1

2





πσ




exp


(

-


(


x
2

+

y
2


)


2





σ



)




,






σ
2






is





the





variance





of





the





Gaussien






kernel
.






The filter used is for example the following 5×5 coefficients filter:








1
100

×


[



1


2


4


2


1



]



[



1




2




4




2




1



]



=


1
100

×

[



1


2


4


2


1




2


4


8


4


2




4


8


16


8


4




2


4


8


4


2




1


2


4


2


1



]







FIG. 6 illustrates a 600 device capable of implementing this second embodiment of the method of the invention. Yin, Cbin and Crin designate the video components of the picture applied at the input of the device and Yout, Cbout and Crout designate the video components of the output picture of the device. Naturally other colour spaces can be used such as the colour spaces [Y, U, V] or [R, G, B]. For components expressed in the colour space [R, G, B], a luminance component Y is recalculated to determine the local gradients required for the distance calculation. These components are expressed in the colour space [Y, Cb, Cr]. The 600 device comprises:

    • a first filter 601 to implement the first filtering step 501, this filtering is applied to one or to all video components of the signal of the input picture,
    • a calculation circuit 610 of distances representative of the edge orientations of the input picture, this circuit implements step 510 of the second embodiment of the method of the invention, this circuit delivers a distances chart, and
    • an interpolation circuit 620 implementing steps 520 and 530 of the method of the invention from the input picture and the distances chart delivered by the filter 610, this circuit delivers the output picture.


In the method of the invention previously defined, the distance calculated at step 110 or 510 is used as is to determine the pixels of the second set. As a variant, if the distance calculated exceeds a predefined maximum value, this distance is capped at this maximum value. This maximum value is for example equal to 4 pixels for an SD (Standard Definition) picture. In fact, beyond this maximum value, the value of the distance d cannot be low thus introducing errors into the interpolation. According to another variant, if the distance calculated exceeds this maximum value, the distance is adjusted to a null value. This second variant enables even further reduction of the risk of errors while being however less precise in the interpolation of some edges.


Naturally, the invention is not limited to the aforementioned embodiments. Any format conversion method or device in which distances representative of the edge orientations are calculated at points of the input picture independently of the grid of the output picture, each point being associated with a zone of the picture, and in which the values of pixels in a zone of the output picture are calculated from the distance calculated for this zone and from the position of these output pixels with respect to the point of the input picture falls into the field of the present invention.

Claims
  • 1. A method for converting a format of an input picture to an output picture, said method comprising steps of: calculating, for one single point situated inside a zone delimited by a first set of neighboring pixels of said input picture, a single distance representative of an edge orientation at said point;determining, for each pixel of a plurality of pixels situated in a zone of the output picture corresponding to the zone of said input picture, a second set of pixels in said input picture from the single distance and from a position of said pixel of the output picture; anddetermining a value of said pixel of the output picture from values of pixels of said second set of pixels.
  • 2. The method according to claim 1, wherein said first set of neighboring pixels belong to at least two consecutive lines or columns of pixels of the input picture.
  • 3. The method according to claim 1, wherein said point is situated at a centre of said zone.
  • 4. The method according to claim 2, wherein the calculated distance depends on a local gradient of a luminance video component of the input picture at said point.
  • 5. The method according to claim 2, wherein, if said calculated distance exceeds a maximum value, said calculated distance is capped at said maximum value.
  • 6. The method according to claim 2, wherein, if said calculated distance exceeds a maximum value, said calculated distance is adjusted to a null value.
  • 7. The method according to claim 2, wherein the value of said pixel of the output picture is determined by bilinear interpolation of the pixels of said second set of pixels.
  • 8. A device for converting a format of an input picture to an output picture, said device comprising: a calculation circuit operative to calculate, for one single point situated inside a zone delimited by a first set of neighboring pixels of said input picture, a single distance representative of an edge orientation at said point; andan interpolation circuit operative to determine, for each pixel of a plurality of pixels situated in a zone of the output picture corresponding to the zone of said input picture, a second set of pixels in said input picture from the single distance and from a position of said pixel of the output picture, and to determine a value of said pixel of said output picture from values of pixels of said second set of pixels.
Priority Claims (1)
Number Date Country Kind
0759829 Dec 2007 FR national
US Referenced Citations (40)
Number Name Date Kind
5532751 Lui Jul 1996 A
6122017 Taubman Sep 2000 A
6771835 Han et al. Aug 2004 B2
7023487 Adams Apr 2006 B1
7075580 Jiang Jul 2006 B2
7116372 Kondo et al. Oct 2006 B2
7126643 Song et al. Oct 2006 B2
7242412 Sellers Jul 2007 B2
7259794 Chang et al. Aug 2007 B2
7319797 Hung Jan 2008 B2
7321400 Chou et al. Jan 2008 B1
7379625 Wang et al. May 2008 B2
7379626 Lachine et al. May 2008 B2
7382929 Cooper Jun 2008 B2
7397973 Lee Jul 2008 B2
7403234 Lertrattanapanich et al. Jul 2008 B2
7406208 Chiang Jul 2008 B2
7412096 Neuman et al. Aug 2008 B2
7414671 Gallagher et al. Aug 2008 B1
7440016 Keshet et al. Oct 2008 B2
7474789 Wang et al. Jan 2009 B2
7519232 Neuman et al. Apr 2009 B2
7548275 Honda Jun 2009 B1
7554559 Lu et al. Jun 2009 B2
7590307 Wang et al. Sep 2009 B2
7782401 Chou Aug 2010 B1
7876979 Lee et al. Jan 2011 B2
7945120 Tanaka May 2011 B2
8139153 Kervec et al. Mar 2012 B2
20030206667 Wang et al. Nov 2003 A1
20040119884 Jiang Jun 2004 A1
20050073607 Ji et al. Apr 2005 A1
20050122426 Winger et al. Jun 2005 A1
20060268168 Au et al. Nov 2006 A1
20070052845 Adams Mar 2007 A1
20080024658 Wang et al. Jan 2008 A1
20080068498 Chang et al. Mar 2008 A1
20080231746 Lertrattanapanich et al. Sep 2008 A1
20090207304 Kervec Aug 2009 A1
20090214132 Yamada et al. Aug 2009 A1
Foreign Referenced Citations (2)
Number Date Country
1 313 312 May 2003 EP
2 422 264 Jul 2006 GB
Related Publications (1)
Number Date Country
20090167936 A1 Jul 2009 US