ColorScaler scaler = new ColorScaler();
scaler.loadScalingData(src, null);
float tmpData[][] = scaler.scaleNormalize(src);
// Get source and destination color spaces
ColorSpace srcCS = (srcPf == null) ?
(ColorSpace) first:
new ICC_ColorSpace(srcPf);
ColorSpace dstCS = (dstPf == null) ?
(ColorSpace) last:
new ICC_ColorSpace(dstPf);
applySequence(sequence, tmpData, srcCS, dstCS);