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 Summary
Constructors Constructor Description ImageLabelAnnotationReader() -
Method Summary
Modifier and Type Method Description Optional<ImageLabelAnnotation>read(Path path, org.anchoranalysis.core.time.OperationContext context)Reads an annotation, if possible, from the file-system.
-
Constructor Details
-
ImageLabelAnnotationReader
public ImageLabelAnnotationReader()
-
-
Method Details
-
read
public Optional<ImageLabelAnnotation> read(Path path, org.anchoranalysis.core.time.OperationContext context) throws org.anchoranalysis.io.input.InputReadFailedExceptionDescription copied from interface:AnnotationReaderReads an annotation, if possible, from the file-system.- Specified by:
readin interfaceAnnotationReader<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.
-