Skip to content

Commit

Permalink
Run GeneratePyramidResolutions via ExampleSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Nov 20, 2018
1 parent 9b91228 commit f56cd2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/ExampleSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public static void main(String[] args) throws Exception {
File overlappedTiledFile2 = new File(parentDir, "overlappedTiledFile2.ome.tiff");
File inMemoryFile = new File(parentDir, inputFile.getName() +".ome.tif");
File orthogonalFile = new File(parentDir, "orthogonal.ome.tiff");
File pyramidOutputFile = new File(parentDir, "generatedPyramid.ome.tiff");

// Remove any existing output files
Files.deleteIfExists(convertedFile.toPath());
Expand All @@ -82,6 +83,7 @@ public static void main(String[] args) throws Exception {
Files.deleteIfExists(overlappedTiledFile2.toPath());
Files.deleteIfExists(inMemoryFile.toPath());
Files.deleteIfExists(orthogonalFile.toPath());
Files.deleteIfExists(pyramidOutputFile.toPath());

// Execute examples
execute("ReadPhysicalSize", new String[] {inputFile.getAbsolutePath()});
Expand All @@ -103,5 +105,7 @@ public static void main(String[] args) throws Exception {
execute("OrthogonalReader", new String[] {"--input", inputFile.getAbsolutePath(),
"--output", orthogonalFile.getAbsolutePath()});
execute("SubResolutionExample", new String[] { pyramidFile.getAbsolutePath()});
execute("GeneratePyramidResolutions", new String[] {
overlappedInputFile.getAbsolutePath(), "2", "4", pyramidOutputFile.getAbsolutePath()});
}
}

0 comments on commit f56cd2d

Please sign in to comment.