Class ImageUtils

java.lang.Object
org.apache.sedona.common.utils.ImageUtils

public class ImageUtils extends Object
Utility functions for image processing.
  • 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 raster
      sourceBand - the source band
      destRaster - the destination raster, which must not be smaller than the source raster
      destBand - the destination band
      padValue - the padding value, or NaN if no padding is needed