tableData[i] = (short) (((int) (y * (tableData.length - 1) + 0.5)) & 0xffff);
}
return table = source.getColorModel().getNumColorComponents() == 3
&& scale == LuminosityScale ?
new LightnessLookupTable(tableData, true) :
new LookupTableJAI(tableData, true);
}