Class MarkProposerStrategy


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

    • MarkProposerStrategy

      public MarkProposerStrategy()
  • Method Details

    • dictionaryDeriver

      public Optional<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<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()
      Description copied from class: AnnotatorStrategy
      The degree as to how lengthy the labels from AnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext) can be.

      The higher the number, the lengthier AnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext) can be.

      Specified by:
      weightWidthDescription in class AnnotatorStrategy
      Returns:
      the weight indicating the potential length of the description.
    • annotationLabelFor

      public Optional<String> annotationLabelFor(ProvidesStackInput item, OperationContext operationContext)
      Description copied from class: AnnotatorStrategy
      A human-friendly textual description of the annotation, or Optional.empty() if no label is available.
      Specified by:
      annotationLabelFor in class AnnotatorStrategy
      Parameters:
      item - the input to find an annotation label for.
      operationContext - the OperationContext for the operation.
      Returns:
      the label, if available.
    • 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 DerivePath getPathDefaultMarks()
      Path to derive default marks from.
    • setPathDefaultMarks

      public void setPathDefaultMarks(DerivePath pathDefaultMarks)
      Path to derive default marks from.
    • getPathDictionary

      public DerivePath getPathDictionary()
      Path to derive dictionary from.
    • setPathDictionary

      public void setPathDictionary(DerivePath pathDictionary)
      Path to derive dictionary from.
    • getAdditionalBackgrounds

      public List<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<DerivePath> additionalBackgrounds)
      Additional background-stacks that are possible to use while annotating.

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

    • getMultipleComparer

      public MultipleComparer getMultipleComparer()
      Multiple comparer for comparing annotations.
    • setMultipleComparer

      public void setMultipleComparer(MultipleComparer multipleComparer)
      Multiple comparer for comparing annotations.
    • getMarkEvaluator

      public NamedBean<MarkEvaluator> getMarkEvaluator()
      A mark-evaluator that is added to the GUI to support this annotation
    • setMarkEvaluator

      public void setMarkEvaluator(NamedBean<MarkEvaluator> markEvaluator)
      A mark-evaluator that is added to the GUI to support this annotation