Class ImageJRasterWriter
Object
AnchorBean<StackWriter>
StackWriter
ImageJRasterWriter
Base class for writing a raster using ImageJ.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanwriteRaster(ij.io.FileSaver fileSaver, String path, boolean asStack) Writes an annotation to the filesystem atoutPath.voidwriteStack(Stack stack, Path filePath, StackWriteOptions options) protected voidwriteStackTime(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, writeStackWithExtensionMethods 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 - Specified by:
writeStackin classStackWriter- Throws:
ImageIOException
-
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.
-