Class MarkProposerStrategy

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.annotation.io.bean.AnnotatorStrategy>
org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
org.anchoranalysis.plugin.annotation.bean.strategy.SinglePathStrategy
org.anchoranalysis.plugin.annotation.bean.strategy.MarkProposerStrategy

public class MarkProposerStrategy
extends SinglePathStrategy
Annotates each image with a mark using a mark proposer and points fitter.
  • Constructor Summary

    Constructors 
    Constructor Description
    MarkProposerStrategy()  
  • Method Summary

    Modifier and Type Method Description
    Optional<String> annotationLabelFor​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput item, org.anchoranalysis.core.time.OperationContext operationContext)  
    Optional<org.anchoranalysis.io.input.bean.path.DerivePath> dictionaryDeriver()
    Gets the dictionary deriver path if set.
    List<org.anchoranalysis.io.input.bean.path.DerivePath> getAdditionalBackgrounds()
    Additional background-stacks that are possible to use while annotating.
    org.anchoranalysis.bean.NamedBean<org.anchoranalysis.mpp.feature.bean.mark.MarkEvaluator> getMarkEvaluator()
    A mark-evaluator that is added to the GUI to support this annotation
    String getMarkProposer()
    Name of the MarkProposer to use.
    org.anchoranalysis.annotation.io.bean.comparer.MultipleComparer getMultipleComparer()
    Multiple comparer for comparing annotations.
    org.anchoranalysis.io.input.bean.path.DerivePath getPathDefaultMarks()
    Path to derive default marks from.
    org.anchoranalysis.io.input.bean.path.DerivePath getPathDictionary()
    Path to derive dictionary from.
    String getPointsFitter()
    Name of the PointsFitter to use.
    Optional<org.anchoranalysis.io.input.bean.path.DerivePath> marksDeriver()
    Gets the marks deriver path if set.
    void setAdditionalBackgrounds​(List<org.anchoranalysis.io.input.bean.path.DerivePath> additionalBackgrounds)
    Additional background-stacks that are possible to use while annotating.
    void setMarkEvaluator​(org.anchoranalysis.bean.NamedBean<org.anchoranalysis.mpp.feature.bean.mark.MarkEvaluator> markEvaluator)
    A mark-evaluator that is added to the GUI to support this annotation
    void setMarkProposer​(String markProposer)
    Name of the MarkProposer to use.
    void setMultipleComparer​(org.anchoranalysis.annotation.io.bean.comparer.MultipleComparer multipleComparer)
    Multiple comparer for comparing annotations.
    void setPathDefaultMarks​(org.anchoranalysis.io.input.bean.path.DerivePath pathDefaultMarks)
    Path to derive default marks from.
    void setPathDictionary​(org.anchoranalysis.io.input.bean.path.DerivePath pathDictionary)
    Path to derive dictionary from.
    void setPointsFitter​(String pointsFitter)
    Name of the PointsFitter to use.
    int weightWidthDescription()  

    Methods inherited from class org.anchoranalysis.plugin.annotation.bean.strategy.SinglePathStrategy

    getPathAnnotation, pathFor, setPathAnnotation

    Methods inherited from class org.anchoranalysis.annotation.io.bean.AnnotatorStrategy

    getBackground, getStackReader, setBackground, setStackReader

    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

    • dictionaryDeriver

      public Optional<org.anchoranalysis.io.input.bean.path.DerivePath> dictionaryDeriver()
      Gets the dictionary deriver path if set.
      Returns:
      an Optional containing the DerivePath for the dictionary, or empty if not set.
    • marksDeriver

      public Optional<org.anchoranalysis.io.input.bean.path.DerivePath> marksDeriver()
      Gets the marks deriver path if set.
      Returns:
      an Optional containing the DerivePath for the marks, or empty if not set.
    • weightWidthDescription

      public int weightWidthDescription()
      Specified by:
      weightWidthDescription in class org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
    • annotationLabelFor

      public Optional<String> annotationLabelFor​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput item, org.anchoranalysis.core.time.OperationContext operationContext)
      Specified by:
      annotationLabelFor in class org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
    • getMarkProposer

      public String getMarkProposer()
      Name of the MarkProposer to use.
    • setMarkProposer

      public void setMarkProposer​(String markProposer)
      Name of the MarkProposer to use.
    • getPointsFitter

      public String getPointsFitter()
      Name of the PointsFitter to use.
    • setPointsFitter

      public void setPointsFitter​(String pointsFitter)
      Name of the PointsFitter to use.
    • getPathDefaultMarks

      public org.anchoranalysis.io.input.bean.path.DerivePath getPathDefaultMarks()
      Path to derive default marks from.
    • setPathDefaultMarks

      public void setPathDefaultMarks​(org.anchoranalysis.io.input.bean.path.DerivePath pathDefaultMarks)
      Path to derive default marks from.
    • getPathDictionary

      public org.anchoranalysis.io.input.bean.path.DerivePath getPathDictionary()
      Path to derive dictionary from.
    • setPathDictionary

      public void setPathDictionary​(org.anchoranalysis.io.input.bean.path.DerivePath pathDictionary)
      Path to derive dictionary from.
    • getAdditionalBackgrounds

      public List<org.anchoranalysis.io.input.bean.path.DerivePath> getAdditionalBackgrounds()
      Additional background-stacks that are possible to use while annotating.

      These must have the same dimensions as the energy-stack.

    • setAdditionalBackgrounds

      public void setAdditionalBackgrounds​(List<org.anchoranalysis.io.input.bean.path.DerivePath> additionalBackgrounds)
      Additional background-stacks that are possible to use while annotating.

      These must have the same dimensions as the energy-stack.

    • getMultipleComparer

      public org.anchoranalysis.annotation.io.bean.comparer.MultipleComparer getMultipleComparer()
      Multiple comparer for comparing annotations.
    • setMultipleComparer

      public void setMultipleComparer​(org.anchoranalysis.annotation.io.bean.comparer.MultipleComparer multipleComparer)
      Multiple comparer for comparing annotations.
    • getMarkEvaluator

      public org.anchoranalysis.bean.NamedBean<org.anchoranalysis.mpp.feature.bean.mark.MarkEvaluator> getMarkEvaluator()
      A mark-evaluator that is added to the GUI to support this annotation
    • setMarkEvaluator

      public void setMarkEvaluator​(org.anchoranalysis.bean.NamedBean<org.anchoranalysis.mpp.feature.bean.mark.MarkEvaluator> markEvaluator)
      A mark-evaluator that is added to the GUI to support this annotation