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.DerivePath getPathAnnotation()
    Derives the path to the corresponding annotation files, given a path to the image to be annotated.
    Path pathFor​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput input)  
    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.

    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

  • Method Details

    • pathFor

      public Path pathFor​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput input) throws org.anchoranalysis.core.exception.OperationFailedException
      Specified by:
      pathFor in class org.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.