/** * 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; }