Mask+with+Threshold

//**Using Threshold and Quick Mask to create a selection mask**// That's not always the case, but an element you want to extract from an image can stand out well against the background. In this case, you can use the Threshold tool to select this element as a whole. Grokking the GIMP described a method based on a channel mask, but now, using the [|Quick mask] is easier. First start decomposing you image into its RGB and HSV components by using the [|Decompose] filter. A new grey-scaled image is created and the components are displayed as layers in the Layer Dialog. These layers come with a thumbnail but it is too small for an easy study. You can, of course, increase the size of this preview with the dialog menu (the small triangular button), but playing with the “eyes ” is more simple to display the wanted layer in the decompose image. Select the layer that isolates the element the best. Call the Threshold tool from the decompose image. By moving the black cursor, fit threshold to isolate the best the element you want to extract. This will probably not be perfect: we will enhance the result with the selection mask we are going to create. > || Make sure you have selected the right layer when you call the Threshold tool: when it is opened, you can't change to another layer. We got the best outline for our flower. There are several red objects which we must remove. Make sure the image displaying the selected layer is active and copy it to the clipboard with **Ctrl**-**C**. Now, make the original image active. Click on the Quick Mask button at the bottom-left corner of the image window: the image gets covered with a red (default) translucent mask. This red color does not suit well to our image with much red: go to the Channel Dialog, activate the “Quick mask” channel and change this color with the Edit Channel Attributs. Come back to the original image. Press **Ctrl**-**V** to paste the previously copied layer. Voilà. Your selection mask is ready: you can improve the selection as usually. When the selection is ready, disable the Quick mask by clicking again on its button: you will see the marching ants around the selection. We used the Zoom to work at a pixel level, the Lasso to remove large unwanted areas, the pencil (to get hard limits), black paint to remove selected areas, white paint to add selected areas, especially for stem.
 * Figure 13.68. The original image, the decompose image and its Layer Dialog**
 * [[image:http://docs.gimp.org/images/warning.png]] ||~ Warning ||
 * Figure 13.69. The selected layer after threshold fit**
 * Figure 13.69. The selected layer after threshold fit**
 * Figure 13.70. The mask**
 * Figure 13.71. The result**