Class RandomIterFallbackShort

Object
RandomIterFallbackShort
All Implemented Interfaces:
RandomIter

public class RandomIterFallbackShort extends Object implements RandomIter
Slight modified version of ImageN RandomIterFallbackNoCacheNoArray that uses short vectors to handle indexes rather than int vector. This way we use 2x2 times less memory in the iterator
Author:
Simone Giannecchini, GeoSolutions SAS
  • Constructor Details

  • Method Details

    • getSample

      public int getSample(int x, int y, int b)
      Specified by:
      getSample in interface RandomIter
    • getSampleFloat

      public float getSampleFloat(int x, int y, int b)
      Specified by:
      getSampleFloat in interface RandomIter
    • getSampleDouble

      public double getSampleDouble(int x, int y, int b)
      Specified by:
      getSampleDouble in interface RandomIter
    • getPixel

      public int[] getPixel(int x, int y, int[] iArray)
      Specified by:
      getPixel in interface RandomIter
    • getPixel

      public float[] getPixel(int x, int y, float[] fArray)
      Specified by:
      getPixel in interface RandomIter
    • getPixel

      public double[] getPixel(int x, int y, double[] dArray)
      Specified by:
      getPixel in interface RandomIter
    • done

      public void done()
      Specified by:
      done in interface RandomIter