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

Method getNDimensions

ij/src/main/java/ij/ImagePlus.java:1410–1417  ·  view source on GitHub ↗

Returns the number of dimensions (2, 3, 4 or 5).

()

Source from the content-addressed store, hash-verified

1408
1409 /** Returns the number of dimensions (2, 3, 4 or 5). */
1410 public int getNDimensions() {
1411 int dimensions = 2;
1412 int[] dim = getDimensions(true);
1413 if (dim[2]>1) dimensions++;
1414 if (dim[3]>1) dimensions++;
1415 if (dim[4]>1) dimensions++;
1416 return dimensions;
1417 }
1418
1419 /** Returns 'true' if this is a hyperstack currently being displayed in a StackWindow. */
1420 public boolean isDisplayedHyperStack() {

Callers 3

isHyperStackMethod · 0.95
runMethod · 0.95
splitMethod · 0.95

Calls 1

getDimensionsMethod · 0.95

Tested by

no test coverage detected