@Override public int[] getZCTCoords(int index) { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.getZCTCoords(index) : FormatTools.getZCTCoords(core.get(getCoreIndex()).dimensionOrder, getSizeZ(), getEffectiveSizeC(), getSizeT(), getImageCount(), index); }
@Override public int[] getZCTCoords(int index) { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.getZCTCoords(index) : FormatTools.getZCTCoords(core.get(getCoreIndex()).dimensionOrder, getSizeZ(), getEffectiveSizeC(), getSizeT(), getImageCount(), index); }
@Override public int[] getZCTModuloCoords(int index) { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.getZCTModuloCoords(index) : FormatTools.getZCTCoords(core.get(getCoreIndex()).dimensionOrder, getSizeZ(), getEffectiveSizeC(), getSizeT(), getModuloZ().length(), getModuloC().length(), getModuloT().length(), getImageCount(), index); }
private static void check(String pattern, String[] filenames, Integer[] dims) throws IOException, FormatException { FileStitcher fs = new FileStitcher(); fs.setId(pattern); assertEquals(fs.getFilePattern().getPattern(), pattern); assertEquals(fs.getImageCount(), SIZE_Z * SIZE_T * SIZE_C); assertEquals(fs.getSizeX(), SIZE_X); assertEquals(fs.getSizeY(), SIZE_Y); assertEquals(fs.getSizeZ(), SIZE_Z); assertEquals(fs.getSizeT(), SIZE_T); assertEquals(fs.getSizeC(), SIZE_C); assertEquals(fs.getPixelType(), PIXEL_TYPE); assertEqualsNoOrder(mkBasenames(fs.getUsedFiles()), filenames); checkPlanes(fs, dims); fs.close(); }
@Override public int[] getZCTModuloCoords(int index) { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.getZCTModuloCoords(index) : FormatTools.getZCTCoords(core.get(getCoreIndex()).dimensionOrder, getSizeZ(), getEffectiveSizeC(), getSizeT(), getModuloZ().length(), getModuloC().length(), getModuloT().length(), getImageCount(), index); }