/** * Constructs a single-banded double lookup table with an index offset. * * @param data The single-banded double data. * @param offset The offset. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded double lookup table. The index offset for each band is 0. * * @param data The multi-banded double data in [band][index] format. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[][] data) { return new LookupTable(data); }
/** * Constructs a multi-banded double lookup table where all bands have the same index offset. * * @param data The multi-banded double data in [band][index] format. * @param offset The common offset for all bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[][] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded double lookup table where each band has a different index offset. * * @param data The multi-banded double data in [band][index] format. * @param offsets The offsets for the bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[][] data, int[] offsets) { return new LookupTable(data, offsets); }
/** * Constructs a single-banded double lookup table with an index offset. * * @param data The single-banded double data. * @param offset The offset. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded byte lookup table. The index offset for each band is 0. * * @param data The multi-banded byte data in [band][index] format. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(byte[][] data) { return new LookupTable(data); }
/** * Constructs a single-banded int lookup table with an index offset. * * @param data The single-banded int data. * @param offset The offset. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(int[] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded float lookup table where all bands have the same index offset. * * @param data The multi-banded float data in [band][index] format. * @param offset The common offset for all bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(float[][] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded byte lookup table. The index offset for each band is 0. * * @param data The multi-banded byte data in [band][index] format. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(byte[][] data) { return new LookupTable(data); }
/** * Constructs a multi-banded byte lookup table where each band has a different index offset. * * @param data The multi-banded byte data in [band][index] format. * @param offsets The offsets for the bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(byte[][] data, int[] offsets) { return new LookupTable(data, offsets); }
/** * Constructs a single-banded short or unsigned short lookup table. The index offset is 0. * * @param data The single-banded short data. * @param isUShort True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(short[] data, boolean isUShort) { return new LookupTable(data, isUShort); }
/** * Constructs a single-banded int lookup table. The index offset is 0. * * @param data The single-banded int data. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(int[] data) { return new LookupTable(data); }
/** * Constructs a multi-banded int lookup table where all bands have the same index offset. * * @param data The multi-banded int data in [band][index] format. * @param offset The common offset for all bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(int[][] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded double lookup table where each band has a different index offset. * * @param data The multi-banded double data in [band][index] format. * @param offsets The offsets for the bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(double[][] data, int[] offsets) { return new LookupTable(data, offsets); }
/** * Constructs a multi-banded byte lookup table where all bands have the same index offset. * * @param data The multi-banded byte data in [band][index] format. * @param offset The common offset for all bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(byte[][] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a single-banded short or unsigned short lookup table with an index offset. * * @param data The single-banded short data. * @param offset The offset. * @param isUShort True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(short[] data, int offset, boolean isUShort) { return new LookupTable(data, offset, isUShort); }
/** * Constructs a multi-banded short or unsigned short lookup table. The index offset for each band is 0. * * @param data The multi-banded short data in [band][index] format. * @param isUShort True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(short[][] data, boolean isUShort) { return new LookupTable(data, isUShort); }
/** * Constructs a multi-banded int lookup table where all bands have the same index offset. * * @param data The multi-banded int data in [band][index] format. * @param offset The common offset for all bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(int[][] data, int offset) { return new LookupTable(data, offset); }
/** * Constructs a multi-banded float lookup table where each band has a different index offset. * * @param data The multi-banded float data in [band][index] format. * @param offsets The offsets for the bands. * @throws IllegalArgumentException if data is null. */ public static LookupTable create(float[][] data, int[] offsets) { return new LookupTable(data, offsets); }
public void testNullDataInt(int[] data1D, int[][] data2D, int offset, int[] offsetArray) { if(data1D==null && data2D == null){ LookupTable table = new LookupTable(data1D); }else if(data1D!=null && data2D == null && offset!=0){ LookupTable table = new LookupTable(data2D,offset); }else if(data1D!=null && data2D == null && offsetArray !=null){ LookupTable table = new LookupTable(data2D,offsetArray); }else if(data1D!=null && data2D == null){ LookupTable table = new LookupTable(data2D); } }