public abstract class ImageJRasterWriter extends StackWriter
Constructor and Description |
---|
ImageJRasterWriter() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
writeRaster(ij.io.FileSaver fileSaver,
String path,
boolean asStack)
Writes an annotation to the filesystem at
outPath . |
void |
writeStack(Stack stack,
Path filePath,
StackWriteOptions options)
Writes a stack to the filesystem at a particular path.
|
protected void |
writeStackTime(Stack stack,
Path path,
boolean makeRGB)
Writes a stack as a time-sequence (many images together in a single file.).
|
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 boolean writeRaster(ij.io.FileSaver fileSaver, String path, boolean asStack) throws ImageIOException
outPath
.fileSaver
- imagej class for saving filespath
- where to write the annotation toasStack
- whether the output will produce a stack (many images together) or not.ImageIOException
- if anything goes wrong writing the input.protected void writeStackTime(Stack stack, Path path, boolean makeRGB) throws ImageIOException
stack
- the stack to writepath
- where on the filesystem to write tomakeRGB
- if true, the image is saved as a RGB image rather than independent channels.ImageIOException
- if anything goes wrong writing.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.