Package org.apache.sedona.common.utils
Class ImageUtils
java.lang.Object
org.apache.sedona.common.utils.ImageUtils
Utility functions for image processing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyRasterWithPadding(Raster sourceRaster, int sourceBand, WritableRaster destRaster, int destBand, double padValue) Copy a raster to another raster, with padding if necessary.
-
Method Details
-
copyRasterWithPadding
public static void copyRasterWithPadding(Raster sourceRaster, int sourceBand, WritableRaster destRaster, int destBand, double padValue) Copy a raster to another raster, with padding if necessary.- Parameters:
sourceRaster- the source rastersourceBand- the source banddestRaster- the destination raster, which must not be smaller than the source rasterdestBand- the destination bandpadValue- the padding value, or NaN if no padding is needed
-