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

Method updateLut

ij/src/main/java/ij/plugin/LUT_Editor.java:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 void updateLut() {
285 IndexColorModel cm = (IndexColorModel)imp.getChannelProcessor().getColorModel();
286 if (mapSize == 0)
287 return;
288 cm.getReds(reds);
289 cm.getGreens(greens);
290 cm.getBlues(blues);
291 for(int i=0; i<mapSize; i++)
292 c[i] = new Color(reds[i]&255, greens[i]&255, blues[i]&255);
293 }
294
295 void invert() {
296 byte[] reds2 = new byte[mapSize];

Callers 1

paintMethod · 0.95

Calls 5

getColorModelMethod · 0.45
getChannelProcessorMethod · 0.45
getRedsMethod · 0.45
getGreensMethod · 0.45
getBluesMethod · 0.45

Tested by

no test coverage detected