()
| 1458 | } |
| 1459 | |
| 1460 | void verifyDimensions() { |
| 1461 | int stackSize = getImageStackSize(); |
| 1462 | if (nSlices==1) { |
| 1463 | if (nChannels>1 && nFrames==1) |
| 1464 | nChannels = stackSize; |
| 1465 | else if (nFrames>1 && nChannels==1) |
| 1466 | nFrames = stackSize; |
| 1467 | } |
| 1468 | if (nChannels*nSlices*nFrames!=stackSize) { |
| 1469 | nSlices = stackSize; |
| 1470 | nChannels = 1; |
| 1471 | nFrames = 1; |
| 1472 | } |
| 1473 | } |
| 1474 | |
| 1475 | /** Returns the current image type (ImagePlus.GRAY8, ImagePlus.GRAY16, |
| 1476 | ImagePlus.GRAY32, ImagePlus.COLOR_256 or ImagePlus.COLOR_RGB). |
no test coverage detected