Class ImageJRasterWriter

Direct Known Subclasses:
PNG, Tiff

public abstract class ImageJRasterWriter extends StackWriter
Base class for writing a raster using ImageJ.
Author:
Owen Feehan
  • 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 class StackWriter
      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 at outPath.
      Parameters:
      fileSaver - imagej class for saving files
      path - where to write the annotation to
      asStack - 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

      protected void writeStackTime(Stack stack, Path path, boolean makeRGB) throws ImageIOException
      Writes a stack as a time-sequence (many images together in a single file.).
      Parameters:
      stack - the stack to write
      path - where on the filesystem to write to
      makeRGB - if true, the image is saved as a RGB image rather than independent channels.
      Throws:
      ImageIOException - if anything goes wrong writing.