Class Transferer.FloatToDirect

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

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

    • buffer

      private final DataBufferFloat buffer
      Data buffer of target raster.
  • Constructor Details

    • FloatToDirect

      FloatToDirect(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.