Class SinglePathStrategy
- Direct Known Subclasses:
ImageLabelStrategy
,MarkProposerStrategy
A base class for implementations of
AnnotatorStrategy
where a single unique path exists
for every annotation.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDerives the path to the corresponding annotation files, given a path to the image to be annotated.pathFor
(ProvidesStackInput input) The path to where an annotation file for a particular input would be located.void
setPathAnnotation
(DerivePath pathAnnotation) Derives the path to the corresponding annotation files, given a path to the image to be annotated.Methods inherited from class org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
annotationLabelFor, getBackground, getStackReader, setBackground, setStackReader, weightWidthDescription
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SinglePathStrategy
public SinglePathStrategy()
-
-
Method Details
-
pathFor
Description copied from class:AnnotatorStrategy
The path to where an annotation file for a particular input would be located.If the annotation is stored on multiple files, this refers to the principle file that must be unique.
- Specified by:
pathFor
in classAnnotatorStrategy
- Parameters:
input
- the input to find an annotation file for.- Returns:
- the path to where the annotation would be expected to be.
- Throws:
OperationFailedException
- if the path cannot be successfully determined.
-
getPathAnnotation
Derives the path to the corresponding annotation files, given a path to the image to be annotated. -
setPathAnnotation
Derives the path to the corresponding annotation files, given a path to the image to be annotated.
-