Class SinglePathStrategy
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>
org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
org.anchoranalysis.plugin.annotation.bean.strategy.SinglePathStrategy
- Direct Known Subclasses:
ImageLabelStrategy,MarkProposerStrategy
public abstract class SinglePathStrategy
extends org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
A base class for implementations of
AnnotatorStrategy where a single unique path exists
for every annotation.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description SinglePathStrategy() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.io.input.bean.path.DerivePathgetPathAnnotation()Derives the path to the corresponding annotation files, given a path to the image to be annotated.PathpathFor(org.anchoranalysis.image.io.stack.input.ProvidesStackInput input)voidsetPathAnnotation(org.anchoranalysis.io.input.bean.path.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
-
Constructor Details
-
SinglePathStrategy
public SinglePathStrategy()
-
-
Method Details
-
pathFor
public Path pathFor(org.anchoranalysis.image.io.stack.input.ProvidesStackInput input) throws org.anchoranalysis.core.exception.OperationFailedException- Specified by:
pathForin classorg.anchoranalysis.annotation.io.bean.AnnotatorStrategy- Throws:
org.anchoranalysis.core.exception.OperationFailedException
-
getPathAnnotation
public org.anchoranalysis.io.input.bean.path.DerivePath getPathAnnotation()Derives the path to the corresponding annotation files, given a path to the image to be annotated. -
setPathAnnotation
public void setPathAnnotation(org.anchoranalysis.io.input.bean.path.DerivePath pathAnnotation)Derives the path to the corresponding annotation files, given a path to the image to be annotated.
-