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

Method verifyDimensions

ij/src/main/java/ij/ImagePlus.java:1460–1473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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).

Callers 5

getNChannelsMethod · 0.95
getNSlicesMethod · 0.95
getNFramesMethod · 0.95
getDimensionsMethod · 0.95
setPositionMethod · 0.95

Calls 1

getImageStackSizeMethod · 0.95

Tested by

no test coverage detected