remapDirectory: Remap pixel values of all images within a directory

Description Usage Arguments Details See Also

View source: R/block.R

Description

create a directory with the classifications, replacing each pixel of each image by a given set of values. Every value in the original image must be mapped, even if the updated value is the same.

Usage

1
remapDirectory(inputDir, outputDir, replacements, overwrite = FALSE)

Arguments

inputDir

Input directory. It must be a relative path within baseDir().

outputDir

Output directory. It will be cleaned before processing the files. It must also be a relative path within baseDir().

replacements

A vector with the code of classes to be remapped according to its position.

overwrite

Should output files be overwritten?

legend

A legend, that can be created with readLegend().

Details

This function also creates a qml file with the colors of the pixels.

See Also

remapRaster()


pedro-andrade-inpe/sits.validate documentation built on Dec. 4, 2019, 3:02 p.m.