2.8. Foreground Select
| 2. Selectie Gereedschappen |

### 2.8. Foreground Select

Afbeelding 14.30. The “Foreground Select” tool in the Toolbox

This tool lets you extract the foreground from the active layer or from a selection. It is based on the SIOX method (Simple Interactive Object Extraction). You can visit its Web page at [SIOX].

#### 2.8.1. Directions for use

The creation of a selection with this tool works in a couple of steps:

1. Roughly select the foreground you want to extract. When you select this tool, the mouse pointer goes with the lasso icon. It actually works like the Fuzzy Select tool. Select as little as possible from the background.

   As soon as you release the mouse button, the non selected part of the image is covered with a dark blue mask. If the selection is not closed, its ends will be linked automatically together by a straight line. The mouse pointer goes now with the Paint-brush icon for the next step.

   Afbeelding 14.31. The foreground is roughly selected

2. Draw a line through the foreground: using the paintbrush, whose size can be changed in options, draw a continuous line in the selected foreground going over colors which will be kept for the extraction. The color used to draw the line is of no importance; not using the same color as foreground is better. Be careful not painting background pixels.

   Afbeelding 14.32. The line drawn on the foreground

   In this example, it is important that the line goes over the yellow capitulum of the flower.

3. When you release the mouse button, all non-selected areas are in dark:

   Afbeelding 14.33. The area which will be selected

4. You still have to press the Enter key to get the wanted selection:

   Afbeelding 14.34. Foreground is selected

| Opmerking
Until you press Enter, you can't undo this selection by Ctrl+Z nor by Select → None, and the Undo History is not concerned. To delete this selection, you must select another tool.

#### 2.8.2. Activating the Tool

You can activate the Foreground Select tool in two ways:

- by clicking on the tool icon in the Toolbox,

- through Tools → Selection Tools → Foreground Select in the image menu.

- This tool has no shortcut, but you can set one using Edit → Preferences → Interface → Configure Keyboard Shortcuts → Tools → Foreground Select

#### 2.8.3. Toetsencombinaties (Standaard instellingen)

Ctrl

  By pressing the Ctrl key, you can switching between foreground and background selection painting.

#### 2.8.4. Opties

Afbeelding 14.35. “Foreground Select” tool options

Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not, you can access them from the image menu bar through Windows → Dockable Windows → Tool Options which opens the option window of the selected tool.

Mode; Antialiasing; Feather edges

  | Opmerking
  Zie Selectie Gereedschappen voor meer informatie over eigenschappen die gelden voor alle selectie gereedschappen. Alleen opties specifiek voor het rechthoekselectie gereedschap worden hier besproken.

Contiguous

  If this option is enabled, only the area contiguous to the stroke will be selected. Otherwise all the areas with same colors will be selected.

  Afbeelding 14.36. “Contiguous” option effect

  Two separated areas with the same color. On the left, only the left area is marked.

  The Contiguous option is checked: only the area close to the painted line is selected.

  The Contiguous option is not checked: both areas, although they are separated, are selected.

Interactive refinement

  Here are some options to work more precisely on your selection:

  Mark foreground

    default option. The foreground color of the Toolbox is used to paint. Colors covered by the painted line will be used for extraction.

  Mark background

    You can access this option either by clicking on the radio button or, more simply, by pressing the Ctrl key. The mouse pointer goes with a small eraser icon. The used color is the background color of Toolbox. The pixels of the selection which have the same color as the “erased” pixels will NOT be extracted.

  Small brush / Large brush

    This slider lets you adapt the size of the brush used to paint the line. A small brush fits well thin details.

Smoothing

  Smaller values give a more accurate selection border but may introduce holes in the selection.

Preview color

  You can select between Red, Green and Blue to mask the image background.

Color Sensitivity

  This option uses the L*a*b color model. If your image contains many pixels of the same color in different tones, you can increase the sensibility of the selection for this color.

2.7. Intelligent Scissors |  | 3. Paint Tools

Report an error in Bugzilla