protected void countImages() { if (getImageCount() == 0) core.get(0).imageCount = 1; offsets = new int[getImageCount()]; coordinates = new int[getImageCount()][3]; imageFiles = new String[getImageCount()]; }
protected void countImages() { if (getImageCount() == 0) core.get(0).imageCount = 1; offsets = new int[getImageCount()]; coordinates = new int[getImageCount()][3]; imageFiles = new String[getImageCount()]; }
/** * Read and store basic dimensions in model * @param store * @throws FormatException * @throws IOException */ protected void fillMetadataPass2(MetadataStore store) throws FormatException, IOException { LOGGER.info("Populating metadata"); stageX.clear(); stageY.clear(); CoreMetadata m = core.get(0); m.sizeZ = zIndices.size(); m.sizeT = timepointIndices.size(); m.sizeC = channelIndices.size(); m.littleEndian = true; m.interleaved = true; m.falseColor = true; m.metadataComplete = true; m.imageCount = getSizeZ() * getSizeT() * getSizeC(); if (getImageCount() == 0 || getImageCount() == 1) { m.imageCount = 1; m.sizeZ = 1; m.sizeC = 1; m.sizeT = 1; } m.rgb = (bpp % 3) == 0; if (isRGB()) m.sizeC *= 3; }
/** * Read and store basic dimensions in model * @param store * @throws FormatException * @throws IOException */ protected void fillMetadataPass2(MetadataStore store) throws FormatException, IOException { LOGGER.info("Populating metadata"); stageX.clear(); stageY.clear(); CoreMetadata m = core.get(0); m.sizeZ = zIndices.size(); m.sizeT = timepointIndices.size(); m.sizeC = channelIndices.size(); m.littleEndian = true; m.interleaved = true; m.falseColor = true; m.metadataComplete = true; m.imageCount = getSizeZ() * getSizeT() * getSizeC(); if (getImageCount() == 0 || getImageCount() == 1) { m.imageCount = 1; m.sizeZ = 1; m.sizeC = 1; m.sizeT = 1; } m.rgb = (bpp % 3) == 0; if (isRGB()) m.sizeC *= 3; }
int totalTiles = offsets.length / getImageCount();
int totalTiles = offsets.length / getImageCount();
for (int plane=0; plane<getImageCount(); plane++) { int[] zct = getZCTCoords(plane); int expIndex = zct[1]; store.setPlaneExposureTime(new Time(exp, UNITS.SECOND), i, plane); int posIndex = i * getImageCount() + plane;
for (int plane=0; plane<getImageCount(); plane++) { int[] zct = getZCTCoords(plane); int expIndex = zct[1]; store.setPlaneExposureTime(new Time(exp, UNITS.SECOND), i, plane); int posIndex = i * getImageCount() + plane;