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

Method getCount

ij/src/main/java/ij/io/ImageWriter.java:188–199  ·  view source on GitHub ↗
(long imageSize)

Source from the content-addressed store, hash-verified

186 }
187
188 private int getCount(long imageSize) {
189 if (savingStack || imageSize<4L)
190 return (int)imageSize;
191 int count = (int)(imageSize/50L);
192 if (count<65536)
193 count = 65536;
194 if (count>imageSize)
195 count = (int)imageSize;
196 count = (count/4)*4;
197 if (IJ.debugMode) IJ.log("ImageWriter: "+imageSize+" "+count+" "+imageSize/50);
198 return count;
199 }
200
201 void writeFloatStack(OutputStream out, Object[] stack) throws IOException {
202 showProgressBar = false;

Callers 3

write8BitImageMethod · 0.95
write16BitImageMethod · 0.95
writeFloatImageMethod · 0.95

Calls 1

logMethod · 0.95

Tested by

no test coverage detected