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

Method getSize

ij/src/main/java/ij/plugin/Slicer.java:698–708  ·  view source on GitHub ↗
(double inSpacing, double outSpacing, int count)

Source from the content-addressed store, hash-verified

696 }
697
698 String getSize(double inSpacing, double outSpacing, int count) {
699 int size = getOutputStackSize(inSpacing, outSpacing, count);
700 int mem = getAvailableMemory();
701 String available = mem!=-1?" ("+mem+"MB free)":"";
702 if (message!=null)
703 message.setForeground(mem!=-1&&size>mem?Color.red:Color.black);
704 if (size>0)
705 return size+"MB"+available;
706 else
707 return "<1MB"+available;
708 }
709
710 void makePolygon(int count, double outSpacing) {
711 int[] x = new int[4];

Callers 2

showDialogMethod · 0.95
updateSizeMethod · 0.95

Calls 2

getOutputStackSizeMethod · 0.95
getAvailableMemoryMethod · 0.95

Tested by

no test coverage detected