If this is a stack, returns the actual number of images in the stack, else returns 1.
()
| 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> |
no test coverage detected