Class ImageLabelAnnotationReader

Object
org.anchoranalysis.annotation.io.image.ImageLabelAnnotationReader
All Implemented Interfaces:
AnnotationReader<ImageLabelAnnotation>

public class ImageLabelAnnotationReader
extends Object
implements AnnotationReader<ImageLabelAnnotation>
Reads an ImageLabelAnnotation from the file-system.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • read

      public Optional<ImageLabelAnnotation> read​(Path path, org.anchoranalysis.core.time.OperationContext context) throws org.anchoranalysis.io.input.InputReadFailedException
      Description copied from interface: AnnotationReader
      Reads an annotation, if possible, from the file-system.
      Specified by:
      read in interface AnnotationReader<ImageLabelAnnotation>
      Parameters:
      path - a path representing the annotation (or we derive another path from this path).
      context - TODO
      Returns:
      the annotation or Optional.empty() if it can't be read.
      Throws:
      org.anchoranalysis.io.input.InputReadFailedException - if the annotation cannot be read successfully.