/** Convers an Index16ColorModel to a 2D short array. */ public static short[][] getLookupTable(ColorModel model) { if (!(model instanceof Index16ColorModel)) return null; Index16ColorModel m = (Index16ColorModel) model; short[][] lut = new short[3][]; lut[0] = m.getReds(); lut[1] = m.getGreens(); lut[2] = m.getBlues(); return lut; }
/** Convers an Index16ColorModel to a 2D short array. */ public static short[][] getLookupTable(ColorModel model) { if (!(model instanceof Index16ColorModel)) return null; Index16ColorModel m = (Index16ColorModel) model; short[][] lut = new short[3][]; lut[0] = m.getReds(); lut[1] = m.getGreens(); lut[2] = m.getBlues(); return lut; }