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

Method getImageStackSize

ij/src/main/java/ij/ImagePlus.java:1358–1366  ·  view source on GitHub ↗

If this is a stack, returns the actual number of images in the stack, else returns 1.

()

Source from the content-addressed store, hash-verified

1356
1357 /** If this is a stack, returns the actual number of images in the stack, else returns 1. */
1358 public int getImageStackSize() {
1359 if (stack==null)
1360 return 1;
1361 else {
1362 int slices = stack.size();
1363 if (slices==0) slices = 1;
1364 return slices;
1365 }
1366 }
1367
1368 /** Sets the 3rd, 4th and 5th dimensions, where
1369 <code>nChannels</code>*<code>nSlices</code>*<code>nFrames</code>

Callers 13

setDimensionsMethod · 0.95
verifyDimensionsMethod · 0.95
getFileInfoMethod · 0.95
runMethod · 0.95
runMethod · 0.95
getFileCountMethod · 0.95
runMethod · 0.95
CompositeImageMethod · 0.80
convertStackToHSMethod · 0.80
showDialogMethod · 0.80
showDialogMethod · 0.80
getImagesMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected