public abstract class BioformatsWriter extends StackWriter
The following formats are supported with a variety of number of channels and stacks:
Note that not all implementations support writing as RGB. When they do, it insists on three channels, and only supported unsigned 8-bit or unsigned-16 bit as channel types.
If a stack has heterogeneous channel types (i.e. not all channels have the same type) then it writes all channels with the most generic type (e.g. most bits).
Constructor and Description |
---|
BioformatsWriter(boolean supportsRGB) |
Modifier and Type | Method and Description |
---|---|
protected abstract loci.formats.IFormatWriter |
createWriter()
Creates or gets an instance of
IFormatWriter which dictates the file format to use
for writing. |
void |
writeStack(Stack stack,
Path filePath,
StackWriteOptions options)
Writes a stack to the filesystem at a particular path.
|
void |
writeStackSeries(StackSeries stackSeries,
Path filePath,
StackWriteOptions options)
Writes a series of stacks to the filesystem at a particular path.
|
fileFormat, fileFormatWarnUnexpected, writeStackWithExtension
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void writeStackSeries(StackSeries stackSeries, Path filePath, StackWriteOptions options) throws ImageIOException
StackWriter
writeStackSeries
in class StackWriter
stackSeries
- the series of stacksfilePath
- the path to write the file tooptions
- options which may influence how a raster is written.ImageIOException
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException
StackWriter
writeStack
in class StackWriter
stack
- the stack to writefilePath
- the path to write the file tooptions
- options which may influence how a raster is written.ImageIOException
- if anything goes wrong whle writing.protected abstract loci.formats.IFormatWriter createWriter() throws ImageIOException
IFormatWriter
which dictates the file format to use
for writing.ImageIOException
Copyright © 2010–2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.