EP0776136A1 - Method and apparatus for calculating a chroma key of an object evolving on a coloured background - Google Patents
Method and apparatus for calculating a chroma key of an object evolving on a coloured background Download PDFInfo
- Publication number
- EP0776136A1 EP0776136A1 EP96402511A EP96402511A EP0776136A1 EP 0776136 A1 EP0776136 A1 EP 0776136A1 EP 96402511 A EP96402511 A EP 96402511A EP 96402511 A EP96402511 A EP 96402511A EP 0776136 A1 EP0776136 A1 EP 0776136A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- cone
- colored background
- subject
- defining
- axis
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/74—Circuits for processing colour signals for obtaining special effects
- H04N9/75—Chroma key
Definitions
- the invention relates to a method of calculating a key for cutting a subject moving in front of a colored background so as to be able to embed this subject on a new colored background.
- the invention also relates to any electronic device or apparatus implementing this method such as, for example, video mixers or even autonomous devices for cutting and overlaying video images commonly known in English as "chroma-keyers". Such electronic devices or devices are used, for example, in television studio equipment.
- subject video the source image consisting of the subject evolving on the colored background.
- the cutting key must make it possible to better identify the subject to be cut. So it is desirable to want to keep as many details of the subject as possible, such as, for example for a character, isolated hair, the transparency of glasses, or even the smoke of a cigarette.
- the cutting key has the function of allowing the distinction between the colored background of the subject video and the subject itself. It is then necessary to define in the color space a volume representing the colored background so as to be able to extract the subject from the colored background in order to embed it in front of a new background.
- the invention relates to a new volume approach to the colored background so as to better integrate the details of the subject such as those mentioned above.
- the invention relates to a method of calculating a key KD for cutting a subject moving in front of a colored background, said key making it possible to separate the color space into three zones, a first zone defining a volume representing the colored background, a second zone defining a volume representing the subject and a third zone defining a transition zone between the colored background and the subject.
- This process includes different calculation steps allowing the volume representing the colored background to be defined in the form of a cone with an opening angle ⁇ whose axis of symmetry passes through the achrome point and of zero luminance of the color space and a dot representing the color of the colored background.
- the invention relates to an electronic device comprising means for calculating a key for cutting a subject moving in front of a colored background, said key making it possible to separate the color space into three zones, a first zone defining a volume representing the colored background, a second zone defining a volume representing the subject and a third zone defining a transition zone between the colored background and the subject.
- the means for calculating the cutting key comprise means for calculating the coordinates of each pixel of the color space in a coordinate system (U, V, W), the coordinate system (U, V, W) being a direct trihedron whose center is the achrome point of zero luminance and whose axis W points to a point of color of the colored background, and means for defining the volume representing the colored background in the form of a cone with an opening angle ⁇ having for axis symmetry the W axis
- FIG. 1 represents an example of colored background volume according to the prior art.
- Each pixel M (n) of index n of the colored background is represented by its three coordinates yn, cbn, crn where yn, cbn and crn are respectively the luminance component, the chrominance component of red color difference and the chrominance component of difference of blue color of pixel M (n) .
- the color difference chrominance components will hereinafter be called the chrominance components.
- the average value y0, cb0, cr0 of each component of the colored background is then written: where N is the number of pixels of the colored background corresponding to an acquisition window pointing to all or part of the colored background.
- the invention does not have these drawbacks.
- Figures 2a and 2b show the different transformations used to build the volume defining the colored background according to the invention.
- the angle of rotation ⁇ is such that the axis CR becomes the axis Z which points in the direction D towards the hue of the color of the colored background.
- the axis CB becomes the axis U perpendicular to the axis Z so that the trihedron (U, Z, Y) is a direct trihedron.
- This change of reference can be expressed in matrix form by the relation: where cb and cr are the components of a point in the color space along the axes CB and CR where u and z are the components of this same point along the axes U and Z.
- Figure 2b represents a rotation of the plane (Z, Y) around the axis U.
- the angle of rotation ⁇ is such that the axis Y becomes the axis W which points in the direction C towards the color of the colored background .
- the Z axis becomes the V axis perpendicular to the W axis so that the trihedron (U, V, W) is a direct trihedron.
- This change of reference can be expressed in matrix form by the relation: where z and y are the components of a point in the color space along the Z and Y axes and where w and v are the components of this same point along the W and V axes
- FIG. 3 represents a pixel of the color space in the new reference frame constructed in FIGS. 2a and 2b.
- the pixel M (i) has a component along each of the three axes U, V, W, that is, respectively, the components u (i) , v (i) and w (i) .
- the cylindrical coordinates of the point M (i) in the coordinate system (U, V, W) are: r (i) , ⁇ (i) and w (i) .
- r i u i 2 + v i 2
- ⁇ (i) ( U ⁇ , O ⁇ P (Mid) )
- point P (Mi) is the projection of point M (i) on the plane (U, V).
- the distance r (i) will be called the chrominance distance of the point M (i) relative to the axis W.
- FIG. 4 represents the volume approach of the colored background according to the invention.
- the volume which represents the colored background has the shape of a whole cone (volume V1) or truncated (volume V2) in the color space referenced with respect to the new frame (U, V, W) deduced from the frame (CB, CR, Y) by the geometric transformations described in Figures 2a and 2b.
- the color space is divided into three zones, as before: zone 1 which represents the colored background, zone 3 which represents the subject and zone 2 which represents the transition between the subject and the colored background.
- the cone representing the colored background is defined by an angular opening ⁇ , a vertex located at the abscissa ws on the axis W, an elliptical or circular section.
- a high luminance threshold, of abscissa wh on the W axis makes it possible to define the face opposite to the top of the cone.
- a low luminance threshold, of abscissa wb on the axis W makes it possible to define the truncated face situated at the distance d from the vertex of abscissa ws.
- the abscissa wb can coincide with the abscissa ws.
- the cone can rotate by an angle R varying from 0 to ⁇ around the axis W.
- the transition zone 2 is defined by the space between the surface of the opening cone ⁇ and the surface of an opening cone ⁇ 1 greater than ⁇ , with the same axis of symmetry and the same vertex as the cone d opening ⁇ and whose face opposite the top of the cone is in the same plane as the face opposite the top of the opening cone ⁇ .
- the area 3 representing the subject is defined by the space located beyond the opening cone ⁇ 1.
- FIG. 5 represents the sectional view of the volume of the colored background of the invention according to a plane (U 0 , V 0 ) of cross section of the cone.
- This sectional view shows an elliptical section.
- This elliptical section is capable of rotating around the axis W by an angle R as mentioned above.
- the modulation of the parameter k allows the deformation of the ellipse.
- k varies between 1 and 2.
- the value of R can vary from 0 to ⁇ .
- this modulation technique makes it possible to increase the selectivity of the volume defining the colored background.
- the elliptical modulation technique associated with the rotation R allows a clear improvement to reproduce the transparency of the glasses.
- Figure 6 shows the sectional view of the volume of the colored background of the invention along a plane passing through the major axis of the ellipse and the top of the cone.
- CLIP is a parameter whose variation makes it possible to generate the displacement of the ordinate ws from the apex of the cone on the axis W.
- the range of variation of the angle ⁇ is between 0 and 45 °.
- the combined action of the parameters ⁇ and CLIP advantageously allows modulation of the definition of the colored background, and therefore the subject to be treated. For a threshold value ws zero, the entire cut volume goes down to the black plane.
- the variation of the abscissa ws makes it possible to integrate into the volume which defines the colored background points of more or less weak luminance having the tint of the colored background.
- the cone can be truncated by a distance d in the case where wb is different from ws.
- the CLIP parameter is used to calculate the chrominance key KC. Any point in the image whose chrominance distance is less than the CLIP value belongs to the colored background 1 and has a zero chrominance key KC.
- the transition zone 2 is associated with the thresholding of the chrominance distance and makes it possible to effect the gradual transition between the background and the subject.
- the size of the transition zone is adjustable by an adjustment parameter called GAIN.
- GAIN makes it possible to calculate the distance separating the points belonging to the aperture cone ⁇ 1 from those belonging to the aperture cone ⁇ . Any point in the image located in zone 3, beyond the transition zone 2, belongs to the subject and has a chrominance key value KC equal to 1.
- the generation of the key KD for the colored background is carried out thanks to the combination of the chrominance key KC and the luminance key KL.
- FIG. 7 represents the algorithm for calculating the cutting key according to the invention. This algorithm synthesizes the different stages preferably performed by microprocessor and described in FIGS. 2a and 2b in FIG. 6.
- Each pixel of the source video VS comprises three components cbs, crs, ys in the color space referenced by the reference (CB, CR, Y).
- the luminance and chrominance data are generally in 4: 2: 2 format.
- the sampling frequency of the luminance components is 13.5 MHz while that of the components of chrominance is 6.75 MHz. It is then necessary to interpolate the train of chrominance components cbs, crs which is in 2: 2 format into a train of chrominance components cb1, cr1 in 4: 4 format.
- the interpolation operator 10 provides for this.
- the chrominance components of the pixels of the video source VS are interrupted during line deletions so that the interpolated components located at the start and end of the line are not disturbed by the line delete signal. The interpolation is carried out in a manner known per se.
- the information relating to the chrominance components cbs and crs is of integer type.
- the achrome level which corresponds, for example, to level 512 for a video signal coded on 10 bits is converted into arithmetic zero by inversion of the value of the most significant bit.
- the interpolation can be carried out on 55 color difference points so as to obtain very high calculation precision.
- the components cb and cr are coded on a number N of bits greater than the number of bits of the video.
- the dynamics of the samples cb, cr obtained at the output of the interpolator for example, be coded on 16 bits among which are the 10 bits of the video, 4 bits of fractionation intended to define the precision of the video, 1 bit of sign and 1 bit of overflow.
- the chrominance components cb and cr resulting from the interpolation calculation are transformed into chrominance components u and z by horizontal rotation 11 of angle ⁇ such as that described in FIG. 2a.
- the horizontal rotation is carried out in two stages.
- the microprocessor loads the sin ( ⁇ ) and cos ( ⁇ ) information during frame deletion and a multiplier performs the calculation of the products cr x cos ( ⁇ ), cr x sin ( ⁇ ), cb x cos ( ⁇ ) and cb x sin ( ⁇ ), for each point of the image, during the active frame.
- the u and z information travels at a frequency of 13.5 MHz.
- the information cos ( ⁇ ), sin ( ⁇ ) circulates at the frequency of 27 MHz. It follows that at the output of the multiplier the information is multiplexed at the frequency of 27 MHz.
- the information multiplexed at the frequency of 27 MHz is demultiplexed and matrixed to obtain the signals u and z at the frequency of 13.5 MHz.
- the luminance samples ys of the subject video Vs are delayed by the delay 19 in luminance samples y so as to compensate for the delay taken by the chrominance samples cbs and crs during the interpolation 10 and horizontal rotation operations 11.
- the luminance samples are translated from scales so as to match the luminance zero with the arithmetic zero and are coded on a number N of bits identical to that of the chrominance samples.
- the components cb, cr, y of each pixel are then transformed into components (u, v, w) by vertical rotation of angle ⁇ such as that described in FIG. 2b.
- the vertical rotation is carried out according to the same principle as that described for the horizontal rotation.
- the microprocessor loads the sin ( ⁇ ) and cos ( ⁇ ) information during the frame suppression while a multiplier performs the calculation of the products zx cos ( ⁇ ), zx sin ( ⁇ ), yx cos ( ⁇ ) and yx sin ( ⁇ ) during the active frame.
- Information z circulates there at a frequency of 13.5 MHz.
- the information cos ( ⁇ ), sin ( ⁇ ) circulates at the frequency of 27 MHz. It follows that at the output of the multiplier, the information is multiplexed at the frequency of 27 MHz.
- the signal w is delayed so as to compensate for the processing time necessary for the operation 13 for calculating the coordinates r, ⁇ which follows the vertical rotation operation 12.
- the coordinates r and ⁇ are recovered at the output of the operator 13 in order to carry out the elliptical modulation 14.
- the elliptical modulation 14 is preferably carried out by the calculation of a modulating factor A.
- the factor k allows the elliptical deformation of the chrominance distance r and the angle R allows the rotation of the elliptical section of the cone from 0 to ⁇ .
- the calculation of A is carried out, for example, using EPROMs wired for this purpose.
- the dynamics of the multiplication of r by (A) 1/2 takes place on N bits, for example 16 bits, at the sampling frequency of the luminance components, ie 13.5 MHz.
- the elliptical modulation 14 is followed by an operation 15 allowing the opening of the cone and the definition of the cutting volume using the parameters ⁇ , CLIP, GAIN, wb and wh.
- the GAIN parameter is used to define the size of the transition zone between the colored background and the subject as mentioned above.
- the parameters wb and wh respectively low luminance threshold and high luminance threshold, make it possible to delimit the volume of the colored background along the axis W.
- an advantage of the invention is the easily adaptive nature of the volume defining the colored background.
- the definition of the cutting volume allows the generation of the chrominance key KC and the luminance key KL as mentioned above.
- KD MAX [KC, KL].
- KD is between 0 and 1.
- the operation 16 of combining the keys KC and KL is followed by an operation 17, known per se, of masking and filtering the key KD.
- an operation 17, known per se of masking and filtering the key KD.
- the filtering of the cutting key makes it possible to eliminate the color residues from the background of the subject video.
- the subject's final cutting key KDF comes from the masking and filtering operation 17.
- the KDF key is then applied in a known manner to the final mixing operation to generate the image of the subject moving in front of the new background.
- FIG. 8 represents an improvement of the algorithm described in FIG. 7.
- This improvement concerns the generation of DZ zone detection information from an operator 19.
- this improvement allows the detection of the shadow cast by the subject on the colored background.
- the drop shadow is characterized by luminance information lower than the average luminance level of the colored background and of the same shade as that of the colored background.
- the shadow cast can be removed or restored by dimming the luminance of the new reception background.
- the shadow is not part of the colored background. However, it must be distinguished from the subject. To this end, any pixel located around the tint of the colored background, whose luminance value is less than a certain threshold and which belongs to the transition zone 2 situated between the colored background 1 and the subject 3 is considered to be a shadow pixel.
- the orientation and the conical shape of the volume defining the colored background allow the shadow pixels to enter the transition zone 2 separating the subject from the colored background.
- FIG. 8 are shown the interpolation operator 10, the horizontal rotation operator 11, the delay operator 19 and the masking and filtering operator 17, as described in FIG. 7.
- the operators 12, 13, 14, 15 and 16 are grouped in the same block B.
- the operator 19 for detecting areas includes operations allowing the detection of the shadow cast by the subject on the colored background.
- the luminance component y originating from the delay operator 18 is compared with a threshold value of luminance ya and the angular coordinate ⁇ from the operator 13 described in Figure 7 is compared to two values ⁇ min and ⁇ max whose difference ⁇ max - ⁇ min defines the angular opening in which the angle ⁇ must be located so that the hue of the pixel associated with ⁇ is assimilated to the tint of the colored background. Any pixel whose value of ⁇ is between ⁇ min and ⁇ max and whose luminance value y is less than ya is considered as a shadow pixel.
- the shadow pixels are located in the transition zone 2 separating the subject from the colored background.
- the key KD is applied to the operator 19 of zone detection so as to provide the information making it possible to locate the pixels of the transition zone 2.
- the signal DZ coming from the operator 19 of zone detection then makes it possible to give information on the detection of shadow pixels according to the method mentioned above.
- the DZ signal can provide not only information for locating the shadow pixels but also various information making it possible to locate the pixels of the subject video according to their position in the color space.
- FIG. 9 are shown the different stages of the operation 19 of zone detection in the form of a flow diagram in the case where the signal DZ provides all. the information making it possible to locate the pixels of the subject video according to their position in the color space.
- the invention however also relates to the cases where DZ gives all or part of this information.
- the information DZ takes a value x1 reflecting the detection of the subject.
- the information DZ takes a value x2 translating the detection of the background.
Abstract
Description
L'invention concerne un procédé de calcul d'une clé de découpe d'un sujet évoluant devant un fond coloré de façon à pouvoir incruster ce sujet sur un nouveau fond coloré.The invention relates to a method of calculating a key for cutting a subject moving in front of a colored background so as to be able to embed this subject on a new colored background.
L'invention concerne également tout dispositif ou appareil électronique mettant en oeuvre ce procédé tels que, par exemple, les mélangeurs vidéo ou encore les dispositifs autonomes de découpe et d'incrustation d'images vidéo communément appelés en anglais "chroma-keyers". De tels dispositifs ou appareils électroniques sont utilisés, par exemple, dans les matériels de studio de télévision.The invention also relates to any electronic device or apparatus implementing this method such as, for example, video mixers or even autonomous devices for cutting and overlaying video images commonly known in English as "chroma-keyers". Such electronic devices or devices are used, for example, in television studio equipment.
Dans la suite de la description, l'image source constituée du sujet évoluant sur le fond coloré sera appelée vidéo sujet.In the following description, the source image consisting of the subject evolving on the colored background will be called subject video.
La clé de découpe doit permettre de cerner au mieux le sujet à découper. Ainsi est-il souhaitable de vouloir conserver le maximum de détails du sujet, tels que, par exemple pour un personnage, les cheveux isolés, la transparence des verres de lunettes, ou encore la fumée d'une cigarette.The cutting key must make it possible to better identify the subject to be cut. So it is desirable to want to keep as many details of the subject as possible, such as, for example for a character, isolated hair, the transparency of glasses, or even the smoke of a cigarette.
Comme cela est connu de l'homme de l'art, la clé de découpe a pour fonction de permettre la distinction entre le fond coloré de la vidéo sujet et le sujet lui-même. Il est alors nécessaire de définir dans l'espace des couleurs un volume représentant le fond coloré de façon à pouvoir extraire le sujet du fond coloré pour l'incruster devant un nouveau fond.As is known to those skilled in the art, the cutting key has the function of allowing the distinction between the colored background of the subject video and the subject itself. It is then necessary to define in the color space a volume representing the colored background so as to be able to extract the subject from the colored background in order to embed it in front of a new background.
L'invention concerne une nouvelle approche volumique du fond coloré de façon à intégrer au mieux les détails du sujet tels que ceux mentionnés plus haut.The invention relates to a new volume approach to the colored background so as to better integrate the details of the subject such as those mentioned above.
A cette fin, l'invention concerne un procédé de calcul d'une clé KD de découpe d'un sujet évoluant devant un fond coloré, ladite clé permettant de séparer l'espace des couleurs en trois zones, une première zone définissant un volume représentant le fond coloré, une deuxième zone définissant un volume représentant le sujet et une troisième zone définissant une zone de transition entre le fond coloré et le sujet. Ce procédé comprend différentes étapes de calcul permettant de définir le volume représentant le fond coloré sous forme de cône d'angle d'ouverture α dont l'axe de symétrie passe par le point achrome et de luminance nulle de l'espace des couleurs et un point représentant la couleur du fond coloré.To this end, the invention relates to a method of calculating a key KD for cutting a subject moving in front of a colored background, said key making it possible to separate the color space into three zones, a first zone defining a volume representing the colored background, a second zone defining a volume representing the subject and a third zone defining a transition zone between the colored background and the subject. This process includes different calculation steps allowing the volume representing the colored background to be defined in the form of a cone with an opening angle α whose axis of symmetry passes through the achrome point and of zero luminance of the color space and a dot representing the color of the colored background.
De même, l'invention concerne un appareil électronique comprenant des moyens pour calculer une clé de découpe d'un sujet évoluant devant un fond coloré, ladite clé permettant de séparer l'espace des couleurs en trois zones, une première zone définissant un volume représentant le fond coloré, une deuxième zone définissant un volume représentant le sujet et une troisième zone définissant une zone de transition entre le fond coloré et le sujet. Les moyens pour calculer la clé de découpe comprennent des moyens pour calculer les coordonnées de chaque pixel de l'espace des couleurs dans un repère (U, V, W), le repère (U, V, W) étant un trièdre direct dont le centre est le point achrome de luminance nulle et dont l'axe W pointe vers un point de couleur du fond coloré, et des moyens pour définir le volume représentant le fond coloré sous forme de cône d'angle d'ouverture α ayant pour axe de symétrie l'axe W.Likewise, the invention relates to an electronic device comprising means for calculating a key for cutting a subject moving in front of a colored background, said key making it possible to separate the color space into three zones, a first zone defining a volume representing the colored background, a second zone defining a volume representing the subject and a third zone defining a transition zone between the colored background and the subject. The means for calculating the cutting key comprise means for calculating the coordinates of each pixel of the color space in a coordinate system (U, V, W), the coordinate system (U, V, W) being a direct trihedron whose center is the achrome point of zero luminance and whose axis W points to a point of color of the colored background, and means for defining the volume representing the colored background in the form of a cone with an opening angle α having for axis symmetry the W axis
Les différentes caractéristiques et avantages de l'invention apparaîtront à la lecture d'un mode de réalisation préférentiel fait avec référence aux figures ci-annexées parmi lesquelles :
- La figure 1 représente un exemple de volume de fond coloré selon l'art antérieur ;
- Les figures 2a et 2b représentent les transformations géométriques du référentiel (CB, CR, Y) permettant de définir le nouveau référentiel (U, V, W) de l'espace des couleurs permettant l'approche volumique du fond coloré selon l'invention ;
- La figure 3 représente un pixel de l'espace des couleurs dans le nouveau référentiel mentionné ci-dessus ;
- La figure 4 représente le volume du fond coloré selon l'invention ;
- La figure 5 représente la vue en coupe du volume du fond coloré de l'invention selon un plan perpendiculaire à un premier axe du nouveau référentiel ;
- La figure 6 représente la vue en coupe du volume du fond coloré de l'invention selon un plan perpendiculaire à un deuxième axe du nouveau référentiel ;
- La figure 7 représente l'algorithme de calcul de la clé de découpe selon l'invention ;
- La figure 8 représente un perfectionnement de l'algorithme décrit en figure 7 ;
- La figure 9 représente une description du perfectionnement décrit en figure 8.
- FIG. 1 represents an example of colored background volume according to the prior art;
- FIGS. 2a and 2b represent the geometric transformations of the frame of reference (CB, CR, Y) making it possible to define the new frame of reference (U, V, W) of the color space allowing the volume approach to the colored background according to the invention;
- Figure 3 shows a pixel of the color space in the new repository mentioned above;
- FIG. 4 represents the volume of the colored background according to the invention;
- FIG. 5 represents the sectional view of the volume of the colored background of the invention along a plane perpendicular to a first axis of the new reference system;
- FIG. 6 represents the cross-sectional view of the volume of the colored background of the invention along a plane perpendicular to a second axis of the new frame of reference;
- FIG. 7 represents the algorithm for calculating the cutting key according to the invention;
- FIG. 8 represents an improvement of the algorithm described in FIG. 7;
- FIG. 9 represents a description of the improvement described in FIG. 8.
La figure 1 représente un exemple de volume de fond coloré selon l'art antérieur.FIG. 1 represents an example of colored background volume according to the prior art.
Chaque pixel M(n) d'indice n du fond coloré est représenté par ses trois coordonnées yn, cbn, crn où yn, cbn et crn sont respectivement la composante luminance, la composante chrominance de différence de couleur rouge et la composante chrominance de différence de couleur bleue du pixel M(n). Pour des raisons de commodité, par la suite, les composantes chrominance de différence de couleur seront appelées composantes chrominance. La valeur moyenne y0, cb0, cr0 de chaque composante du fond coloré s'écrit alors :
Dans le plan (CB, CR), le calcul de la distance euclidienne ρn d'un pixel d'indice n par rapport au point cb0, cr0 est donné par la relation :
Deux opérations de seuillage, l'une dans le plan (CB, CR) et l'autre selon l'axe Y permettent alors de définir la zone de discrimination entre fond et sujet. Ainsi, tout point dont la valeur de luminance est comprise entre les valeurs extrêmes ymin et ymax et dont la distance euclidienne est inférieure à une valeur ρ1 appartient au fond coloré 1.Two thresholding operations, one in the plane (CB, CR) and the other along the Y axis then make it possible to define the zone of discrimination between background and subject. Thus, any point whose luminance value is between the extreme values y min and y max and whose Euclidean distance is less than a value ρ 1 belongs to the
De même, tout point dont la valeur de luminance est comprise entre les valeurs ymin et ymax et dont la distance euclidienne ρn est supérieure à une valeur ρ2, elle-même supérieure à ρ1, appartient au sujet 3. Enfin, tout point dont la valeur de luminance est comprise entre les valeurs ymin et ymax et dont la distance euclidienne ρn est comprise entre ρ1 et ρ2 appartient à une zone intermédiaire de transition 2.Similarly, any point whose luminance value is between the values y min and y max and whose Euclidean distance ρ n is greater than a value ρ 2 , itself greater than ρ 1 , belongs to
Le réglage du contenu de l'image s'avère difficile avec une telle approche volumique. La forme cylindrique du volume décrit en figure 1 présente de nombreux inconvénients. Par exemple, il est difficile de traiter de trop fortes variations de luminance du fond coloré sans affecter la luminance du sujet. De même, les pixels représentant l'ombre portée ne peuvent pas être intégrés au volume du fond coloré. Il s'ensuit que tout traitement de l'ombre s'avère impossible.Adjusting the content of the image proves difficult with such a volume approach. The cylindrical shape of the volume described in Figure 1 has many drawbacks. For example, it is difficult to deal with too large variations in luminance of the colored background without affecting the luminance of the subject. Similarly, the pixels representing the drop shadow cannot be integrated into the volume of the colored background. It follows that any treatment of the shade proves to be impossible.
L'invention ne présente pas ces inconvénients.The invention does not have these drawbacks.
Les figures 2a et 2b représentent les différentes transformations permettant de construire le volume définissant le fond coloré selon l'invention.Figures 2a and 2b show the different transformations used to build the volume defining the colored background according to the invention.
La figure 2a représente une rotation du plan (CB, CR) à luminance nulle (Y = 0) autour de l'axe Y. L'angle de rotation β est tel que l'axe CR devient l'axe Z qui pointe dans la direction D vers la teinte de la couleur du fond coloré. A l'aide de cette même rotation, l'axe CB devient l'axe U perpendiculaire à l'axe Z de façon que le trièdre (U, Z, Y) soit un trièdre direct. Ce changement de repère peut s'exprimer sous forme matricielle par la relation :
La figure 2b représente une rotation du plan (Z, Y) autour de l'axe U. L'angle de rotation γ est tel que l'axe Y devient l'axe W qui pointe dans la direction C vers la couleur du fond coloré. A l'aide de cette même rotation, l'axe Z devient l'axe V perpendiculaire à l'axe W de façon que le trièdre (U, V, W) soit un trièdre direct.Figure 2b represents a rotation of the plane (Z, Y) around the axis U. The angle of rotation γ is such that the axis Y becomes the axis W which points in the direction C towards the color of the colored background . Using this same rotation, the Z axis becomes the V axis perpendicular to the W axis so that the trihedron (U, V, W) is a direct trihedron.
Ce changement de repère peut s'exprimer sous forme matricielle par la relation :
La figure 3 représente un pixel de l'espace des couleurs dans le nouveau référentiel construit aux figures 2a et 2b.FIG. 3 represents a pixel of the color space in the new reference frame constructed in FIGS. 2a and 2b.
Le pixel M(i) a une composante suivant chacun des trois axes U, V, W, soit, respectivement, les composantes u(i), v(i) et w(i).The pixel M (i) has a component along each of the three axes U, V, W, that is, respectively, the components u (i) , v (i) and w (i) .
Les coordonnées cylindriques du point M(i) dans le repère (U, V, W) sont : r(i), θ(i) et w(i). Comme cela est connu, il vient :
Dans la suite de la description, la distance r(i) sera appelée distance chrominance du point M(i) par rapport à l'axe W.In the following description, the distance r (i) will be called the chrominance distance of the point M (i) relative to the axis W.
La figure 4 représente l'approche volumique du fond coloré selon l'invention.FIG. 4 represents the volume approach of the colored background according to the invention.
Le volume qui représente le fond coloré a la forme d'un cône entier (volume V1) ou tronqué (volume V2) dans l'espace des couleurs référencé par rapport au nouveau repère (U, V, W) déduit du repère (CB, CR, Y) par les transformations géométriques décrites aux figures 2a et 2b. L'espace des couleurs est divisé en trois zones, comme précédemment : la zone 1 qui représente le fond coloré, la zone 3 qui représente le sujet et la zone 2 qui représente la transition entre le sujet et le fond coloré.The volume which represents the colored background has the shape of a whole cone (volume V1) or truncated (volume V2) in the color space referenced with respect to the new frame (U, V, W) deduced from the frame (CB, CR, Y) by the geometric transformations described in Figures 2a and 2b. The color space is divided into three zones, as before:
Le cône représentant le fond coloré est défini par une ouverture angulaire α, un sommet situé à l'abscisse ws sur l'axe W, une section elliptique ou circulaire. Un seuil de luminance haut, d'abscisse wh sur l'axe W, permet de définir la face opposée au sommet du cône. Un seuil de luminance bas, d'abscisse wb sur l'axe W, permet de définir la face tronquée située à la distance d du sommet d'abscisse ws. L'abscisse wb peut coïncider avec l'abscisse ws. Selon l'invention, le cône peut tourner d'un angle R variant de 0 à π autour de l'axe W.The cone representing the colored background is defined by an angular opening α, a vertex located at the abscissa ws on the axis W, an elliptical or circular section. A high luminance threshold, of abscissa wh on the W axis, makes it possible to define the face opposite to the top of the cone. A low luminance threshold, of abscissa wb on the axis W, makes it possible to define the truncated face situated at the distance d from the vertex of abscissa ws. The abscissa wb can coincide with the abscissa ws. According to the invention, the cone can rotate by an angle R varying from 0 to π around the axis W.
La zone de transition 2 est définie par l'espace compris entre la surface du cône d'ouverture α et la surface d'un cône d'ouverture α1 supérieure à α, de même axe de symétrie et de même sommet que le cône d'ouverture α et dont la face opposée au sommet du cône est dans le même plan que la face opposée au sommet du cône d'ouverture α. The
La zone 3 représentant le sujet est définie par l'espace situé au-delà du cône d'ouverture α1.The
La figure 5 représente la vue en coupe du volume du fond coloré de l'invention selon un plan (U0, V0) de section droite du cône.FIG. 5 represents the sectional view of the volume of the colored background of the invention according to a plane (U 0 , V 0 ) of cross section of the cone.
Cette vue en coupe présente une section elliptique. Cette section elliptique est susceptible de tourner autour de l'axe W d'un angle R comme cela a été mentionné ci-dessus. Les coordonnées r(i) et θ(i) de chaque pixel M(i) délimitant le fond coloré sont alors reliées par l'équation :
La modulation du paramètre k permet la déformation de l'ellipse. Selon l'invention, la modulation elliptique de la distance chrominance laisse la possibilité de réaliser un cercle dans le cas où k = 1. De façon préférentielle k varie entre 1 et 2. La valeur de R peut varier de 0 à π. Avantageusement, cette technique de modulation permet d'accroître la sélectivité du volume définissant le fond coloré. A titre d'exemple, la technique de modulation elliptique associée à la rotation R permet une nette amélioration pour reproduire la transparence des verres.The modulation of the parameter k allows the deformation of the ellipse. According to the invention, the elliptical modulation of the distance chrominance leaves the possibility of making a circle in the case where k = 1. Preferably k varies between 1 and 2. The value of R can vary from 0 to π. Advantageously, this modulation technique makes it possible to increase the selectivity of the volume defining the colored background. For example, the elliptical modulation technique associated with the rotation R allows a clear improvement to reproduce the transparency of the glasses.
La figure 6 représente la vue en coupe du volume du fond coloré de l'invention selon un plan passant par le grand axe de l'ellipse et le sommet du cône.Figure 6 shows the sectional view of the volume of the colored background of the invention along a plane passing through the major axis of the ellipse and the top of the cone.
Selon l'invention, le volume conique est défini de façon que la distance chrominance modulée elliptiquement, notée re(i), l'angle d'ouverture α du cône et la coordonnée w(i) du point dont la distance chrominance est re(i) soient reliés par l'équation :
La variation de l'abscisse ws permet d'intégrer dans le volume qui définit le fond coloré des points de luminance plus ou moins faible ayant la teinte du fond coloré. Avantageusement, il est alors possible de prendre en compte des fonds colorés non uniformes et dont la luminance varie à l'oeil de façon non négligeable. Comme cela a été mentionné précédemment (cf. figure 4), le cône peut être tronqué d'une distance d dans le cas où wb est différent de ws.The variation of the abscissa ws makes it possible to integrate into the volume which defines the colored background points of more or less weak luminance having the tint of the colored background. Advantageously, it is then possible to take into account non-uniform colored backgrounds, the luminance of which varies considerably to the eye. As mentioned previously (see Figure 4), the cone can be truncated by a distance d in the case where wb is different from ws.
Le paramètre CLIP permet de calculer la clé de chrominance KC. Tout point de l'image dont la distance chrominance est inférieure à la valeur CLIP appartient au fond coloré 1 et possède une clé de chrominance KC nulle.The CLIP parameter is used to calculate the chrominance key KC. Any point in the image whose chrominance distance is less than the CLIP value belongs to the
La zone de transition 2 est associée au seuillage de la distance chrominance et permet d'effectuer le passage progressif entre le fond et le sujet. La taille de la zone de transition est ajustable par un paramètre de réglage appelé GAIN. A cette fin, le paramètre GAIN permet de calculer la distance séparant les points appartenant au cône d'ouverture α1 de ceux appartenant au cône d'ouverture α. Tout point de l'image situé en zone 3, au-delà de la zone de transition 2, appartient au sujet et a une valeur de clé de chrominance KC égale à 1.The
Tous les points d'abscisse w(i) inférieure à wb ont une clé de luminance KL égale à 1. Tous les points d'abscisse w(i) supérieure à wh ont une clé de luminance KL égale à 0. Tous les points d'abscisse w(i) situés entre wb et wh sont dans la zone de transition en luminance.All the abscissa points w (i) lower than wb have a luminance key KL equal to 1. All the abscissa points w (i) greater than wh have a luminance key KL equal to 0. All the points d 'abscissa w (i) located between wb and wh are in the luminance transition zone.
La génération de la clé de découpe KD du fond coloré est réalisée grâce à la combinaison de la clé de chrominance KC et de la clé de luminance KL. Ainsi, pour chacun des points de l'image, le calcul du maximum des deux clés permet-il la construction du volume définissant le fond coloré ; il vient :
La figure 7 représente l'algorithme de calcul de la clé de découpe selon l'invention. Cet algorithme synthétise les différentes étapes réalisées préférentiellement par microprocesseur et décrites des figures 2a et 2b à la figure 6.FIG. 7 represents the algorithm for calculating the cutting key according to the invention. This algorithm synthesizes the different stages preferably performed by microprocessor and described in FIGS. 2a and 2b in FIG. 6.
Chaque pixel de la vidéo source VS comprend trois composantes cbs, crs, ys dans l'espace des couleurs référencé par le repère (CB, CR, Y).Each pixel of the source video VS comprises three components cbs, crs, ys in the color space referenced by the reference (CB, CR, Y).
Comme cela est connu de l'homme de l'art, les données de luminance et de chrominance sont généralement au format 4 : 2 : 2. La fréquence d'échantillonnage des composantes de luminance est de 13,5 MHz alors que celle des composantes de chrominance est de 6,75 MHz. Il est alors nécessaire d'interpoler le train de composantes chrominance cbs, crs qui est au format 2 : 2 en un train de composantes chrominance cb1, cr1 au format 4 : 4. L'opérateur 10 d'interpolation y pourvoit. De façon préférentielle, les composantes chrominance des pixels de la vidéo source VS sont interrompues pendant les suppressions de ligne afin que les composantes interpolées situées en début et en fin de ligne ne soient pas perturbées par le signal de suppression de ligne. L'interpolation s'effectue de façon connue en soi. Les informations relatives aux composantes chrominance cbs et crs sont de type entier. Afin de simplifier le calcul d'interpolation, le niveau achrome qui correspond, par exemple, au niveau 512 pour un signal vidéo codé sur 10 bits est converti en zéro arithmétique par inversion de la valeur du bit de poids fort. A titre d'exemple, l'interpolation peut être réalisée sur 55 points de différence de couleur de façon à obtenir une très grande précision de calculs. En sortie de l'interpolateur 10, les composantes cb et cr sont codées sur un nombre N de bits supérieur au nombre de bits de la vidéo. Ainsi, pour un signal vidéo codé sur 10 bits en entrée de l'interpolateur, la dynamique des échantillons cb, cr obtenus en sortie de l'interpolateur peut-elle, par exemple, être codée sur 16 bits parmi lesquels se trouvent les 10 bits de la vidéo, 4 bits de fractionnement destinés à définir la précision de la vidéo, 1 bit de signe et 1 bit de débordement.As is known to those skilled in the art, the luminance and chrominance data are generally in 4: 2: 2 format. The sampling frequency of the luminance components is 13.5 MHz while that of the components of chrominance is 6.75 MHz. It is then necessary to interpolate the train of chrominance components cbs, crs which is in 2: 2 format into a train of chrominance components cb1, cr1 in 4: 4 format. The
Les composantes chrominance cb et cr issues du calcul d'interpolation sont transformées en composantes chrominance u et z par rotation horizontale 11 d'angle β telle que celle décrite en figure 2a.The chrominance components cb and cr resulting from the interpolation calculation are transformed into chrominance components u and z by
La rotation horizontale est réalisée en deux temps. Dans un premier temps, le microprocesseur charge les informations sin(β) et cos(β) pendant la suppression de trame et un multiplicateur effectue le calcul des produits cr x cos(β), cr x sin(β), cb x cos(β) et cb x sin(β), pour chaque point de l'image, pendant la trame active. Les informations u et z circulent à la fréquence de 13,5 MHz. Les informations cos(β), sin(β) circulent à la fréquence de 27 MHz. Il s'ensuit qu'en sortie du multiplicateur les informations sont multiplexées à la fréquence de 27 MHz.The horizontal rotation is carried out in two stages. First, the microprocessor loads the sin (β) and cos (β) information during frame deletion and a multiplier performs the calculation of the products cr x cos (β), cr x sin (β), cb x cos ( β) and cb x sin (β), for each point of the image, during the active frame. The u and z information travels at a frequency of 13.5 MHz. The information cos (β), sin (β) circulates at the frequency of 27 MHz. It follows that at the output of the multiplier the information is multiplexed at the frequency of 27 MHz.
Dans un deuxième temps, les informations multiplexées à la fréquence de 27 MHz sont démultiplexées et matricées pour obtenir les signaux u et z à la fréquence de 13,5 MHz.Secondly, the information multiplexed at the frequency of 27 MHz is demultiplexed and matrixed to obtain the signals u and z at the frequency of 13.5 MHz.
La relation matricielle, déjà mentionnée lors de la description de la figure 2a, s'écrit :
Les échantillons de luminance ys de la vidéo sujet Vs sont retardés par le retard 19 en échantillons de luminance y de façon à compenser le retard pris par les échantillons de chrominance cbs et crs au cours des opérations d'interpolation 10 et de rotation horizontale 11. Afin que l'information de luminance y ait un format identique à l'information de chrominance cb, cr, les échantillons de luminance sont translatés d'échelles de façon à faire correspondre le zéro de luminance avec le zéro arithmétique et sont codés sur un nombre N de bits identique à celui des échantillons de chrominance. Les composantes cb, cr, y de chaque pixel sont alors transformées en composantes (u, v, w) par rotation verticale d'angle γ telle que celle décrite en figure 2b.The luminance samples ys of the subject video Vs are delayed by the
La rotation verticale s'effectue selon le même principe que celui décrit pour la rotation horizontale.The vertical rotation is carried out according to the same principle as that described for the horizontal rotation.
Dans un premier temps, le microprocesseur charge les informations sin(γ) et cos(γ) pendant la suppression de trame alors qu'un multiplicateur effectue le calcul des produits z x cos(γ), z x sin(γ), y x cos(γ) et y x sin(γ) pendant la trame active. Les informations z, y circulent à la fréquence de 13,5 MHz. Les informations cos(γ), sin(γ) circulent à la fréquence de 27 MHz. Il s'ensuit qu'en sortie du multiplicateur, les informations sont multiplexées à la fréquence de 27 MHz.First, the microprocessor loads the sin (γ) and cos (γ) information during the frame suppression while a multiplier performs the calculation of the products zx cos (γ), zx sin (γ), yx cos (γ ) and yx sin (γ) during the active frame. Information z, circulates there at a frequency of 13.5 MHz. The information cos (γ), sin (γ) circulates at the frequency of 27 MHz. It follows that at the output of the multiplier, the information is multiplexed at the frequency of 27 MHz.
Dans un deuxième temps, les informations multiplexées à la fréquence de 27 MHz sont démultiplexées et matricées pour obtenir les signaux w et v à la fréquence de 13,5 MHz. La relation matricielle, déjà mentionnée lors de la description de la figure 2b, s'écrit :
Durant l'opération de rotation verticale 12, le signal w est retardé de façon à compenser le temps de traitement nécessaire à l'opération 13 de calcul des coordonnées r, θ qui suit l'opération 12 de rotation verticale.During the
Les coordonnées r et θ associées à chaque pixel sont données par les formules :
comme cela a été mentionné précédemment.The coordinates r and θ associated with each pixel are given by the formulas:
as previously mentioned.
Les coordonnées r et θ sont récupérées en sortie de l'opérateur 13 afin de réaliser la modulation elliptique 14.The coordinates r and θ are recovered at the output of the
La modulation elliptique 14 est préférentiellement réalisée par le calcul d'un facteur modulant A. Le facteur A est calculé pour chaque pixel, pendant la durée de suppression de trame, à l'aide de deux paramètres de réglage k et R tels que ceux mentionnés lors de la description de la figure 5 ; il vient :
Le facteur k permet la déformation elliptique de la distance de chrominance r et l'angle R permet la rotation de la section elliptique du cône de 0 à π.The factor k allows the elliptical deformation of the chrominance distance r and the angle R allows the rotation of the elliptical section of the cone from 0 to π.
La distance de chrominance modulée elliptiquement s'écrit alors
Le calcul de A s'effectue, par exemple, à l'aide de mémoires EPROMs câblées à cette fin. La dynamique de la multiplication de r par (A)1/2 s'effectue sur N bits, par exemple 16 bits, à la fréquence d'échantillonnage des composantes de luminance, soit 13,5 MHz.The calculation of A is carried out, for example, using EPROMs wired for this purpose. The dynamics of the multiplication of r by (A) 1/2 takes place on N bits, for example 16 bits, at the sampling frequency of the luminance components, ie 13.5 MHz.
La modulation elliptique 14 est suivie d'une opération 15 permettant l'ouverture du cône et la définition du volume de découpe à l'aide des paramètres α, CLIP, GAIN, wb et wh.The elliptical modulation 14 is followed by an
L'angle d'ouverture conique α ainsi que la valeur CLIP de seuil de distance chrominance sont appliqués aux valeurs re et w de chaque pixel selon la loi énoncée précédemment en figure 6, soit :
Le paramètre GAIN permet de définir la taille de la zone de transition entre le fond coloré et le sujet comme cela a été mentionné auparavant.The GAIN parameter is used to define the size of the transition zone between the colored background and the subject as mentioned above.
De même, les paramètres wb et wh, respectivement seuil de luminance bas et seuil de luminance haut, permettent une délimitation du volume du fond coloré selon l'axe W.Likewise, the parameters wb and wh, respectively low luminance threshold and high luminance threshold, make it possible to delimit the volume of the colored background along the axis W.
Ainsi, un avantage de l'invention est-il le caractère facilement adaptatif du volume définissant le fond coloré.Thus, an advantage of the invention is the easily adaptive nature of the volume defining the colored background.
La définition du volume de découpe permet la génération de la clé de chrominance KC et de la clé de luminance KL telles que mentionnées ci-dessus.The definition of the cutting volume allows the generation of the chrominance key KC and the luminance key KL as mentioned above.
Les clés KC et KL issues de l'opération 15 de définition du volume de découpe sont alors combinées par une opération 16 de combinaison de façon à obtenir la clé KD permettant la découpe du volume définissant le fond coloré. Comme cela a été mentionné précédemment, il vient :
Les pixels pour lesquels KD = 1 appartiennent au sujet et ceux pour lesquels KD = 0 appartiennent au fond coloré. Pour les pixels de la zone de transition, KD est compris entre 0 et 1.The pixels for which KD = 1 belong to the subject and those for which KD = 0 belong to the colored background. For the pixels of the transition zone, KD is between 0 and 1.
Selon le mode de réalisation préférentiel de l'invention, l'opération 16 de combinaison des clés KC et KL est suivi d'une opération 17, connue en soi, de masquage et de filtrage de la clé KD. En effet, lors de l'extraction du sujet, il arrive qu'une partie des détails qui appartiennent au sujet soit assimilée au fond coloré. L'exemple le plus souvent rencontré est la perte de colorimétrie des yeux d'un personnage. L'introduction de l'opération de masquage et de filtrage permet alors d'invalider localement le niveau de la découpe. A titre d'exemple, le masque peut être de forme rectangulaire et de taille réglable. Il est cependant possible d'utiliser des formes de masque différentes issues de générateurs de formes.According to the preferred embodiment of the invention, the
Comme cela est connu de l'homme de l'art, le filtrage de la clé de découpe permet d'éliminer les résidus de couleur du fond de la vidéo sujet.As is known to those skilled in the art, the filtering of the cutting key makes it possible to eliminate the color residues from the background of the subject video.
La clé de découpe finale KDF du sujet est issue de l'opération de masquage et de filtrage 17. La clé KDF est alors appliquée de façon connue à l'opération de mélange final pour générer l'image du sujet évoluant devant le nouveau fond.The subject's final cutting key KDF comes from the masking and
La figure 8 représente un perfectionnement de l'algorithme décrit en figure 7.FIG. 8 represents an improvement of the algorithm described in FIG. 7.
Ce perfectionnement concerne la génération d'une information de détection de zones DZ issu d'un opérateur 19.This improvement concerns the generation of DZ zone detection information from an
Avantageusement, ce perfectionnement permet la détection de l'ombre portée par le sujet sur le fond coloré. L'ombre portée se caractérise par une information de luminance inférieure au niveau moyen de luminance du fond coloré et de même teinte que celle du fond coloré.Advantageously, this improvement allows the detection of the shadow cast by the subject on the colored background. The drop shadow is characterized by luminance information lower than the average luminance level of the colored background and of the same shade as that of the colored background.
Selon l'invention, l'ombre portée peut être supprimée ou restituée par atténuation de luminance du nouveau fond d'accueil. Pour l'information qui permet la découpe, l'ombre ne fait pas partie du fond coloré. Il faut cependant la distinguer du sujet. A cette fin, tout pixel situé autour de la teinte du fond- coloré, dont la valeur de luminance est inférieure à un certain seuil et qui appartient à la zone de transition 2 située entre le fond coloré 1 et le sujet 3 est considéré comme un pixel d'ombre.According to the invention, the shadow cast can be removed or restored by dimming the luminance of the new reception background. For the information that allows cutting, the shadow is not part of the colored background. However, it must be distinguished from the subject. To this end, any pixel located around the tint of the colored background, whose luminance value is less than a certain threshold and which belongs to the
Avantageusement, l'orientation et la forme conique du volume définissant le fond coloré permettent de faire entrer les pixels d'ombre dans la zone de transition 2 séparant le sujet du fond coloré.Advantageously, the orientation and the conical shape of the volume defining the colored background allow the shadow pixels to enter the
Sur la figure 8 sont représentés l'opérateur d'interpolation 10, l'opérateur de rotation horizontale 11, l'opérateur de retard 19 et l'opérateur de masquage et de filtrage 17, tels que décrits en figure 7. Pour des raisons de simplification, les opérateurs 12, 13, 14, 15 et 16 sont regroupés dans le même bloc B.In FIG. 8 are shown the
Selon le perfectionnement de l'invention, l'opérateur 19 de détection de zones comprend des opérations permettant la détection de l'ombre portée par le sujet sur le fond coloré. La composante luminance y issue de l'opérateur de retard 18 est comparée à une valeur de seuil de luminance ya et la coordonnée angulaire θ issue de l'opérateur 13 décrit à la figure 7 est comparée à deux valeurs θmin et θmax dont la différence θmax - θmin définit l'ouverture angulaire dans laquelle doit se situer l'angle θ pour que la teinte du pixel associé à θ soit assimilée à la teinte du fond coloré. Tout pixel dont la valeur de θ est comprise entre θ min et θmax et dont la valeur de luminance y est inférieure à ya est considéré comme un pixel d'ombre.According to the refinement of the invention, the
Comme cela a été mentionné précédemment, les pixels d'ombre sont situés dans la zone de transition 2 séparant le sujet du fond coloré. Ainsi, la clé KD est-elle appliquée à l'opérateur 19 de détection de zones de façon à apporter l'information permettant de localiser les pixels de la zone de transition 2. Le signal DZ issu de l'opérateur 19 de détection de zones permet alors de donner une information de détection des pixels d'ombre selon la méthode mentionnée ci-dessus.As mentioned previously, the shadow pixels are located in the
Avantageusement, comme cela apparaît en figure 9, le signal DZ peut fournir non seulement une information pour localiser les pixels d'ombre mais aussi différentes informations permettant de localiser les pixels de la vidéo sujet selon leur position dans l'espace des couleurs.Advantageously, as it appears in FIG. 9, the DZ signal can provide not only information for locating the shadow pixels but also various information making it possible to locate the pixels of the subject video according to their position in the color space.
Sur la figure 9 sont représentées les différentes étapes de l'opération 19 de détection de zones sous forme d'organigramme dans le cas où le signal DZ fournit toutes. les informations permettant de localiser les pixels de la vidéo sujet selon leur position dans l'espace des couleurs. L'invention concerne cependant aussi les cas où DZ donne tout ou partie de ces informations.In FIG. 9 are shown the different stages of the
Si la clé KD a pour valeur 1, l'information DZ prend une valeur x1 traduisant la détection du sujet.If the key KD has the
Si la clé KD a pour valeur 0, l'information DZ prend une valeur x2 traduisant la détection du fond.If the key KD has the
Si la clé KD a une valeur comprise entre 0 et 1, la valeur de luminance y est comparée à la valeur de seuil ya et :
- Si y n'est pas inférieur à ya, l'information DZ prend une valeur x3 traduisant la détection de la zone de transition entre fond et sujet.
- Si y est inférieur à ya et si θ est compris entre θmin et θmax, l'information DZ prend une valeur traduisant la détection de l'ombre. Préférentiellement, cette valeur est égale à x2 de façon que les pixels d'ombre soient traités comme les pixels du fond.
- Si y est inférieur à ya et si θ n'est pas compris dans l'intervalle θmin, θmax, l'information DZ prend une valeur traduisant la détection de la zone de transition entre fond et sujet.
- If y is not less than ya, the DZ information takes a value x3 reflecting the detection of the transition zone between background and subject.
- If y is less than ya and if θ is between θmin and θmax, the DZ information takes a value reflecting the detection of the shadow. Preferably, this value is equal to x2 so that the shadow pixels are treated like the background pixels.
- If y is less than ya and if θ is not included in the interval θmin, θmax, the information DZ takes a value translating the detection of the transition zone between background and subject.
Claims (25)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
FR9513953 | 1995-11-23 | ||
FR9513953A FR2741770B1 (en) | 1995-11-23 | 1995-11-23 | METHOD FOR CALCULATING A CUTTING KEY OF A SUBJECT EVOLVING IN FRONT OF A COLORED BACKGROUND AND DEVICE IMPLEMENTING THIS METHOD |
Publications (2)
Publication Number | Publication Date |
---|---|
EP0776136A1 true EP0776136A1 (en) | 1997-05-28 |
EP0776136B1 EP0776136B1 (en) | 2000-06-07 |
Family
ID=9484867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP96402511A Expired - Lifetime EP0776136B1 (en) | 1995-11-23 | 1996-11-22 | Method and apparatus for calculating a chroma key of an object evolving on a coloured background |
Country Status (7)
Country | Link |
---|---|
US (1) | US5903318A (en) |
EP (1) | EP0776136B1 (en) |
JP (1) | JP3741803B2 (en) |
DE (1) | DE69608769T2 (en) |
ES (1) | ES2148704T3 (en) |
FR (1) | FR2741770B1 (en) |
IL (1) | IL119670A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2336055A (en) * | 1998-04-01 | 1999-10-06 | Discreet Logic Inc | Chroma-keying system including modified matte softness region |
GB2336056A (en) * | 1998-04-01 | 1999-10-06 | Discreet Logic Inc | Chroma-keying system including modified matte control data for softness region |
US6456300B1 (en) | 1999-03-31 | 2002-09-24 | Autodesk Canada Inc. | Method and apparatus for processing image data to produce control data |
US6496599B1 (en) | 1998-04-01 | 2002-12-17 | Autodesk Canada Inc. | Facilitating the compositing of video images |
US6924821B2 (en) | 2000-04-01 | 2005-08-02 | Autodesk Canada Inc. | Processing pipeline responsive to input and output frame rates |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6226048B1 (en) * | 1996-09-12 | 2001-05-01 | Sony Corporation | Image signal processing apparatus having a signal level corrector circuit |
KR20000064957A (en) * | 1997-02-20 | 2000-11-06 | 이데이 노부유끼 | Image signal processing apparatus and method, image synthesizing apparatus and editing apparatus |
JP3642258B2 (en) * | 2000-05-08 | 2005-04-27 | 松下電器産業株式会社 | Video composition device |
US6795068B1 (en) * | 2000-07-21 | 2004-09-21 | Sony Computer Entertainment Inc. | Prop input device and method for mapping an object from a two-dimensional camera image to a three-dimensional space for controlling action in a game program |
JP3581835B2 (en) | 2001-03-14 | 2004-10-27 | 株式会社イマジカ | Color conversion method and apparatus in chroma key processing |
US8133115B2 (en) * | 2003-10-22 | 2012-03-13 | Sony Computer Entertainment America Llc | System and method for recording and displaying a graphical path in a video game |
US7508455B2 (en) * | 2004-03-26 | 2009-03-24 | Ross Video/Live Production Technology | Method, system, and device for automatic determination of nominal backing color and a range thereof |
US7119838B2 (en) * | 2004-08-19 | 2006-10-10 | Blue Marlin Llc | Method and imager for detecting the location of objects |
US20060071933A1 (en) | 2004-10-06 | 2006-04-06 | Sony Computer Entertainment Inc. | Application binary interface for multi-pass shaders |
US7636126B2 (en) | 2005-06-22 | 2009-12-22 | Sony Computer Entertainment Inc. | Delay matching in audio/video systems |
US7880746B2 (en) | 2006-05-04 | 2011-02-01 | Sony Computer Entertainment Inc. | Bandwidth management through lighting control of a user environment via a display device |
US7965859B2 (en) | 2006-05-04 | 2011-06-21 | Sony Computer Entertainment Inc. | Lighting control of a user environment via a display device |
US10786736B2 (en) | 2010-05-11 | 2020-09-29 | Sony Interactive Entertainment LLC | Placement of user information in a game space |
US9342817B2 (en) | 2011-07-07 | 2016-05-17 | Sony Interactive Entertainment LLC | Auto-creating groups for sharing photos |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0014665A1 (en) * | 1979-02-12 | 1980-08-20 | Etablissement Public Télédiffusion de France | Method and system for picture overlay in colour television |
EP0024973A1 (en) * | 1979-08-17 | 1981-03-11 | Thomson-Csf | Keying signal generator for television inlay effect and special effects control device comprising such a generator |
EP0074824A2 (en) * | 1981-09-12 | 1983-03-23 | Sony Corporation | Chromakey apparatus |
WO1991005443A1 (en) * | 1989-10-06 | 1991-04-18 | Thomson Video Equipement | Self-adapted colour video image incrustation device and method |
DE4017878A1 (en) * | 1990-06-02 | 1991-12-05 | Broadcast Television Syst | Deriving key signal from foreground of video signal - using three=dimensional zone enclosed on all sides for increased colour possibilities |
DE4217686A1 (en) * | 1991-05-31 | 1993-01-14 | Matsushita Electric Works Ltd | METHOD FOR PULLING OUT A SPECIFIC COLOR IMAGE |
US5355174A (en) * | 1993-01-22 | 1994-10-11 | Imagica Corp. | Soft edge chroma-key generation based upon hexoctahedral color space |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62125339A (en) * | 1985-11-27 | 1987-06-06 | Suraidetsukusu Kk | Holding sheet for information recording carrier |
US5003491A (en) * | 1988-03-10 | 1991-03-26 | The Boeing Company | Multiplying video mixer system |
US5657395A (en) * | 1989-03-02 | 1997-08-12 | Minolta Camera Kabushiki Kaisha | Image processing device providing improved image data processing by converting original image into a plurality of pixels and analyzing density data of each pixel |
US5051828A (en) * | 1990-04-27 | 1991-09-24 | The Grass Valley Group, Inc. | Keyer with variable shaping |
US5117283A (en) * | 1990-06-25 | 1992-05-26 | Eastman Kodak Company | Photobooth compositing apparatus |
US5202762A (en) * | 1991-09-10 | 1993-04-13 | Ultimatte Corporation | Method and apparatus for applying correction to a signal used to modulate a background video signal to be combined with a foreground video signal |
US5574511A (en) * | 1995-10-18 | 1996-11-12 | Polaroid Corporation | Background replacement for an image |
-
1995
- 1995-11-23 FR FR9513953A patent/FR2741770B1/en not_active Expired - Fee Related
-
1996
- 1996-11-21 IL IL11967096A patent/IL119670A/en not_active IP Right Cessation
- 1996-11-22 EP EP96402511A patent/EP0776136B1/en not_active Expired - Lifetime
- 1996-11-22 ES ES96402511T patent/ES2148704T3/en not_active Expired - Lifetime
- 1996-11-22 JP JP31246596A patent/JP3741803B2/en not_active Expired - Fee Related
- 1996-11-22 DE DE69608769T patent/DE69608769T2/en not_active Expired - Lifetime
- 1996-11-25 US US08/755,645 patent/US5903318A/en not_active Expired - Lifetime
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0014665A1 (en) * | 1979-02-12 | 1980-08-20 | Etablissement Public Télédiffusion de France | Method and system for picture overlay in colour television |
EP0024973A1 (en) * | 1979-08-17 | 1981-03-11 | Thomson-Csf | Keying signal generator for television inlay effect and special effects control device comprising such a generator |
EP0074824A2 (en) * | 1981-09-12 | 1983-03-23 | Sony Corporation | Chromakey apparatus |
WO1991005443A1 (en) * | 1989-10-06 | 1991-04-18 | Thomson Video Equipement | Self-adapted colour video image incrustation device and method |
DE4017878A1 (en) * | 1990-06-02 | 1991-12-05 | Broadcast Television Syst | Deriving key signal from foreground of video signal - using three=dimensional zone enclosed on all sides for increased colour possibilities |
DE4217686A1 (en) * | 1991-05-31 | 1993-01-14 | Matsushita Electric Works Ltd | METHOD FOR PULLING OUT A SPECIFIC COLOR IMAGE |
US5355174A (en) * | 1993-01-22 | 1994-10-11 | Imagica Corp. | Soft edge chroma-key generation based upon hexoctahedral color space |
Non-Patent Citations (1)
Title |
---|
V.G. DEVEREUX: "Digital chroma-key", INTERNATIONAL BROADCASTING CONVENTION, September 1984 (1984-09-01), BRIGHTON, UK, pages 148 - 152, XP002005261 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2336055A (en) * | 1998-04-01 | 1999-10-06 | Discreet Logic Inc | Chroma-keying system including modified matte softness region |
GB2336056A (en) * | 1998-04-01 | 1999-10-06 | Discreet Logic Inc | Chroma-keying system including modified matte control data for softness region |
GB2336056B (en) * | 1998-04-01 | 2002-10-16 | Discreet Logic Inc | Image processing |
GB2336055B (en) * | 1998-04-01 | 2002-10-16 | Discreet Logic Inc | Image processing |
US6496599B1 (en) | 1998-04-01 | 2002-12-17 | Autodesk Canada Inc. | Facilitating the compositing of video images |
US6571012B1 (en) | 1998-04-01 | 2003-05-27 | Autodesk Canada Inc. | Adjusting a softness region |
US6456300B1 (en) | 1999-03-31 | 2002-09-24 | Autodesk Canada Inc. | Method and apparatus for processing image data to produce control data |
US6924821B2 (en) | 2000-04-01 | 2005-08-02 | Autodesk Canada Inc. | Processing pipeline responsive to input and output frame rates |
Also Published As
Publication number | Publication date |
---|---|
DE69608769T2 (en) | 2000-10-26 |
EP0776136B1 (en) | 2000-06-07 |
IL119670A0 (en) | 1997-02-18 |
IL119670A (en) | 2003-04-10 |
FR2741770B1 (en) | 1998-01-02 |
JP3741803B2 (en) | 2006-02-01 |
DE69608769D1 (en) | 2000-07-13 |
JPH09187030A (en) | 1997-07-15 |
ES2148704T3 (en) | 2000-10-16 |
US5903318A (en) | 1999-05-11 |
FR2741770A1 (en) | 1997-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0776136B1 (en) | Method and apparatus for calculating a chroma key of an object evolving on a coloured background | |
EP0776135B1 (en) | Method and apparatus for processing a signal consisting of an object evolving on a coloured background | |
EP0542744B1 (en) | Self-adapted colour video image overlay device and method | |
EP0502777B1 (en) | Extraction of foreground areas with regard to a background by difference of two images | |
EP0638261A1 (en) | Method for determining the colour of a make-up restoring sensitively the colour of the skin of a person and device for its application | |
Soni et al. | A survey on underwater images enhancement techniques | |
Li et al. | Producing cloud free and cloud-shadow free mosaic from cloudy IKONOS images | |
Lu et al. | 3D underwater scene reconstruction through descattering and colour correction | |
WO2003002940A1 (en) | Method for synthesis of chart imagery | |
Pujas et al. | Robust colour image segmentation | |
Raigonda et al. | Haze Removal Of Underwater Images Using Fusion Technique | |
FR2719929A1 (en) | Device for replacing an artificial image presented to an aircraft pilot by the corresponding real image. | |
WO2003003312A1 (en) | Method for synthesizing an intervisibility image | |
Hintze et al. | Shadow patching: Guided image completion for shadow removal | |
Alhajlah | Underwater Image Enhancement Using Customized CLAHE and Adaptive Color Correction. | |
Yadav et al. | Underwater Image Enhancement via Color Balance and Stationary Wavelet Based Fusion | |
CA2503891A1 (en) | Image processing device with recognition and selection of light sources | |
EP0024973B1 (en) | Keying signal generator for television inlay effect and special effects control device comprising such a generator | |
CN111383242A (en) | Image fog penetration processing method and device | |
EP1405038B1 (en) | Method for generation of a relief image | |
Deshpande et al. | Under Water Image Restoration and Enhancement Using Image Processing in MATLAB | |
Mao | Study on image dehazing with the self-adjustment of the haze degree | |
Burhan et al. | Two Methods for Underwater Images Color Correction: Gamma Correction and Image Sharpening Algorithms | |
Ahamed et al. | An Image Synthesis Method Generating Underwater Images | |
Liu et al. | Image De-hazing Based on Polynomial Estimation and Steepest Descent Concept |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): DE ES FR GB IT |
|
17P | Request for examination filed |
Effective date: 19971119 |
|
GRAG | Despatch of communication of intention to grant |
Free format text: ORIGINAL CODE: EPIDOS AGRA |
|
17Q | First examination report despatched |
Effective date: 19990909 |
|
GRAG | Despatch of communication of intention to grant |
Free format text: ORIGINAL CODE: EPIDOS AGRA |
|
GRAH | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOS IGRA |
|
GRAH | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOS IGRA |
|
GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
AK | Designated contracting states |
Kind code of ref document: B1 Designated state(s): DE ES FR GB IT |
|
ITF | It: translation for a ep patent filed |
Owner name: JACOBACCI & PERANI S.P.A. |
|
GBT | Gb: translation of ep patent filed (gb section 77(6)(a)/1977) |
Effective date: 20000608 |
|
REF | Corresponds to: |
Ref document number: 69608769 Country of ref document: DE Date of ref document: 20000713 |
|
REG | Reference to a national code |
Ref country code: ES Ref legal event code: FG2A Ref document number: 2148704 Country of ref document: ES Kind code of ref document: T3 |
|
PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
26N | No opposition filed | ||
REG | Reference to a national code |
Ref country code: GB Ref legal event code: 746 Effective date: 20011123 |
|
REG | Reference to a national code |
Ref country code: GB Ref legal event code: IF02 |
|
REG | Reference to a national code |
Ref country code: FR Ref legal event code: D6 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: ES Payment date: 20071219 Year of fee payment: 12 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: IT Payment date: 20071123 Year of fee payment: 12 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: FR Payment date: 20071123 Year of fee payment: 12 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: IT Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20081122 |
|
REG | Reference to a national code |
Ref country code: FR Ref legal event code: ST Effective date: 20090731 |
|
REG | Reference to a national code |
Ref country code: ES Ref legal event code: FD2A Effective date: 20081124 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: ES Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20081124 |
|
REG | Reference to a national code |
Ref country code: DE Ref legal event code: R081 Ref document number: 69608769 Country of ref document: DE Owner name: THOMSON LICENSING, FR Free format text: FORMER OWNER: THOMSON BROADCAST SYSTEMS, CERGY PONTOISE, FR Effective date: 20110217 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: FR Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20081130 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: GB Payment date: 20141127 Year of fee payment: 19 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20141125 Year of fee payment: 19 |
|
REG | Reference to a national code |
Ref country code: DE Ref legal event code: R119 Ref document number: 69608769 Country of ref document: DE |
|
GBPC | Gb: european patent ceased through non-payment of renewal fee |
Effective date: 20151122 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: GB Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20151122 Ref country code: DE Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20160601 |