2.8. Izbor ospredja
| 2. Orodja izbiranja |

### 2.8. Izbor ospredja

Slika 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. Navodila za uporabo

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.

   Slika 14.31. Ospredje je v grobem izbrano

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.

   Slika 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:

   Slika 14.33. The area which will be selected

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

   Slika 14.34. Ospredje je izbrano

| Opomba
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. Aktiviranje orodja

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. Key modifiers (Defaults)

Ctrl

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

#### 2.8.4. Možnosti

Slika 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

  | Opomba
  See Selection Tools for help with options that are common to all these tools. Only options that are specific to this tool are explained here.

Zvezno

  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.

  Slika 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.

Interaktivno izboljševanje

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

  Označi ospredje

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

  Označi ozadje

    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.

  Majhen čopič / Velik čopič

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

Glajenje

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

Predogledna barva

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

Barvna občutljivost

  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. Pametne škarje |  | 3. Orodja barvanja

Report an error in Bugzilla