Class RescaleOpImage

All Implemented Interfaces:
RenderedImage, ImageImageN, PropertyChangeEmitter, PropertySource, WritablePropertySource

public class RescaleOpImage extends PointOpImage
This class is used for rescaling the source image pixels with the given scale and offset factors. At the instantiation time this class checks if the input parameters are suitable for the Rescale operation. If the image data type is Byte, the rescale operation on every pixel value is pre-calculated and stored inside a byte array and the rescaling is effectively a simple lookup operation. For the other data types the Rescale operation is performed at runtime. The rescale operation is executed for each tile independently. If input ROI or NoData values are founded, then they are not rescaled, but the input destination No Data value is returned.
  • Constructor Details

    • RescaleOpImage

      public RescaleOpImage(RenderedImage source, ImageLayout layout, Map configuration, double[] valueScale, double[] valueOffsets, double destinationNoData, ROI roi, Range noData, boolean useROIAccessor)
  • Method Details

    • dispose

      public void dispose()
      Description copied from class: PointOpImage
      Disposes of any remaining tiles in the TileCache.

      If cache is non-null, in place operation is enabled, and tileRecycler is non-null, then all tiles owned by this specific image are removed from the cache. Subsequent to this super.dispose() is invoked.

      Overrides:
      dispose in class PointOpImage