Class ReadPaddingCalculator

Object
ReadPaddingCalculator

public class ReadPaddingCalculator extends Object
Helper class to compute read padding to be applied when reading data for rendering, taking into account interpolation and oversampling.
  • Field Details

    • DEFAULT_PADDING

      public static final int DEFAULT_PADDING
      Default padding to be applied around the requested area to accommodate interpolation needs.
      See Also:
  • Constructor Details

  • Method Details

    • padGridGeometry

      public GridGeometry2D padGridGeometry(GridGeometry2D requestedGridGeometry) throws IOException
      Computes a new grid geometry padded according to the interpolation needs at the rendering resolution of the requested grid geometry.
      Parameters:
      requestedGridGeometry - the requested grid geometry
      Returns:
      the padded grid geometry
      Throws:
      IOException