Class MarkProposerStrategy
Annotates each image with a mark using a mark proposer and points fitter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationLabelFor(ProvidesStackInput item, OperationContext operationContext) A human-friendly textual description of the annotation, orOptional.empty()if no label is available.Gets the dictionary deriver path if set.Additional background-stacks that are possible to use while annotating.A mark-evaluator that is added to the GUI to support this annotationName of theMarkProposerto use.Multiple comparer for comparing annotations.Path to derive default marks from.Path to derive dictionary from.Name of thePointsFitterto use.Gets the marks deriver path if set.voidsetAdditionalBackgrounds(List<DerivePath> additionalBackgrounds) Additional background-stacks that are possible to use while annotating.voidsetMarkEvaluator(NamedBean<MarkEvaluator> markEvaluator) A mark-evaluator that is added to the GUI to support this annotationvoidsetMarkProposer(String markProposer) Name of theMarkProposerto use.voidsetMultipleComparer(MultipleComparer multipleComparer) Multiple comparer for comparing annotations.voidsetPathDefaultMarks(DerivePath pathDefaultMarks) Path to derive default marks from.voidsetPathDictionary(DerivePath pathDictionary) Path to derive dictionary from.voidsetPointsFitter(String pointsFitter) Name of thePointsFitterto use.intThe degree as to how lengthy the labels fromAnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext)can be.Methods inherited from class org.anchoranalysis.plugin.annotation.bean.strategy.SinglePathStrategy
getPathAnnotation, pathFor, setPathAnnotationMethods inherited from class org.anchoranalysis.annotation.io.bean.AnnotatorStrategy
getBackground, getStackReader, setBackground, setStackReaderMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MarkProposerStrategy
public MarkProposerStrategy()
-
-
Method Details
-
dictionaryDeriver
Gets the dictionary deriver path if set.- Returns:
- an
Optionalcontaining theDerivePathfor the dictionary, or empty if not set.
-
marksDeriver
Gets the marks deriver path if set.- Returns:
- an
Optionalcontaining theDerivePathfor the marks, or empty if not set.
-
weightWidthDescription
public int weightWidthDescription()Description copied from class:AnnotatorStrategyThe degree as to how lengthy the labels fromAnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext)can be.The higher the number, the lengthier
AnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext)can be.- Specified by:
weightWidthDescriptionin classAnnotatorStrategy- Returns:
- the weight indicating the potential length of the description.
-
annotationLabelFor
public Optional<String> annotationLabelFor(ProvidesStackInput item, OperationContext operationContext) Description copied from class:AnnotatorStrategyA human-friendly textual description of the annotation, orOptional.empty()if no label is available.- Specified by:
annotationLabelForin classAnnotatorStrategy- Parameters:
item- the input to find an annotation label for.operationContext- theOperationContextfor the operation.- Returns:
- the label, if available.
-
getMarkProposer
Name of theMarkProposerto use. -
setMarkProposer
Name of theMarkProposerto use. -
getPointsFitter
Name of thePointsFitterto use. -
setPointsFitter
Name of thePointsFitterto use. -
getPathDefaultMarks
Path to derive default marks from. -
setPathDefaultMarks
Path to derive default marks from. -
getPathDictionary
Path to derive dictionary from. -
setPathDictionary
Path to derive dictionary from. -
getAdditionalBackgrounds
Additional background-stacks that are possible to use while annotating.These must have the same dimensions as the energy-stack.
-
setAdditionalBackgrounds
Additional background-stacks that are possible to use while annotating.These must have the same dimensions as the energy-stack.
-
getMultipleComparer
Multiple comparer for comparing annotations. -
setMultipleComparer
Multiple comparer for comparing annotations. -
getMarkEvaluator
A mark-evaluator that is added to the GUI to support this annotation -
setMarkEvaluator
A mark-evaluator that is added to the GUI to support this annotation
-