Class FlattenAsChannel


public class FlattenAsChannel extends StackReader
Combines all series and frames returned by a reader by converting them into multiple channels in the same image.

It assumes that the underlying StackReader will only return images with:

  1. a constant number of channels.
  2. a constant number of frames.
Author:
Owen Feehan
  • Constructor Details

    • FlattenAsChannel

      public FlattenAsChannel()
  • Method Details

    • openFile

      public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Description copied from class: StackReader
      Opens a file containing one or more images.

      This method should run as computationally quicky as possible. Image voxels should not yet be read.

      Specified by:
      openFile in class StackReader
      Parameters:
      path - where the file is located.
      executionTimeRecorder - records the execution-times of certain operations.
      Returns:
      an interface to the opened file that should be closed when no longer in use.
      Throws:
      ImageIOException - if the file cannot be read.
    • getStackReader

      public StackReader getStackReader()
      Reads the image that is subsequently flattened.
    • setStackReader

      public void setStackReader(StackReader stackReader)
      Reads the image that is subsequently flattened.