invert[j] = (short)((255-j) * 255);
ordered[j] = (short)(j * 255);
}
if (op.equals("lookup1short")) {
ictx.bufImgOp =
new LookupOp(new ShortLookupTable(0, invert),
null);
} else { // (op.equals("lookup3short"))
short[][] yellowInvert =
new short[][] { invert, invert, ordered };
ictx.bufImgOp =
new LookupOp(new ShortLookupTable(0, yellowInvert),
null);
}
}
} else if (op.equals("rescale1band")) {
ictx.bufImgOp = new RescaleOp(0.5f, 10.0f, null);