if (currentImage < getImageCount() && getSeriesCount() == 1) {
if (currentImage < getImageCount() && getSeriesCount() == 1) {
@Test(dependsOnMethods={"testSetId"}) public void testPlaneData() throws FormatException, IOException { for (int i = 0; i < pixelsOnly.getSeriesCount(); i++) { pixelsOnly.setSeries(i); all.setSeries(i); assertEquals(all.getImageCount(), pixelsOnly.getImageCount()); for (int j = 0; j < pixelsOnly.getImageCount(); j++) { byte[] pixelsOnlyPlane = pixelsOnly.openBytes(j); String sha1PixelsOnlyPlane = sha1(pixelsOnlyPlane); byte[] allPlane = all.openBytes(j); String sha1AllPlane = sha1(allPlane); if (!sha1PixelsOnlyPlane.equals(sha1AllPlane)) { fail(String.format( "MISMATCH: Series:%d Image:%d PixelsOnly:%s All:%s", i, j, sha1PixelsOnlyPlane, sha1AllPlane)); } } } }
int realPlaneCount = (int) ((in.length() - HEADER_LENGTH - extSize) / planeSize); if (realPlaneCount < getImageCount() && !truncatedFileFlag) { LOGGER.debug("Truncated file"); m.imageCount = realPlaneCount; if (getImageCount() > (sizeZ * sizeC * sizeT)) { m.imageCount = imageCount; sizeC = rawSizeC == 0 ? 1 : rawSizeC; sizeT = rawSizeT == 0 ? 1 : rawSizeT; sizeZ = getImageCount() / (sizeC * sizeT); boolean hasZeroX = false; boolean hasZeroY = false; for (int i=0; i<getImageCount(); i++) { int[] coords = getZCTCoords(i); int z = coords[0]; for (int plane=0; plane<getImageCount(); plane++) { int[] coords = getZCTCoords(plane);
int realPlaneCount = (int) ((in.length() - HEADER_LENGTH - extSize) / planeSize); if (realPlaneCount < getImageCount() && !truncatedFileFlag) { LOGGER.debug("Truncated file"); m.imageCount = realPlaneCount; if (getImageCount() > (sizeZ * sizeC * sizeT)) { m.imageCount = imageCount; sizeC = rawSizeC == 0 ? 1 : rawSizeC; sizeT = rawSizeT == 0 ? 1 : rawSizeT; sizeZ = getImageCount() / (sizeC * sizeT); boolean hasZeroX = false; boolean hasZeroY = false; for (int i=0; i<getImageCount(); i++) { int[] coords = getZCTCoords(i); int z = coords[0]; for (int plane=0; plane<getImageCount(); plane++) { int[] coords = getZCTCoords(plane);
for (int i=0; i<getImageCount(); i++) { int[] coords = getZCTCoords(i);
for (int i=0; i<getImageCount(); i++) { int[] coords = getZCTCoords(i);