Академический Документы
Профессиональный Документы
Культура Документы
Touch up the colors of a video sequence or an animation. Handle the effects of the Keying group.
Unless indicated otherwise, all images in this lesson have only one layer.
Color channels
Color channels
Based on the additive color principle, all colors are a mi ture of red, green and !lue "more or less dar#$ in e act proportions. The color of a pi el therefore has a dar#er or lighter Red component, a dar#er or lighter Green component, a dar#er or lighter Blue component and a last component which indicates the pi el transparency level. This last component is referred to as Alpha component.
Default settings
'()(
Default settings
riginal image
3 The Brightness parameter is used to increase or decrease the glo!al !rightness of the current image or video "use negative values to decrease !rightness$. In other words, all the pi els present are either changed over to the !lac# color or the white color.
riginal image
!rightness % #5$
3 The Contrast parameter, if increased, will accentuate the luminosity differences !etween the light and dar# areas. %hen decreased, it will reduce them. , setting close to '445 will only ma#e the primary colors appear, as well as !lac# and white. , setting close to '445 will ma#e the image or footage almost entirely gray.
riginal image
3 The Saturation parameter accentuates or reduces color vivacity. , setting close to '445 will reduce the num!er of pi els close to the gray colors while reviving the colors, a setting close to '445 will produce a gray drawing.
'()6
riginal image
3 The Gamma setting is often used for photo touch)up !ut also ena!les lightening or dar#ening an image without leaving the impression that a dar# or light sheen was placed over it. Its value may vary !etween 4.4' and 7.
(amma ) 2
(amma ) 0*5
,t first sight, the Gamma parameter seems to have the same effects as the Brightness parameter. This is true, with the difference that the Brightness parameter affects all pi els on the screen whereas the Gamma parameter affects the light and dar# pi els only marginally. Below you will find an e ample of the difference !etween a gamma reduction and a reduction of the !rightness : &educing the Gamma !y half only slightly affects the pi els ma#ing up the paint and the !ac#ground: the latter remain !right and clear. 8odifying the Luminosity to 745 gives the same pi els a dar#er hue.
(amma ) 0*5
Luminosit+ % 50$
3 The Angle parameter ena!les rotation of colors at the angle of your choice around the color wheel "see !elow$. 9or e ample: going from angle 4: to the angle ;4: will transform the orange colors in the image to green, !lue to purple,<etc.
'()=
riginal image
3 The Rotation parameter reflects the num!er of turns around the color wheel !efore arriving at the chosen angle. This allows you to ma#e the colors vary in a time cycle, which is sometimes useful for colored logos. In the e ample !elow, we start with a !lue T-.aint logo "&>4, ?>4, B>(77$, placed on each image of an animation layer comprising forty)eight images.
,n animation #ey is placed at the first image of the layer, loc#ing the value 0 4 1 for the Rotation parameter. , second #ey is placed at the last image of the layer, loc#ing the value 0 ( 1 for the Rotation parameter. %hen the 9@ stac# is applied, you see the following result:
The logo changes color in cycles, going twice in a row through the colors of the color wheel.
riginal image
'()7
Atart !y selecting a color in the green area of the image in the Color !o of the panel a!ove. .art of the green pi els will then !e unsaturated and turn to gray. To o!tain a !etter finish, you may increase or decrease the tolerance or softness thresholds. To select the pi els according to their hues, the color !ar of the panel as well as the = mini)sliders will help you.
non)unsaturated hues,
The !nvert !utton is used to invert the final result: saturated pi els !ecome unsaturated and vice)versa. If necessary, the popup menu "isplay ena!les recovery of source image viewing.
riginal image
'()D
riginal image
1odified image
'()F
The options proposed are traditional: flip the curve along the 0 @ 1 or 0 C 1 a es, use pre)defined curves, save the settings, modify interpolation of the points<
Eow we /ust have to study the meaning of the curve: 3 The hori2ontal a is represents all luminosity values that may !e contained in a pi el on the screen "values !etween 4 and (77$ 3 The vertical a is "also #nown as L)#: *oo# Up Ta!le$ represents all luminosity values of the pi els once the Curve effect has !een applied. *et+s ta#e the curves !elow as e amples: 3 In this e ample: the luminosity of every pi el is divided !y two after application of the effect "for e ample, a luminosity value of 74 changes to (7 after application of the effect$. 3 In this e ample, the luminosity of every pi el remains unchanged. 3 In this last e ample, any pi el with a luminosity value !etween appro imately D= and ';( will turn !lac#, the others remain unchanged. %e have /ust studied the luminosity curve in detail. Eow it+s up to you to wor# with the other curves and use them to the advantage of your pro/ects.
effect
%e have /ust seen that it is possi!le to wor# on pi els using curves. T-.aint ,nimation also offers the possi!ility to wor# on the colors on a more 0statistic level1 than#s to the &istogram effect. The first function of the histogram is to provide information a!out the distri!ution of colors on the screen. *et+s ta#e for e ample the images !elow and select the (aster ta* in the first row of ta!s and Luminosity in the second. %e will o!tain the following graphs :
The Log !o ena!les use of a logarithmic scale instead of a proportional scale. 9or the moment, pay attention that this !o is not chec#ed < 3 The more dar# pi els the image on the screen contains, the more dense the graph is to the left "this is the case for our red planet$.
'()G
3 The more light pi els the image on the screen contains, the more the graph is concentrated on the right "this is the case for the image of the tree$. 9or a luminosity value given in the a!scissa, the graph proportionally represents the quantity of pi els of the image having this luminosity value on the ordinates a is. The !lue curve represents the percentage of pi els having at least attained the luminosity value in the a!scissa, the vertical red line represents the pi els the luminosity of which is the most represented on the screen. The ta!s Red, Green, Blue and Alpha wor# according to the same principle and image analysis is reduced to the channels of the corresponding colors. The second function of the histogram, as you may have guessed already, is to modify the color properties of the image or video of the current layer "here again, the animation #eys loc# the parameters for a given position in the timeline$. To do this, we have to use the slider system of the histogram. Cou may use two, three or four of them. The latter ena!le re)cali!ration of the histogram !y stretching or contracting it. *et+s again ta#e a loo# at the pi el luminosity component. Below, you see the e ample of luminosity modification using the three sliders:
'ettings
The section of the histogram !etween the a!scissas (7 and '(G will !e contracted to fit !etween the a!scissas 4 and 7'. The section of the histogram !etween '(; and (77 will !e stretched to fit !etween a!scissas 7( and (77. This means that the dar# components of the pi els in the image will !e reinforced and contracted whereas the light components of the pi els in the image will !e redistri!uted, spread and therefore reduced. The ta!s Red7 Green7 Blue and Alpha ma#e the other graphs relative to the current image appear. Bach of them may !e modified independently of the others. The principle of contracting and stretching is the same, regardless of how many sliders are used. Hnly the num!er of contracted or stretched intervals changes.. The first row of ta!s contains four ta!s: 8aster, Ahadows, 8idTones and High*ights. 3 Clic#ing the Shado+s ta! limits the impact of the slider modifications to the dar# colors, gradually. 3 Clic#ing the (id#ones ta! limits the impact of the modifications to the medium tones and will reduce them progressively and finally cancel them out for the dar# and light colors.
'();
3 Clic#ing the &ighLights ta! limits the effects of the histogram modifications to light tones, the latter waning progressively then canceling out for the medium and dar# tones. 3 The (aster ta! affects all color ranges in the same way. *oo# at the following graphs for a !etter understanding:
>
Three curves are represented: 3 The !lac# curve represents the impact of the modifications in the histogram on the dar# tones "Shado+s ta!$ 3 The gray curve represents the impact of the modifications on the medium tones "(id#ones ta!$ 3 The white curve represents the impact of the modifications on the light tones "&ighLights ta!$ The tones concerned are located on the a!scissa. The impact power is represented on the ordinates a is "the higher the curve for a given range, the higher the influence of the histogram modification on this range$. The circled sliders in the graph opposite are used to move, contract or stretch the three curves and, consequently, modify the effect of the ta!s.
'()'4
%hen the Contrast ta! is selected, moving the slider to the right increases the height of the *.U.T curve in its high sections and decreases the curve in its low sections for the chosen range. This means that the strong values of "#emperature, (agenta, Red,<$ will !e reinforced and the wea# values reduced for the range of your choice "moving the slider to the left produces the opposite effect$. The Gain ta! functions in roughly the same way as the Contrast ta!, !ut the ends of the curve are gradually less affected !y the slider modifications "the modifications of the values of #emperature, (agenta, Red,< are the same as with the ta! Contrast !ut wor# in a more su!tle and progressive manner$. The effects of the Brightness ta! are similar to the Gamma ta! !ut the modifications are not applied in a progressive fashion due to the identical attri!ution from one end of the curve to the other.
22
"'$
22
"($
This effect will not only ma#e the light pi els of the image transparent and color the remaining pi els !lac# "'$ !ut will also remove unwanted pencil mar#s "($
'()''
The diagram !elow illustrates the role of the profile curve present in this effect :
- Couleur Source "that will define the color reference to colori2e your line$. *et+s ta#e this image, composed of several layers "!elow and a!ove the layer lines$.
'()'(
The Color source mode K.oregroundL : as a part of the her! layer is a!ove the line layer, the lines of the feet !ecame green.
The Color Source mode KBac#groundL : colors from the layer !elow is used as a reference to colori2e the drawing lines.
The Color Source mode K"isplayL : all colors visi!le have an influence on the drawing lines.
'()'6
J Render mode: this paramater will allow you to choose the spread of the effect, following the (anhattan mode "rectangular spread$ or uclidian mode "circular spread$.
riginal image
$anhattan 1ode
Euclidian 1ode
'()'=
The options Radius and Render mode are identical to the options met with the Line colori/e effect.
T.o s;uares .ith a color gradient and a smal smooth on the 0orders
ode
'()'7
2 *et+s ta#e a loo# at the drawing on real paper a!ove. ,pplication of the Luma Keyer effect set with correct parameters will render the light pi els transparent "independent of their hue and saturation$, progressively increase the opacity of the medium tone pi els and leave the dar# pi els intact. This gives us the image shown to the right. ,t this point, it is possi!le to re)color the image, if desired : simply place a layer under the image o!tained and spread the colors of your choice on it "see e ample opposite$. Cou may also use the shape floodfill tools studied in lesson D.
These are the functions of the Keying 1 Luma Keyer effect: 3 The "isplay popup menu is used to choose !etween viewing the source image and viewing the result. 3 The color !o is used to choose the color the luminosity of which you wish to render transparent directly on the screen. 3 The !uttons 2 and N are used to ad/ust the tolerance and softness of pi el cut)out. 3 The mini)sliders allow ad/ustment of the following, depending on the luminosity and with the help of the diagram !elow: The type of pi els which remain opaque Those which are progressively made transparent Those which will !e completely transparent
It is recommended to com!ine the Luma Keyer effect in a multiple 9@ stac# with the Colors 1 &istogram or the Colors 1 Slider effects to !e a!le to precisely ad/ust pi el transparency "use the parameters relative to the alpha component$ and remove the gray aspect "light$ of semi)transparent pi els.
'()'D
The effects Keying 1 Luma Keyer and Colors 1 Scan Cleaner change the opacity of the pi els differently : the Luma Keyer doesn+t remove the unwanted pencil mar#s. The Scan Cleaner change the color of the pi els, and the Luma Keyer doesn+t.
Hpposite, most of the !luish colors of the s#y and cloud !ecome transparent. The green and dar# colors of the tree are further away from !lue and therefore opaque.
%ith the !nvert parameter, the effect can #eep the color chosen in the Color parameter whereas to remove it.
The opposite image shows the result when the !nvert parameter is chec#ed.
These two #eying effects may, of course, !y applied to a complete footage, which ma#es wor# easier when using a scanner with loader or a recorded video sequence.
'()'F
The character near!y was shot in front of a !lue screen. %e are going to e plain how to remove this !lue !ac#ground and to replace it !y another !ac#ground. It+s a technique often used for animation : weather reports are shot with a single)colored !ac#ground which is removed and replaced !y a weather chart. *et+s go !ac# to our character : the purpose is to ma#e transparent all the !lue pi els and to display a new !ac#ground on another layer. To do so, let+s load a landscape !ac#ground near!y and put it as an ,nimation layer, under the layer containing the character. The !lue color is called key color "that+s why the effect is called #eying$. Cou should have a timeline loo#ing li#e this :
Eow select the Color Keyer effect in the .3 stack. Choose a !lue pi el from the !ac#ground and ad/ust the tolerance and so$tness parameters. ,pply the effect to the whole image sequence, and here it goes, the !lue !ac#ground has disappeared and is replaced !y the landscape. The same method is also used to create a weather report "see !elow$
There are other #eying effects, more comple , which have to !e used in some specific situations.
'()'G
The panel and the !uttons of this effect loo# very similar to the ones of the effect Color O Color raser% That+s why we will not e plain each parameters in details... *et+s ta#e for e ample the video sequence a!ove with orange and red flowers. The !ac#ground of this sequence is a !lue)gray shutter "more or less dar# !lue)gray tints$. If you use the Keying 1 Color Keyer effect !y selecting one of the dar# shutter colors, it will not remove all the shutter pi els !ut it will remove some pi els of the flower+s stal# too. "see !elow "'$$ If you use the Keying 1 Color Keyer effect !y selecting one of the light shutter colors, it will remove all the pi els of the shutter !ut it will remove the light pi els of the flower+s too. "see !elow "($$
"'$ The Keying 1 Chroma Keyer effect will help us to o!tain !etter results.
"($
The results a!ove, o!tained after the use of the Keying 1 Color Keyer effect, are imperfect.
3 The #int parameter !ar will ma#e transparent the !lue pi els in a wide range : light !lue or dar# !lue will not change the result. The orange)red pi els of the flowers and the green pi els of the stal# will stay unchanged.
'()';
3 The Saturation parameter !ar permits to ma#e green pi els more or less transparent depending on their saturation. ,s a consequence, we will !e a!le to ma#e transparent all the !lue)gray pi els. Here is the result : we finally succeed to #eep the pi els of the flowers visi!le and ma#e the pi els of the shutter transparent.
22 To finish our wor#, we can easily add a landscape on a layer and put it !ehind the flowers layer. "see the timeline !elow$
22
*et+s go !ac# to our !lue)screened character : ,lthough we used the Keying 1 Color Keyer effect with the our !lue)screened character in the last chapter, you certainly guess that it is also possi!le to use the Keying 1 Chroma Keyer effect% %hen characters are shot with !lue screen, there are sometimes some undesired light effects, especially little !lue reflections colori2ing some part of the image "see image !elow on the left$. It is of course possi!le to remove the !lue tint to these pi els !y ma#ing them grey. That+s the function of sliders and !uttons from the Spill Removal section of the panel.
OO
'()(4
O
Here is how the effect appears in the 9@ Atac# : 3 Cou can first notice the presence of a histogram, a tool you are now familiar with. This one represents the quantity of pi els displayed on screen depending on their luma "in percentage$. 3 In the !ottom of the panel, there are some numeric fields and mini)sliders at your disposal :
The Shrink parameter can trim the opaque pi els of the image. That is the !est to remove the !lac# !orders around the flowers. The rode parameter erase progressively the opaque pi els of the image !y starting from its !orders. It permits to soften the transition !etween transparent pi els and opaque ones, and even to improve the superimposition effect. Both Blur parameters can reduce and soften the shapes !orders !etween opaque pi els and transparent ones. The Gain parameter permits to turn opaque and to dar#en pi els which are almost transparent. This is very useful to stand out the little imperfections, especially the ones that have not !een fully removed when using some Keying effects. Hn the opposite, the Li$t parameter can turn opaque the pi els which are almost transparent.
'()('
3 The Key ta! lets you ad/ust the #eyer in the different color systems. 3 The 8atte ta! has the same function as the previously descri!ed Keying 1 Alpha Control effect so you can /ust ad/ust the cutout process !etter. 3 9inally, the Spill Removal ta! is also availa!le and wor#s the same as the Keying 1 Chroma Keyer one.
%or#ing with the &ue and Saturation component of the HA*H system is the same than wor#ing with the Keying 1 Chroma Keyer effect. %or#ing with the Luma component of the HA*H system is the same as wor#ing with the Keying 1 Luma Keyer effect.
'()((
The Keying 1 Cross Keyer effect wor#s in a different way than the other #eying effects : It doesn+t require to select a range of colors in a color system li#e &?B, TA*, CU-, etc ... In this effect, you only need to define a first region whose colors will !e #ept, and another region whose colors will !ecome transparent. Aelecting those two regions can !e easily done than#s to the two dedicated Region !uttons : 3 To select the colors you want to #eep after applying the 9@, /ust use the left mouse !utton on the Keep !utton. ,fter this you will !e a!le to select an area directly on the HUP. "your cursor will !e changed into a lasso$ 3 To select the colors which will !ecome transparent, you can use the same method with the "rop !utton. %hen selecting a new area on the HUP : 3 Use the left mouse !utton to add it to the previously selected area. 3 Use the right mouse !utton to su!tract it from the previously selected area. To visuali2e the render of this effect, use the right mouse !utton on the current activated !utton "Keep or "rop$. Hf course, the result depends on the two areas you have /ust selected. In the e ample !elow : Hn the left image : there are two areas located on the s#y and on the pathway. They indicate the colors "red and cyan$ that will !e #ept on the whole picture. Hn the right image : there is one area located on the grass and on the trees. It indicates the colors "orange and green$ that will !e dropped. The picture in the right shows the result after applying the effect :
2
=eep region Drop region 3inal result
3 The s+ap keep and drop regions !utton allows to swap the Keep and "rop regions. It is then possi!le to o!tain the opposite result.
'()(6
3 The (i0 parameter allows to e tend or restrict the num!er of colors located in the transparent area of the resulting image.
1i: ) 0$
1i: ) 50$
1i: ) 100$
3 The dge parameter allows to ad/ust the mi ing level !etween the transparent and opaque pi els. The lower the value will !e, the less the two regions will differentiate. The higher the value will !e, the sharper the edges will appear.
9dge ) 0$
9dge ) 50$
9dge ) 100$
3 The Spill Removal parameter has the same function as the Spill Removal parameters encountered in the effect Keying 1 Chroma Keyer : it unsaturates the undesired light reflections. In the e ample !elow, we 2oomed on the frontier !etween the grass and the pathway.
'ource /mage
'pill Removal ) 0$
'()(=