Returns the number of stack images.
()
| 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() { |
no test coverage detected