Class SinglePathStrategy

Object
AnchorBean<AnnotatorStrategy>
AnnotatorStrategy
SinglePathStrategy
Direct Known Subclasses:
ImageLabelStrategy, MarkProposerStrategy

public abstract class SinglePathStrategy extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    DerivePath
    Derives the path to the corresponding annotation files, given a path to the image to be annotated.
    pathFor(ProvidesStackInput input)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SinglePathStrategy

      public SinglePathStrategy()
  • Method Details

    • pathFor

      public Path pathFor(ProvidesStackInput input) throws OperationFailedException
      Specified by:
      pathFor in class AnnotatorStrategy
      Throws:
      OperationFailedException
    • getPathAnnotation

      public DerivePath getPathAnnotation()
      Derives the path to the corresponding annotation files, given a path to the image to be annotated.
    • setPathAnnotation

      public void setPathAnnotation(DerivePath pathAnnotation)
      Derives the path to the corresponding annotation files, given a path to the image to be annotated.