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

Method write16gs

ij/src/main/java/ij/plugin/PNG_Writer.java:101–106  ·  view source on GitHub ↗
(ImagePlus imp, String path)

Source from the content-addressed store, hash-verified

99 }
100
101 void write16gs(ImagePlus imp, String path) throws Exception {
102 ShortProcessor sp = (ShortProcessor)imp.getProcessor();
103 BufferedImage bi = sp.get16BitBufferedImage();
104 File f = new File(path);
105 ImageIO.write(bi, "png", f);
106 }
107}

Callers 1

writeImageMethod · 0.95

Calls 3

get16BitBufferedImageMethod · 0.95
writeMethod · 0.65
getProcessorMethod · 0.45

Tested by

no test coverage detected