
Simple steps to using Layer Masks
Beginner level tutorial using Gimp 2.6
Do you have a coloured image that you would like to edit so that important objects will stand out from a distracting colourful background? If you have a picture that would have more impact if selected features were in full colour but the background was desaturated to black-and-white, this tutorial will show you one way to do that.
Open the image in the Gimp. 'Save as' and give it a new name; now the original image will remain unchanged, leaving you free to play without fear of destroying the original.
---------
Steps:
Create a duplicate layer. Layer > Duplicate layer
Desaturate the duplicate layer. Colours > Desaturate, click OK. Now the duplicate layer looks black, white and grey.
Create a layer mask between the two layers of the image. Layer > Mask > Add layer mask. A dialogue box appears. You want an opaque mask so select "White (full opacity)". Click Add.
The workspace will now look something like this:

Look at the Layers, Channels & Paths dialogue. The coloured bar that indicates which layer is presently active (the upper layer in this case) now includes a white square on the right-hand side of the thumbnail image. The presence of the square tells you that there is a layer mask, and the white colour indicates that it is an opaque mask.
In the Toolbox, check to make sure the foreground colour is black. Select the Paintbrush tool and choose a plain round brush. Make it fairly large. Set opacity to 100%.
Now brush over an area of the picture where you want colour to appear. Amazing - you are painting with black but because you are painting on the layer mask all the original colours appear where the brush has passed.
You can think of it like this - the opaque layer mask is like a sheet of white paper between two photographs (the layers of the image). Black paint has the magical ability to dissolve paper, not only the white paper of the mask, but also the paper directly above where black is applied. Black paint makes holes in the upper photograph and the white paper, allowing you to see through to the lower photograph.
Go ahead and paint over all the parts of the picture where you want colour to show through.

If you accidentally 'colour outside the lines' you can easily fix things. Change the paint colour to white. Use the x key on the keyboard to toggle black/white as the foreground colour. Painting white over the mistake appears to remove the colour because you are painting on the mask and making the painted area white (opaque) again. To help you remember, think 'Black paint dissolves paper and White-out magically repairs it'.
-------------
Further exploration:
If you want parts of the picture to show a little bit of colour, then you can paint on the layer mask with grey to allow a small amount of colour to show through. Darker shades of grey allow more colour, paler shades of grey are more opaque and allow less colour.
If you want a hint of background colour over the whole picture, adjust the opacity in the Layers dialogue. Opacity set at about 75% in the example gives a bit of colour in the background, looking less stark than the B&W version while still providing enough contrast to show the subject vividly.
Tip:
There is a keyboard shortcut so you can quickly increase or decrease the size of the paintbrush. Press and hold the ] key to scale up the size of the brush, and use the [ key to make it smaller.