Skip to content

Commit

Permalink
Drop saveExtraImage method
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore authored Jun 29, 2021
1 parent b435320 commit 5f856c1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/main/java/com/glencoesoftware/bioformats2raw/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1541,28 +1541,6 @@ else if (t instanceof RuntimeException) {
}
}

/**
* Save the current series as a separate image (label/barcode, etc.).
*
* @param filename the relative path to the output file
*/
public void saveExtraImage(String filename)
throws FormatException, IOException, InterruptedException
{
IFormatReader reader = readers.take();
try (ImageWriter writer = new ImageWriter()) {
IMetadata metadata = createMetadata();
MetadataTools.populateMetadata(metadata, 0, null,
reader.getCoreMetadataList().get(reader.getCoreIndex()));
writer.setMetadataRetrieve(metadata);
writer.setId(outputPath.resolve(filename).toString()); // FIXME: use Path?
writer.saveBytes(0, reader.openBytes(0));
}
finally {
readers.put(reader);
}
}

private OMEXMLService getService() throws FormatException {
try {
ServiceFactory factory = new ServiceFactory();
Expand Down

0 comments on commit 5f856c1

Please sign in to comment.