Layers Example

We will use Layers to do the same editing that we did in the Selective Enhancement Page.  By using layers, we can easily change some prior editing, while not changing other prior editing.  This is extremely useful on images where the editing is a little complicated because it is very easy to screw something up a little at an early stage, and this screw-up can get magnified on subsequent enhancements.  Without layers, you can not un-do prior editing after a file has been saved, closed, and then re-opened.  Without layers, you can un-do consecutive edits during an editing session, but you can not un-do just a single edit done in the past.  The moral is that Layers are extremely important when you are doing more than a couple simple edits on an image.

VIP:  If you Save your file as a JPG file, all of the layers will be lost for future edits.  However, the effects of the layers will be applied.  The preferred approach is to duplicate your original photo and Save it in (.PSD) Photoshop file format.  You will be able to save all of the layers and the will not be any loss of detail caused by JPG compression.

In the following example, all of the steps are the same as in the Selective Enhancement Page, except where designated by "NEW."  There are also VIP new topics at the end about re-editing the prior adjustment layers.

This image has 3 different regions that are significantly different, namely the sky, the white rocks, and the reddish region in the middle.  If you perform a global histogram adjustment on this image, the image will be enhanced only a minimal amount.  This following steps will carefully select each of the 3 regions, and then enhance each of these regions independently.  We will use the Magic Wand Tool for selecting the sky, the Magnetic Lasso Tool for selecting the white rocks, and then join those two together and use the Inverse to select the red central region.
 
 

Fig. 1.  Before
link to full sized image
Fig. 2.  After all of the changes below
link to full sized image

Select the Sky


Enhance the Sky

Fig. 3  Histogram of the original Sky
Fig. 4  After Sky adjustment and the Magnetic Lasso selection of the White Rocks.

You can now Select > Deselect so that the Sky region is no longer selected.  However, when we start making the next selection, this deselecting will automatically take place.

Select the white rocky region in the lower left using the Magnetic Lasso Tool.

Enhance the White Rocks
Fig. 5  Histogram of the original White Rocks.
Fig. 6  After White Rocks adjustment and the selection of the Red central region.

Select the Red central region shown in Figure 6

Enhance the Red Central region
Fig. 7  Histogram of the Red Channel of the original Red Central region.

Figure 8 shows the original Histogram levels for Figure 1 before any enhancement was performed.  Figure 9 shows the Histogram levels for Figure 2 after all of the preceding steps were performed.
 
 

Fig. 8  Histogram of the original image shown in Figure 1
Fig. 9  Histogram of the final image shown in Figure 2 

NEW and VIP:
The power of using Layers is that we can now go back and selectively modify any of the previous edits that we did earlier.

In order to easily access different layers, click on the Layers Tab located in the upper right of the screen.  You should see something similar to Fig. 10 shown below.  If you do not see a large enough version of this, you should stretch out the boundaries of the Layers view.  The lowest layer is called the background, and then the next 3 layers are displayed from the bottom up in the order that they were created.  There are a zillions of things that you can do with these layers, but I will mention just a few basic ones.  The most important concept of the layers is that Adjustment Layers only store information about the type of the editing that is done and where it is applied.  For these examples, each layer stores the instructions that it is a Levels adjustment, what the sliders were moved to, and what selected area it was applied to. The Adjustment Layer does not store the resulting RGB pixels of the enhanced image.   The lowest layer called the Background layer contains all of the RGB pixels to which the higher up adjustment layers will be applied to.
 
 

Fig. 10  View of the Layers

Modifying previous edits:   On each of the top 4 layers, there are two larger rectangles (not the two little ones containing an eye).  The right rectangle is black and white, where the white region indicates the selection to where the adjustment was applied.  The rectangle on the left contains a figure that looks like a small histogram with a slider under it, which is a visual indicating that this was a Levels adjustment.  If you double click on this left rectangle, the levels dialog box appears showing the exact place where you moved the sliders.  For example, if you click on the left rectangle of the top Layer for the Red Central Region, you will see the Levels dialog box shown in Fig. 7.  You can then change the levels adjustment if you want to.  You can do this with any layer.

If you want to delete a layer, right click on the layer and then click on Delete.  You will be asked to confirm this deletion.  If I deleted any of the top 4 layers, it will be as if I never did that particular edit.  Be careful not to delete the background layer at the bottom.

Before deleting any layer, it is easy to see what the result will look like with that layer deleted.  The small rectangle on the far left of a layer contains a small image of an eye.  If you click on that eye, the effects of removing that layer will be displayed.  To see the effect of the adjustment layer again, click on that small far left rectangle again.  This will toggle the eye back on.

As noted at the very beginning, if you Save your file as a JPG file, all of the layers will be lost for future edits.  However, the effects of the layers will be applied.  The preferred approach is to duplicate your original photo and Save it in (.PSD) Photoshop file format.  You will be able to save all of the layers and the will not be any loss of detail caused by JPG compression.  If you need to convert it to a JPG because you are printing it at some store, then so a SaveAs to a JPG file type.  Keep the PSD file for future changes.
 
 

kilroy space bar
[Main Camera Page] - [Dr. Tom's home page] -[Glendale Comm. College]
Page maintained by Tom Foley.  Tom's email: tom.foley@gcmail.maricopa.edu