class MinMaxTransformer[source]#

Bases: RasterTransformer

Transforms chips by scaling values in each channel to span 0-255.




transform(chip[, channel_order])

Transform a chip of a raster source.

transform(chip: ndarray, channel_order: Optional[List[int]] = None) ndarray[source]#

Transform a chip of a raster source.

  • chip (ndarray) – ndarray of shape [height, width, channels] This is assumed to already have the channel_order applied to it if channel_order is set. In other words, channels should be equal to len(channel_order).

  • channel_order (Optional[List[int]]) – list of indices of channels that were extracted from the raw imagery.


Array of shape (…, H, W, C)

Return type