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

Method getColors

ij/src/main/java/ij/LookUpTable.java:37–48  ·  view source on GitHub ↗
(ColorModel cm)

Source from the content-addressed store, hash-verified

35 }
36
37 void getColors(ColorModel cm) {
38 if (cm instanceof IndexColorModel) {
39 IndexColorModel m = (IndexColorModel)cm;
40 mapSize = m.getMapSize();
41 rLUT = new byte[mapSize];
42 gLUT = new byte[mapSize];
43 bLUT = new byte[mapSize];
44 m.getReds(rLUT);
45 m.getGreens(gLUT);
46 m.getBlues(bLUT);
47 }
48 }
49
50 public int getMapSize() {
51 return mapSize;

Callers 1

LookUpTableMethod · 0.95

Calls 4

getMapSizeMethod · 0.45
getRedsMethod · 0.45
getGreensMethod · 0.45
getBluesMethod · 0.45

Tested by

no test coverage detected