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

Method spectrum

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

Source from the content-addressed store, hash-verified

231 }
232
233 int spectrum(byte[] reds, byte[] greens, byte[] blues) {
234 Color c;
235 for (int i=0; i<256; i++) {
236 c = Color.getHSBColor(i/255f, 1f, 1f);
237 reds[i] = (byte)c.getRed();
238 greens[i] = (byte)c.getGreen();
239 blues[i] = (byte)c.getBlue();
240 }
241 return 256;
242 }
243
244 /*
245 int spectrum(byte[] reds, byte[] greens, byte[] blues) {

Callers 1

getBuiltInLutMethod · 0.95

Calls 3

getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80

Tested by

no test coverage detected