int zcPlanes = getImageCount() / ((split ? getSizeC() : 1) * getSizeT()); for (int i=0; i<getSeriesCount(); i++) { if (tsT.size() > 0) { setSeries(i); for (int n=0; n<getImageCount(); n++) { int[] coords = getZCTCoords(n); int stampIndex = getIndex(coords[0], split ? 0 : coords[1], 0); stampIndex += (coords[2] * getSeriesCount() + i) * zcPlanes; if (tsT.size() == getImageCount()) stampIndex = n; else if (tsT.size() == getSizeZ()) { stampIndex = coords[0]; for (int n=0; n<getImageCount(); n++) { int[] coords = getZCTCoords(n); int index = coords[0];
int zcPlanes = getImageCount() / ((split ? getSizeC() : 1) * getSizeT()); for (int i=0; i<getSeriesCount(); i++) { if (tsT.size() > 0) { setSeries(i); for (int n=0; n<getImageCount(); n++) { int[] coords = getZCTCoords(n); int stampIndex = getIndex(coords[0], split ? 0 : coords[1], 0); stampIndex += (coords[2] * getSeriesCount() + i) * zcPlanes; if (tsT.size() == getImageCount()) stampIndex = n; else if (tsT.size() == getSizeZ()) { stampIndex = coords[0]; for (int n=0; n<getImageCount(); n++) { int[] coords = getZCTCoords(n); int index = coords[0];
if (numSeries * getImageCount() == 1 && imageOffsets.size() > 1) { for (int i=0; i<getSeriesCount(); i++) { core.get(i, 0).imageCount = imageOffsets.size() / getSeriesCount(); core.get(i, 0).sizeZ = getImageCount(); core.get(i, 0).sizeT = 1; if (getImageCount() == imageOffsets.size() && numSeries > 1 && getSizeC() == 1) offsets = new long[numSeries][getImageCount()]; ms.sizeZ = getSizeZ() == 0 ? 1 : getSizeZ(); ms.sizeT = getSizeT() == 0 ? 1 : getSizeT(); ms.imageCount = getImageCount(); ms.pixelType = getPixelType(); ms.bitsPerPixel = getBitsPerPixel(); int count = split ? getImageCount() / getSizeC() : getImageCount(); for (int plane=0; plane<count; plane++) { int numBands = c; c = numBands > 1 ? numBands : getSizeC(); if (numBands == 1 && getImageCount() == 1) c = 1; for (int i=0; i<getSeriesCount(); i++) { CoreMetadata ms = core.get(i, 0); if (getImageCount() == 0) { core.get(0, 0).imageCount = vs.size(); core.get(0, 0).sizeZ = (int) Math.max(zs.size(), 1);
if (numSeries * getImageCount() == 1 && imageOffsets.size() > 1) { for (int i=0; i<getSeriesCount(); i++) { core.get(i, 0).imageCount = imageOffsets.size() / getSeriesCount(); core.get(i, 0).sizeZ = getImageCount(); core.get(i, 0).sizeT = 1; if (getImageCount() == imageOffsets.size() && numSeries > 1 && getSizeC() == 1) offsets = new long[numSeries][getImageCount()]; ms.sizeZ = getSizeZ() == 0 ? 1 : getSizeZ(); ms.sizeT = getSizeT() == 0 ? 1 : getSizeT(); ms.imageCount = getImageCount(); ms.pixelType = getPixelType(); ms.bitsPerPixel = getBitsPerPixel(); int count = split ? getImageCount() / getSizeC() : getImageCount(); for (int plane=0; plane<count; plane++) { int numBands = c; c = numBands > 1 ? numBands : getSizeC(); if (numBands == 1 && getImageCount() == 1) c = 1; for (int i=0; i<getSeriesCount(); i++) { CoreMetadata ms = core.get(i, 0); if (getImageCount() == 0) { core.get(0, 0).imageCount = vs.size(); core.get(0, 0).sizeZ = (int) Math.max(zs.size(), 1);
if (split) pixel *= getSizeC(); int totalPlanes = split ? getImageCount() / getSizeC() : getImageCount();
if (split) pixel *= getSizeC(); int totalPlanes = split ? getImageCount() / getSizeC() : getImageCount();