Class ForceNumberChannels


public class ForceNumberChannels extends ReadOptionsDelegate
Forces the number of channels to be a specific-value, irrespective of what bioformats infers.
Author:
Owen Feehan
  • Constructor Details

    • ForceNumberChannels

      public ForceNumberChannels()
  • Method Details

    • sizeC

      public int sizeC(loci.formats.IFormatReader reader)
      Description copied from class: ReadOptions
      Number of channels.
      Overrides:
      sizeC in class ReadOptionsDelegate
      Parameters:
      reader - the bioformats reader
      Returns:
      the number of channels
    • isRGB

      public boolean isRGB(loci.formats.IFormatReader reader)
      Description copied from class: ReadOptions
      Is it an image with three channels (red, green and blue)?
      Overrides:
      isRGB in class ReadOptionsDelegate
      Parameters:
      reader - the bioformats reader
      Returns:
      true iff its a RGB image
    • getNumberChannels

      public int getNumberChannels()
      The assigned number of channels.
    • setNumberChannels

      public void setNumberChannels(int numberChannels)
      The assigned number of channels.