The last scope (after the Histogram [1] and the Waveform and RGB Parade [2]) that is new to kdenlive 0.7.8 is the Vectorscope. This is actually the most interesting scope because it is quite different from the other ones and, secondly, is really useful for Color Grading.

More in the full article » [3]
There is one simple thing that makes the Vectorscope so special: It uses a color space different than RGB. That sounds unspectacular, but it is not. The previous scopes allow you to determine which brightness values exist in your image, the Vectorscope shows which colors there are.
The Vectorscope supports two different color spaces: YUV and YPbPr. Both of them have the Y in common, something you know from before: It is the Luma component. (Rec.601 in both cases.) This, amongst others, comes from black/white TV. When Color TV was introduced, some people actually recognized that not everybody would immediately trash his old b/w TV and buy a new one, so they still sent the b/w signal, but with two additional channels: The blue difference and the red difference (to Luma), called U and V. So that is how YUV [4] works (please take a look at the image in its YUV components on the linked Wikipedia page).
The other color space, YPbPr [5] or its digital counterpart YCbCr [6] respectively, are similar. If you switch between the two color models in the Vectorscope (via the context menu) you will notice that the colors are slightly shifted. YCbCr is used basically everywhere in digital video.
So, what the Vectorscope does: It calculates the Luma value of a pixel, then calculates the blue difference/red difference values. Then it throws the Luma value away. Why that? It is because the Vectorscope is 2-dimensional. The blue difference is on the horizontal axis, the red difference is on the vertical axis. (There actually are three-dimensional vectorscopes which put the Luma component on the third axis!)
Now let’s take a look at how this actually looks like in a video.
Well … nothing? Close. There is a little pixel in the middle of the scope. And that is the whole image. That looks a little disappointing now, but actually it is great. All greys (plus black and white) are exactly in the middle. Everything that is not in the middle has some color information (and the further away it is from the middle, the higher its saturation aka. chrominance). This will come in very handy when it comes to white balance.
Juggling balls are more interesting, especially when they are colored. The ones above are. I’ve switched on a YUV background (with fixed Luma) which helps identifying the colors of pixel heaps on the scope. Two things can be noticed:
These are exactly the ball’s colors! Blue comes from the two balls on the left, yellow from the yellow ball, the left red area is the pink part of the left ball, the right part in red is the red ball on the right. The part between red and yellow, which is actually orange, is the background of the whole scene, and the last one between red and blue is the violet part of the right red ball.
As the shot above is actually correctly white balanced, I will not maltreat it here. But you should actually try! Download the sample below, add a SOP/Sat effect and change the Offset parameters for the RGB values. (Don’t forget to enable auto-refresh.)
Now perhaps you wonder how I could assign those spots to colors with surety. Is it really the upper spot caused by the red ball? To find out (I didn’t want to write wrong things here) I have masked the red ball out (with a Title Clip I’ve drawn a white rectangle on). The spot then indeed disappeared.
The violet spot has disappeared as well, and also big parts of the yellow spot because the white rectangle covers the yellow ball as well.
Again, two things worth pointing out for this clip.
But when increasing the gain of the Vectorscope to 5× we see that the scope image actually stops right before neutral.
If you open this clip and take a look at the Waveform you will notice that it shows the same: Blue is too low, red is too high. To correct this minor color cast we can use the SOP/Sat effect again, adjusting the Offset values. By doing that the points on the Vectorscoped will be shifted around. A positive red offset will make the points shift towards red at the top, a negative offset shifts them towards the opposite direction (that is, towards the complementary color [12] of red, cyan).
I adjusted the blue and red values such that there is some padding around the neutral center. It is usually not enough to just let the first pixel hit the neutral point because several factors like the material of the neutral object itself, chromatic abberation [14] (there is also a more accurate article about chromatic aberration [15]) in lenses, artifacts [16] in the recorded video file. So usually neutral areas will not share one single pixel in the vectorscope but have a certain diameter. Therefore the padding.
Because this is a suitable clip for hue:
Now what happened here? The hue has changed, and the points on the scope look like rotated by 30 degrees. And indeed they did rotate. The Hueshift effect changes the hue of all colors by a certain (configurable ;)) amount. In the Vectorscope this becomes visible as a rotation around the center of the scope.
Similarly, when changing the saturation/chroma, the dots on the vectorscope will move closer to the center or further away from it.
In the Histogram article’s introduction I mentioned creating looks with color correction. This example covers part of the tip of the iceberg of this topic. (The tip is the most important part of an iceberg because it tells you where you can drive safely ;))
What is special about creating a look for a video? Let’s take a look at some random clips:
Mostly different content and therefore different colors – as said: random. One point of Color Grading is to give single clips a connection. This is not limited to white balance only. White balancing a clip is about removing color casts (which is a good thing because it gives you a neutral starting point). But we can also add new colors.
These clips look much more like if they belonged together. This is the result of Primary Color Correction (Primary means that it affects the whole image; Secondary Color Correction would only affect parts of it, e.g. by using masks, chosing color ranges, etc.): White balance (plus in some cases reduction of saturation) followed by a SOP/Sat effect. The latter SOP/Sat effect does something similar as the Blockbuster Effect [20]; Here the blacks become blueish, the mids and the whites tend towards yellow.
See also this page [21] for some hints about Looks and the Vectorscope.
In kdenlive 0.7.8 you can adjust the Vectorscope as follows by right-clicking it:
The Vectorscope shows the hue and saturation distribution in a way we can understand without problems. This is useful for quickly recognizing color casts, but also helps judging the color distribution of a clip and match it to others.
All scopes together fulfil another important task: They help matching video from different light situations and different input sources (like a second camera) regarding brightness and color. This is what you need Test Charts as e.g. seen here [26] for. Different cameras might have a different dynamic range and different colors. So when combining these shots you first shoot a test chart and then match exposure and color [27]. This is also widely covered in the book Color Correction for Video [28] by Steve Hullfish and Jamie Fowler.
So — have fun with the scopes! May they guide you through your color grading.![]()
Thanks for reading!
Please drop your comments below.
Simon A. Eugster (Granjow)
Links:
[1] http://kdenlive.org/users/granjow/introducing-color-scopes-histogram
[2] http://kdenlive.org/users/granjow/introducing-color-scopes-waveform-and-rgb-parade
[3] http://kdenlive.org/users/granjow/introducing-color-scopes-vectorscope
[4] http://en.wikipedia.org/wiki/YUV
[5] http://en.wikipedia.org/wiki/YPbPr
[6] http://en.wikipedia.org/wiki/YCbCr
[7] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-bw.png
[8] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-juggling-balls.png
[9] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-juggling-balls-masked.png
[10] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-musical-box.png
[11] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-musical-box-whitebalance1.png
[12] http://www.tigercolor.com/color-lab/color-theory/color-theory-intro.htm#complementary
[13] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-musical-box-whitebalance2.png
[14] http://www.dpreview.com/learn/?/Glossary/Optical/chromatic_aberration_01.htm
[15] http://toothwalker.org/optics/chromatic.html
[16] http://prolost.com/blog/2009/12/3/you-didnt-believe-me.html
[17] http://kdenlive.org/sites/default/files/images/kdenlive-colorscopes-vectorscope-musical-box-hue.png
[18] http://kdenlive.org/sites/default/files/images/colorcorrection-uncorrected.jpg
[19] http://kdenlive.org/sites/default/files/images/colorcorrection-corrected.jpg
[20] http://laamc.wordpress.com/2010/04/19/why-the-so-called-%E2%80%9Cblockbuster%E2%80%9D-look-color-grading-explained/
[21] http://www.kenstone.net/fcp_homepage/fcp_7_scopes_vectorscope_stone.html
[22] http://en.wikipedia.org/wiki/Vectorscope#Video
[23] http://granjow.net/uploads/kdenlive/samples/raclette-greyscale.avi
[24] http://granjow.net/uploads/kdenlive/samples/juggling-balls.avi
[25] http://granjow.net/uploads/kdenlive/samples/Musical-box.avi
[26] http://www.image-engineering.de/index.php?option=com_content&view=article&id=370:the-universal-test-target-utt-a-new-approach&catid=1:latest-news&Itemid=97
[27] http://www.hdcinematics.com/chapters/chapter2.html
[28] http://books.google.com/books?id=eQJHWAfKzawC
[29] http://creativecommons.org/licenses/by-sa/3.0