Class ImageMetadataReader

Object
org.anchoranalysis.bean.AnchorBean<ImageMetadataReader>
org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader
Direct Known Subclasses:
FromStackReader

public abstract class ImageMetadataReader
extends AnchorBean<ImageMetadataReader>
Reads an ImageMetadata from the file-system.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • openFile

      public abstract ImageMetadata openFile​(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException
      Opens a file containing one or more images but does not read an image.
      Parameters:
      path - where the file is located.
      defaultStackReader - the default StackReader to use, if needed, and if not otherwise specified, for reading metadata.
      context - context for reading a stack from the file-system.
      Returns:
      an interface to the opened file that should be closed when no longer in use.
      Throws:
      ImageIOException - if the file cannot be read.