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

Method getStackSize

ij/src/main/java/ij/ImagePlus.java:1347–1355  ·  view source on GitHub ↗

Returns the number of stack images.

()

Source from the content-addressed store, hash-verified

1345
1346 /** Returns the number of stack images. */
1347 public int getStackSize() {
1348 if (stack==null || oneSliceStack)
1349 return 1;
1350 else {
1351 int slices = stack.size();
1352 if (slices<=0) slices = 1;
1353 return slices;
1354 }
1355 }
1356
1357 /** If this is a stack, returns the actual number of images in the stack, else returns 1. */
1358 public int getImageStackSize() {

Callers 15

ImagePlusMethod · 0.95
showMethod · 0.95
invertLookupTableMethod · 0.95
setProcessorMethod · 0.95
setStackMethod · 0.95
getSizeInBytesMethod · 0.95
getStringPropertyMethod · 0.95
getCurrentSliceMethod · 0.95
setCurrentSliceMethod · 0.95
createNewRoiMethod · 0.95
revertMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected