The selection toolbar¶
The tools in this toolbar provides you the possibility to select features in the diagram. By default, the selected features will then be removed when you click the Apply or : guilabel:Remove button at the bottom of the straditizer window. The processing of the selection however varies depending on what task you are doing at the moment (for exaggerations, the selected features are for example marked as exaggerations).
The selection toolbar can select from different sources, provides differenti mouse tools, can be used in different modes provides additional automatic tools for the selection
Choosing the selection source¶
Using the combo box, you can also choose, where the features should be selected.
- Straditizer
If you choose the Straditizer, features will only be selected in the full image and the diagram part is untouched.
- Reader
If you choose the Reader, features will only be selected in the diagram image and the original image will be kept untouched
- Reader - Greyscale
The same as Reader, but whether too parts are connected or not is based on their color, not only on the binary image (see the
tool below).
Selection tools¶
Too facilitate the selection for you, we implemented several tools to select features in the image:
- select a rectangle or point

With this tool you can select everything within a rectangle or a single point
- select a polygon

This tool can be accessed through the context menu of the
tool (click and hold this button to open the menu). If activated and you
click on the image, hold the mouse button and drag it around the features
you want to select. Everything that is in the shape you draw while pressing
the mouse button will be selected.- select based on connectivity or functionality

This tool selects entire features in the image. The exact behaviour depends on what you are doing at the moment. If you hold and drag the mouse, you can select all features within a rectangle
In most cases, the tool just selects a feature based on the connectivity. If the selection source is the Straditizer or Reader - Greyscale, this connectivity is based on the greyscale image. For the Reader selection source, this is based on the binary image.
- select based on color

This tool can be accessed through the context menu of the
tool (click and hold this button to open the menu). If activated and you
click on the image, all connected cells that have the same color are
selected. You can also relax this a bit, such that all colors that are
close to the selected color will be selected. Furthermore, you can choose
the select the colors in the whole plot, i.e. all pixels that have the
same (or similar) color as the selected cell will be selected.- select the entire pixel row

This tool also can be accessed through the context menu of the
tool (click and hold this button to open the menu). If you click on the
image, all selectable features on this horizontal level (i.e. on this
pixel row in the image) are selected.- select the entire pixel column

Selection mode¶
What exatly happens when you use the selection tools desribed above depends on the selection mode that you are in. This can be one of
Automatic tools¶
The selection toolbar also provides you some automatic tools to facilitate the selection for you
- select all

Everything that can be selected will be selected
- expand selection

Every selected pixel will be expanded based on it’s connectivity (see the
tool above)- invert selection

Everything that is selected will be unselected and everything that was not previously selected will be selected
- clear selection

Everything will be unselected
- select everything to the right

For each selected pixel in a column of the diagram part, we also select everything that is to the right of this pixel
- select based on a template

This method uses the
skimage.feature.match_template()function to find a template within the current selection. This will then be selected or removed from the current selection based on the current mode.


