private void setupResolutions(IMetadata meta) { if (!(meta instanceof OMEPyramidStore)) { return; } for (int series=0; series<meta.getImageCount(); series++) { int width = meta.getPixelsSizeX(series).getValue(); int height = meta.getPixelsSizeY(series).getValue(); for (int i=1; i<pyramidResolutions; i++) { int scale = (int) Math.pow(pyramidScale, i); ((OMEPyramidStore) meta).setResolutionSizeX( new PositiveInteger(width / scale), series, i); ((OMEPyramidStore) meta).setResolutionSizeY( new PositiveInteger(height / scale), series, i); } } }
for (int i = 0; i < meta.getImageCount(); i++) { meta.setPixelsBinDataBigEndian(Boolean.TRUE, i, 0); metaService.verifyMinimumPopulated(meta, i); return meta.getImageCount() > 0;
for (int i=1; i<meta.getImageCount(); i++) { if (!meta.getPixelsSizeX(i).equals(meta.getPixelsSizeX(0))) { equalDimensions = false;
for (int i=1; i<meta.getImageCount(); i++) { if (!meta.getPixelsSizeX(i).equals(meta.getPixelsSizeX(0))) { equalDimensions = false;
for (int image=0; image<src.getImageCount(); image++) { Length physicalSizeX = src.getPixelsPhysicalSizeX(image); if (physicalSizeX != null && physicalSizeX.value() != null) {
for (int image=0; image<src.getImageCount(); image++) { Length physicalSizeX = src.getPixelsPhysicalSizeX(image); if (physicalSizeX != null && physicalSizeX.value() != null) {
store.createRoot(); else if (store.getImageCount() > 1) { for (int series=0; series<store.getImageCount(); series++) { String type = store.getPixelsType(series).toString(); int pixelType = FormatTools.pixelTypeFromString(type);
store.createRoot(); else if (store.getImageCount() > 1) { for (int series=0; series<store.getImageCount(); series++) { String type = store.getPixelsType(series).toString(); int pixelType = FormatTools.pixelTypeFromString(type);