public abstract class SinglePathStrategy extends AnnotatorStrategy
AnnotatorStrategy
where a single unique path exists
for every annotation.Constructor and Description |
---|
SinglePathStrategy() |
Modifier and Type | Method and Description |
---|---|
DerivePath |
getPathAnnotation()
Derives the path to the corresponding annotation files, given a path to the image to be
annotated.
|
Path |
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.
|
annotationLabelFor, getBackground, getStackReader, setBackground, setStackReader, weightWidthDescription
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Path pathFor(ProvidesStackInput input) throws OperationFailedException
AnnotatorStrategy
If the annotation is stored on multiple files, this refers to the principle file that must be unique.
pathFor
in class AnnotatorStrategy
input
- the input to find an annotation file for.OperationFailedException
- if the path cannot be successfully determined.public DerivePath getPathAnnotation()
public void setPathAnnotation(DerivePath pathAnnotation)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.