Package org.jaitools.numeric

Examples of org.jaitools.numeric.Range


    final boolean useCustomOutputPixelValues = outputPixelValues != null && outputPixelValues.length == size;

    Class<? extends Number> widestClass = noDataValue.getClass();

    for (int i = 0; i < size; i++) {
      final Range range = classificationRanges.get(i);
      final Class<? extends Number> rangeClass = range.getMin().getClass();

      if (widestClass != rangeClass) {
        widestClass = ClassChanger.getWidestClass(widestClass, rangeClass);
      }

      final int reference = useCustomOutputPixelValues ? outputPixelValues [i] : i + 1;

      rltBuilder.add(range, convert(reference, noDataValue.getClass()));
    }

    // Add the largest range that contains the no data value
    rltBuilder.add(new Range(getClassMinimum(widestClass), true, getClassMaximum(widestClass), true), noDataValue);

    return rltBuilder.build();
  }
View Full Code Here


        0,
        true,
        null,
        null,
        new ArrayList<Range>() {{
            add(new Range(0d,true, 1000d,false));
            add(new Range(1000d,true, 2000d,false));
        }},
        new NullProgressListener());
   

    assertNotNull(fc);
View Full Code Here

TOP

Related Classes of org.jaitools.numeric.Range

Copyright © 2018 www.massapicom. 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.