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

Method LookUpTable

ij/src/main/java/ij/LookUpTable.java:21–29  ·  view source on GitHub ↗

Constructs a LookUpTable object from an AWT Image.

(Image img)

Source from the content-addressed store, hash-verified

19
20 /** Constructs a LookUpTable object from an AWT Image. */
21 public LookUpTable(Image img) {
22 PixelGrabber pg = new PixelGrabber(img, 0, 0, 1, 1, false);
23 try {
24 pg.grabPixels();
25 cm = pg.getColorModel();
26 }
27 catch (InterruptedException e){};
28 getColors(cm);
29 }
30
31 /** Constructs a LookUpTable object from a ColorModel. */
32 public LookUpTable(ColorModel cm) {

Callers

nothing calls this directly

Calls 2

getColorsMethod · 0.95
getColorModelMethod · 0.45

Tested by

no test coverage detected