Class ImageJRasterWriter
Base class for writing a raster using ImageJ.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
writeRaster
(ij.io.FileSaver fileSaver, String path, boolean asStack) Writes an annotation to the filesystem atoutPath
.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.).Methods inherited from class org.anchoranalysis.image.io.bean.stack.writer.StackWriter
fileFormat, fileFormatWarnUnexpected, writeStackWithExtension
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ImageJRasterWriter
public ImageJRasterWriter()
-
-
Method Details
-
writeStack
public void writeStack(Stack stack, Path filePath, StackWriteOptions options) throws ImageIOException Description copied from class:StackWriter
Writes a stack to the filesystem at a particular path.- Specified by:
writeStack
in classStackWriter
- Parameters:
stack
- the stack to write.filePath
- the path to write the file to.options
- options which may influence how a raster is written.- Throws:
ImageIOException
- if anything goes wrong while writing.
-
writeRaster
protected abstract boolean writeRaster(ij.io.FileSaver fileSaver, String path, boolean asStack) throws ImageIOException Writes an annotation to the filesystem atoutPath
.- Parameters:
fileSaver
- imagej class for saving filespath
- where to write the annotation toasStack
- whether the output will produce a stack (many images together) or not.- Returns:
- true if successfully written.
- Throws:
ImageIOException
- if anything goes wrong writing the input.
-
writeStackTime
Writes a stack as a time-sequence (many images together in a single file.).- Parameters:
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.- Throws:
ImageIOException
- if anything goes wrong writing.
-