ReclassTransformer#
- class ReclassTransformer[source]#
Bases:
RasterTransformer
Maps class IDs in a label raster to other values.
Methods
__init__
(mapping)Constructor.
get_out_channels
(in_channels)Number of channels in output of
transform()
.get_out_dtype
(in_dtype)dtype of the output of
transform()
.transform
(chip)Reclassify a label raster using the given mapping.