3.4.6.5. Reclasificación

_images/reclassification_tab.png

Reclasificación

Esta pestaña permite la reclasificación (i.e. asignando un código de Clase nuevo a los pixeles ráster). En particular, facilita la conversión desde los valores C ID a MC ID.

Esta herramienta admite “”salida ráster virtual””; si el nombre del archivo de salida termina con “”.vrt””, la salida se crea como ráster virtual compuesto por varios archivos “”.tif”” como el número de subprocesos de CPU definidos en :ref:”system_processing”; para rásteres grandes, esto puede acelerar el proceso.

Truco

Information about APIs of this tool in Remotior Sensus at this link .

3.4.6.5.1. Clasificación cruzada

Símbolo de la herramienta y nombre

Descripción

Selecciona la clasificación lista_entrada

selecciona un raster de clasificación (ya cargado en QGIS)

|recarga|

refresca la lista de capas

3.4.6.5.2. Valores

Símbolo de la herramienta y nombre

Descripción

casilla de confirmación calculate C ID to MC ID values

if checked, the reclassification table is filled according to the ROI & Signature list when Calculate unique values ingresar is clicked

Calculate unique values ingresar

calculate unique values in the classification and fill the reclassification table

Incremental new values ingresar

calculate a new incremental value (e.g. 1, 2, 3, …) for every old value and fill the reclassification table

agregar

add a row to the table

quitar

remove highlighted rows from the table

importar

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

exportar

export the reclassification table to a text file (.csv) that can be imported later

The reclassification table is structured with the following fields.

Valor antiguo

Valor Nuevo

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 Variable name for expressions ), 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.

3.4.6.5.3. Simbología

Símbolo de la herramienta y nombre

Descripción

casilla de confirmación Use code from Signature list lista_entrada

if checked, color and class information are defined from ROI & Signature list:
  • MC ID: use the ID of macroclasses

  • C ID: use the ID of classes

3.4.6.5.4. Ejecutar

Símbolo de la herramienta y nombre

Descripción

Script herramienta_script

añadir está función al Script

EJECUTAR ejecutar

ejecutar esta función