Lesson 4: Basic color manipulation

A working principle: firstly with the tool, not only with the eye

The more experienced you become in digital image editing, the more capable you become to scan an image rather with your brain and not only with your eyes. As a human being you are accustomed to seeing through your natural vision -as seeing is the most powerful of our senses- but for image editing you must develop your technical vision as well. You see an image which resides inside a computer, but a computer "sees" only numbers. So in order to effectively manipulate a digital image, you must be good at correlating numbers with optical features. To enhance this visioning ability, you need both theory and practise. The theory has already been given to you in the first Lesson and in advance you will realize that GIMP has all the tools you need to help you while working with your images. This combined experience will make you a better photographer not only at image editing (post processing) but at shooting as well.

Two types of images

We can distinguish images in two categories:

  • non-continuous tone images -- clear and abrupt areas of color. Images of this kind are easy to manipulate, because different areas of the image can be easily isolated as targets to act on.
  • continuous tone images -- typically photographs. Areas may not be easily isolated, since they have color in a continuum. Things get challenging. Areas in the image are difficult to separate, so we are challenged for sophisticated approaches to the separation problem. With various tools and tricks introduced in the next Lessons, we try to exploit the various numerical properties of the pixels themselves.

This is an important lesson on the critical concept of visualization of the structure of digital images -- and especially of continuous tone images where things get interesting and challenging.

The Histogram

The term histogram (from the greek ιστόγραμμα, ιστός + γραμμή, meant as correlation line) refers to a graphic that depicts the correlation of different types of numerical data. Since a digital image is stored as numbers, an image histogram can represent color distribution inside the image, in a way that offers an insight on things like:

  • if the exposure was right,
  • if the light was flat or with high contrast,
  • hints about what kind of manipulations may yield acceptable results.

As we know every pixel of the image as you see it on screen has a color based on a set of three numbers for R, G, B, every one of these three being a brightness value in the range 0-255 (for an 8bit color depth). A basic histogram comes up when the computer scans the values of all components of all pixels and counts how many pixels correspond to these brightness levels. There can be various types of histograms, however all follow this basic logic.

Understanding an histogram is fundamental. Like a doctor who sees an X-ray and understands what is happening inside the body, a digital photographer by seeing the histogram understands the structure of a digital image. I strongly recommend that you do some homework studing some histograms of your own images, and soon you will be able to immediately visualize terms and situations like the following:

  • Theoretically in a technically good image the distribution of the pixels extends to the whole x axis - the image has a full tonal range.
  • If pixel distribution goes to the left, you have a low key photo.
  • If pixel distribution goes to the right, you have a high key photo.
  • If the histogram ends abruptly on the left - the curve does not touch the zero brightness point - , the shadows are clipped - lost detail in shadows, photo been shot underexposed.
  • If the histogram ends abruptly on the right, the highlights are clipped - lost detail in highlights, photo been shot overexposed.
  • If pixel distribution covers only the center, the image is flat - low contrast.
  • If pixels have two tonal ranges on the left and the right, the image has a high contrast.

The technical quality of a photograph in the strict sense depends initially on the shooting conditions that have to do with the subject itself and the lighting. At post-processing, we can manipulate a photograph in certain ways, acting on the numerical data of the pixels. The histogram is a valuable tool to use, together with your eye, to affect the quality of an image. With the histogram you perceive the technical side, with the eye you perceive the optical side, and by constantly combining these two perceptions you become intelligent in digital photography.

The histogram is there to continuously follow you on any action you do, helping you to visualize the technical aspect of what you are actually doing on your image.

Histogram: linear or logarithmic


The histogram can be viewed at linear or logarithmic mode, with two little buttons up right on the dialog. By default it should come linear, as refered in the next video, and you should better leave it this way, the linear mode being a simpler mathematical depiction.

One-click-fixes
The three basic tools
"Colors" > "Brightness-Contrast..."
"Colors" > "Levels..."
"Colors" > "Curves..."

With the possibilities that these tools offer through their dialogs' interface, you can perceive the structure of the numerical data under your images and you can practice and experiment on them. If you persist with these tools, you will soon be able to perform effective manipulations on tone and color. I recommend that you scan the GIMP's help on these tools, and do just that one thing: use them.

No comments:

Post a Comment