# 3. Working toolbar¶

Working toolbar

The Working toolbar allows for displaying the Input image, creating temporary ROIs and classification previews.

The functions are described in detail in the following paragraphs, using these conventions:

= Input date

[I] = Input text

= List

= Input number

= Optional

= Configuration stored in the active project of QGIS

= Configuration stored in QGIS registry

= Slider

= Table

## 3.1. Image control¶

• : show the Interface Principal do Windows;
• : zoom the map to the extent of Input image;
• RGB= : use the button to show/hide the Input image in the map; from the list select a Composição colorida that is applied to the Input image; new color composites can be entered typing the band numbers separated by - or ; or , (e.g. RGB = 4-3-2 or RGB = 4;3;2 or RGB = 4,3,2);
• : display the input image stretching the minimum and maximum values according to cumulative count of current map extent;
• : display the input image stretching the minimum and maximum values according to standard deviation of current map extent;

## 3.2. Temporary ROI¶

A temporary ROI is a temporary polygon displayed in the map, which can be saved permanently in the Training input. A temporary ROI can be drawn manually or using a Region Growing Algorithm.

• : zoom the map to the extent of temporary ROI;
• ROI: use the button to show/hide the temporary ROI and the Training input in the map;
• : activate the pointer to create a temporary ROI by drawing a polygon in the map; left click on the map to define the ROI vertices and right click to define the last vertex closing the polygon; press the keyboard button CTRL to add a multipart polygon; press the keyboard buttons CTRL + Z for removing the last multipart polygon;
• : activate the pointer to create a temporary ROI using the region growing algorithm; left click on the map for creating the ROI; right click on the map for displaying the spectral signature of a pixel of the Input image in the Spectral Signature Plot; press the keyboard button CTRL to add a multipart polygon (new parts are not created if overlapping to other parts); press the keyboard buttons CTRL + Z for removing the last multipart polygon;
• : create a temporary ROI using the region growing algorithm at the same seed pixel as the previous one; it is useful after changing the region growing parameters;
Region growing parameters: the following parameters are required for the ROI creation using a region growing algorithm on the Input image:
• Dist : set the interval which defines the maximum spectral distance between the seed pixel and the surrounding pixels (in radiometry unit);
• Min : set the minimum area of a ROI (in pixel unit); this setting overrides the Range radius until the minimum ROI size is reached; if Rapid ROI on band is checked, then ROI will have at least the size defined Min ROI size; if Rapid ROI on band is unchecked, then ROI could have a size smaller than Min ROI size;
• Max : set the maximum width of a ROI (i.e. the side length of a square, centred at the seed pixel, which inscribes the ROI) in pixel unit;

## 3.3. Classification preview¶

Classification preview allows for displaying temporary classifications (i.e. classification previews). Classification previews are useful for testing the algorithm in a small area of the Input image, before classifying the entire image which can be time consuming (see Classification output).

Classification preview is performed according to the parameters defined in Algoritmo de classification.

In addition to the classification raster, an Algorithm raster can be displayed, which is useful for assessing the distance of a pixel classified as class X from the corresponding spectral signature X. In Classification previews, black pixels are distant from the corresponding spectral signature (i.e. probably a new ROI, or spectral signature, should be collected in that area) and white pixels are closer to the corresponding spectral signature (i.e. probably the spectral signature identifies correctly those pixels).

After the creation of a new preview, old previews are placed in QGIS Layers inside a layer group named Class_temp_group (custom name can be defined in Temporary group name) and are deleted when the QGIS session is closed.

WARNING: Classification previews are automatically deleted from disk when the QGIS session is closed; a QGIS message (that can be ignored) could ask for the path of missing layers when opening a previously saved project.
• : zoom the map to the extent of the last Classification preview;
• Preview: use the button to show/hide the last Classification preview in the map;
• : activate the pointer for the creation of a Classification preview; left click the map to start the classification process and display the classification preview; right click to start the classification process and show the Algorithm raster of the preview;
• : create a new Classification preview centred at the same pixel as the previous one;
• T : change dynamically the classification preview transparency, which is useful for comparing the classification to other layers;
• S : size of the preview in pixel unit (i.e. the side length of a square, centred at the clicked pixel);
• : remove from QGIS the classification previews that are archived in the Class_temp_group;