Examples of RangeLookupTable


Examples of jaitools.media.jai.rangelookup.RangeLookupTable

        // Check the number of ranges we have in order to decide which type we can use for the output values.
        // Our goal is to use the smallest possible data type that can hold the image values.
        //
       
        // Builds the range lookup table
        final RangeLookupTable lookupTable;
        final int size=classificationRanges.size();
        switch (ColorUtilities.getTransferType(size)) {
    case DataBuffer.TYPE_BYTE:
      lookupTable = CoverageUtilities.getRangeLookupTable(classificationRanges, (byte)0 );
      break;
View Full Code Here

Examples of jaitools.media.jai.rangelookup.RangeLookupTable

  public static RangeLookupTable getRangeLookupTable(
          final List<Range> classificationRanges,
          final Number noDataValue,
          final Class clazz) {
   
      final RangeLookupTable rlt = new RangeLookupTable(noDataValue);
      final int size= classificationRanges.size();
      for (int i = 0; i < size; i++) {
          rlt.add(classificationRanges.get(i), convert(i + 1, noDataValue.getClass()));
      }
      return rlt;
  }
View Full Code Here

Examples of org.jaitools.media.jai.rangelookup.RangeLookupTable

        // Check the number of ranges we have in order to decide which type we can use for the output values.
        // Our goal is to use the smallest possible data type that can hold the image values.
        //
       
        // Builds the range lookup table
        final RangeLookupTable lookupTable;
        final int size=classificationRanges.size();
        switch (ColorUtilities.getTransferType(size)) {
    case DataBuffer.TYPE_BYTE:
      lookupTable = CoverageUtilities.getRangeLookupTable(classificationRanges, outputPixelValues, (byte) nd );
      break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.