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

Method getDimensions

ij/src/main/java/ij/macro/Functions.java:5274–5287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5272 }
5273
5274 private void getDimensions() {
5275 Variable width = getFirstVariable();
5276 Variable height = getNextVariable();
5277 Variable channels = getNextVariable();
5278 Variable slices = getNextVariable();
5279 Variable frames = getLastVariable();
5280 ImagePlus imp = getImage();
5281 int[] dim = imp.getDimensions();
5282 width.setValue(dim[0]);
5283 height.setValue(dim[1]);
5284 channels.setValue(dim[2]);
5285 slices.setValue(dim[3]);
5286 frames.setValue(dim[4]);
5287 }
5288
5289 public static void registerExtensions(MacroExtension extensions) {
5290 if (IJ.debugMode) IJ.log("registerExtensions");

Callers 13

doFunctionMethod · 0.95
doStackMethod · 0.95
duplicateStackMethod · 0.45
groupZProjectMethod · 0.45
runMethod · 0.45
convertHSToStackMethod · 0.45
createNewStackMethod · 0.45
runMethod · 0.45
runMethod · 0.45
showOutputMethod · 0.45
setupMethod · 0.45
addScrollbarsMethod · 0.45

Calls 6

getFirstVariableMethod · 0.95
getNextVariableMethod · 0.95
getLastVariableMethod · 0.95
getImageMethod · 0.95
getDimensionsMethod · 0.95
setValueMethod · 0.95

Tested by

no test coverage detected