Class Transferer.DoubleToDirect

java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.DoubleToDirect
Enclosing class:
Transferer

private static final class Transferer.DoubleToDirect extends Transferer
Read double values from the source and write double values directly in the target raster, without intermediate buffer. This strategy is possible only when the target raster uses the double type for storing sample values. This operation is executed in one step, without subdivisions in strips.
  • Field Details

  • Constructor Details

    • DoubleToDirect

      DoubleToDirect(Raster source, WritableRaster target, Rectangle aoi)
      Creates a new instance for transferring data between the two specified rasters.
  • Method Details

    • computeStrip

      void computeStrip(org.opengis.referencing.operation.MathTransform1D converter) throws org.opengis.referencing.operation.TransformException
      Copies source values directly in the target, then applies the conversion in-place.
      Specified by:
      computeStrip in class Transferer
      Parameters:
      converter - the operation to apply on sample values in current region and current band number.
      Throws:
      org.opengis.referencing.operation.TransformException - if an error occurred during calculation.