Class MaskReader

Object
MaskReader

public class MaskReader extends Object
Utility functions for reading a Mask from the file-system.
Author:
Owen Feehan
  • Method Details

    • openMask

      public static Mask openMask(StackReader stackReader, Path path, BinaryValuesInt binaryValues, OperationContext context) throws ImageIOException
      Utility functions for opening a single-channeled stack as a Mask.
      Parameters:
      stackReader - the raster-reader for reading the stack.
      path - the path the raster is located at.
      binaryValues - what constitutes on and off voxels in the raster.
      context - context for reading a stack from the file-system.
      Returns:
      a newly created Mask as read from the file-system.
      Throws:
      ImageIOException - if the underlying image cannot be successfully read from the file-system.