This tab allows for the reclassification (i.e. assigning a new class code to raster pixels). In particular, it eases the conversion from C ID to MC ID values.
This tool supports virtual raster output
; if the output file name ends
with .vrt
then the output is created as virtual raster composed of as many
.tif
files as the number of CPU threads defined in
:ref:`system_processing`; for large rasters this can speed up the process.
Tip
Information about APIs of this tool in Remotior Sensus at this link .
Tool symbol and name | Description |
---|---|
:guilabel:`Select the classification` | select a classification raster (already loaded in QGIS) |
refresh layer list |
Tool symbol and name | Description |
---|---|
:guilabel:`calculate C ID to MC ID values` | if checked, the reclassification table is filled according to the :ref:`ROI_list` when :guilabel:`Calculate unique values` is clicked |
:guilabel:`Calculate unique values` | calculate unique values in the classification and fill the reclassification table |
:guilabel:`Incremental new values` | calculate a new incremental value (e.g. 1, 2, 3, ...) for every old value and fill the reclassification table |
add a row to the table | |
remove highlighted rows from the table | |
import rules from a text file .csv separated by comma having the
following structure Old_value,New_value (where Old_value cam be
also an expression and New_value is an integer value) for instance::
raster < 1,1
(raster > 1) & (raster < 3),2
raster < 3,3 |
|
export the reclassification table to a text file (.csv) that can be imported later |
The reclassification table is structured with the following fields.
Old value | New value |
---|---|
value or expression defining old values to be reclassified | integer value for the corresponding Old value |
Old value
can be a value or an expressions defined using the variable name
raster
(custom names can be defined in :ref:`variable_name` ),
following Python operators (e.g.:
raster > 3
select all pixels having value > 3 ;(raster > 5) | (raster < 2)
select all pixels having value > 5 or < 2 ;(raster >= 2) & (raster <= 5)
select all pixel values between 2 and 5.
Tool symbol and name | Description |
---|---|
:guilabel:`Use code from Signature list` |
|
Tool symbol and name | Description |
---|---|
:guilabel:`Script` | add this function to the :ref:`script_tab` |
:guilabel:`RUN` | run this function |