public abstract class OneOrThreeChannelsWriter extends StackWriter
Constructor and Description |
---|
OneOrThreeChannelsWriter() |
Modifier and Type | Method and Description |
---|---|
ImageFileFormat |
fileFormat(StackWriteOptions writeOptions)
The file format that will be written by the generator.
|
String |
getExtension() |
void |
setExtension(String extension) |
void |
writeStack(Stack stack,
Path filePath,
StackWriteOptions options)
Writes a stack to the filesystem at a particular path.
|
protected abstract void |
writeStackAfterCheck(Stack stack,
Path filePath) |
void |
writeStackSeries(StackSeries stackSeries,
Path filePath,
StackWriteOptions options)
Writes a series of stacks to the filesystem at a particular path.
|
fileFormatWarnUnexpected, writeStackWithExtension
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ImageFileFormat fileFormat(StackWriteOptions writeOptions) throws ImageIOException
StackWriter
fileFormat
in class StackWriter
writeOptions
- options which may influence how a raster is written.ImageIOException
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 void writeStackAfterCheck(Stack stack, Path filePath) throws ImageIOException
ImageIOException
public String getExtension()
public void setExtension(String extension)
Copyright © 2010–2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.