pub fn parallel_transform_raster<F>(
input: &RasterBuffer,
output_type: RasterDataType,
func: F,
) -> Result<RasterBuffer>Expand description
Transform a raster using a parallel transformation
This is similar to parallel_map_raster but operates on the raw byte data
for maximum performance when the transformation can work directly on bytes.
§Arguments
input- Input raster bufferoutput_type- Output data typefunc- Transformation function
§Returns
A new raster buffer with the transformed values
§Errors
Returns an error if transformation fails