2.8. Foreground Select
| 2. 選択ツール |

### 2.8. Foreground Select

図 13.24. 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.

   図 13.25. 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.

   図 13.26. 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:

   図 13.27. The area which will be selected

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

   図 13.28. Foreground is selected

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

Ctrl

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

#### 2.8.4. Options

図 13.29. 「Foreground Select」 tool options

一般的にはこのツールを起用すると、 そのツールオプションがツールボックスの下に繋げられたウィンドウ上に現れます。 そのようなウィンドウが見あたらないときは、 画像ウィンドウのメニューより ウィンドウ → ドッキング可能なダイアログ → ツールオプション と辿れば今使っているツールのツールオプションウィンドウが開きます。

Mode; Antialiasing; Feather edges

  | 注意
  選択ツールに共通して使えるオプションについては 選択ツール をお読みください。 ここではこのツールに特有のオプションについてのみ取り上げます。

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.

  図 13.30. 「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

  The slider lets you remove small holes in your selection.

  図 13.31. 「Smoothing」 option effect

  For this demonstration, small holes painted with the background color of the image have been added (left).

  Smoothing = 0 : more than 1 pixel wide holes are not selected.

  Smoothing = 7 : less than 3 pixels wide holes are selected.

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. 電脳はさみ |  | 3. ブラシツール