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

Method primaryColor

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

Source from the content-addressed store, hash-verified

207 }
208
209 int primaryColor(int color, byte[] reds, byte[] greens, byte[] blues) {
210 for (int i=0; i<256; i++) {
211 if ((color&4)!=0)
212 reds[i] = (byte)i;
213 if ((color&2)!=0)
214 greens[i] = (byte)i;
215 if ((color&1)!=0)
216 blues[i] = (byte)i;
217 }
218 return 256;
219 }
220
221 int ice(byte[] reds, byte[] greens, byte[] blues) {
222 int[] r = {0,0,0,0,0,0,19,29,50,48,79,112,134,158,186,201,217,229,242,250,250,250,250,251,250,250,250,250,251,251,243,230};

Callers 1

getBuiltInLutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected