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

Method getBytes

ij/src/main/java/ij/process/LUT.java:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 public byte[] getBytes() {
58 int size = getMapSize();
59 if (size!=256) return null;
60 byte[] bytes = new byte[256*3];
61 for (int i=0; i<256; i++) bytes[i] = (byte)getRed(i);
62 for (int i=0; i<256; i++) bytes[256+i] = (byte)getGreen(i);
63 for (int i=0; i<256; i++) bytes[512+i] = (byte)getBlue(i);
64 return bytes;
65 }
66
67 public LUT createInvertedLut() {
68 int mapSize = getMapSize();

Callers 13

saveMPTableMethod · 0.45
writeStringMethod · 0.45
sendMessageMethod · 0.45
makeDescriptionStringMethod · 0.45
setPropertiesMethod · 0.45
LutsDifferMethod · 0.45
getHashMethod · 0.45
serializeAperturesMethod · 0.45

Calls 4

getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80
getMapSizeMethod · 0.45

Tested by

no test coverage detected