Class ImageLabelAnnotationWriter
Object
org.anchoranalysis.annotation.io.image.ImageLabelAnnotationWriter
- All Implemented Interfaces:
AnnotationWriter<ImageLabelAnnotation>
public class ImageLabelAnnotationWriter extends Object implements AnnotationWriter<ImageLabelAnnotation>
Writes an
ImageLabelAnnotation to the file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ImageLabelAnnotationWriter() -
Method Summary
Modifier and Type Method Description voidwrite(ImageLabelAnnotation annotation, Path path)Saves the annotation to the filesystem.
-
Constructor Details
-
ImageLabelAnnotationWriter
public ImageLabelAnnotationWriter()
-
-
Method Details
-
write
Description copied from interface:AnnotationWriterSaves the annotation to the filesystem.- Specified by:
writein interfaceAnnotationWriter<ImageLabelAnnotation>- Parameters:
annotation- the annotation to save.path- the path to write to (or a slightly-modified path is derived from this).- Throws:
IOException- if the annotation fails to write successfully.
-