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

Method redGreen

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

Source from the content-addressed store, hash-verified

265 }
266
267 int redGreen(byte[] reds, byte[] greens, byte[] blues) {
268 for (int i=0; i<128; i++) {
269 reds[i] = (byte)(i*2);
270 greens[i] = (byte)0;
271 blues[i] = (byte)0;
272 }
273 for (int i=128; i<256; i++) {
274 reds[i] = (byte)0;
275 greens[i] = (byte)(i*2);
276 blues[i] = (byte)0;
277 }
278 return 256;
279 }
280
281 void interpolate(byte[] reds, byte[] greens, byte[] blues, int nColors) {
282 byte[] r = new byte[nColors];

Callers 1

getBuiltInLutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected