MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / rgb332

Method rgb332

ij/src/main/java/ij/plugin/LutLoader.java:257–265  ·  view source on GitHub ↗
(byte[] reds, byte[] greens, byte[] blues)

Source from the content-addressed store, hash-verified

255 */
256
257 int rgb332(byte[] reds, byte[] greens, byte[] blues) {
258 Color c;
259 for (int i=0; i<256; i++) {
260 reds[i] = (byte)(i&0xe0);
261 greens[i] = (byte)((i<<3)&0xe0);
262 blues[i] = (byte)((i<<6)&0xc0);
263 }
264 return 256;
265 }
266
267 int redGreen(byte[] reds, byte[] greens, byte[] blues) {
268 for (int i=0; i<128; i++) {

Callers 1

getBuiltInLutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected