// 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;