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.
|
fileFormat, fileFormatWarnUnexpected, writeStackWithExtension
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException
StackWriter
writeStack
in class StackWriter
stack
- the stack to write.filePath
- the path to write the file to.options
- options which may influence how a raster is written.ImageIOException
- if anything goes wrong while writing.protected abstract loci.formats.IFormatWriter createWriter() throws ImageIOException
IFormatWriter
which dictates the file format to use
for writing.ImageIOException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.