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 theMarkProposer
to use.Multiple comparer for comparing annotations.Path to derive default marks from.Path to derive dictionary from.Name of thePointsFitter
to use.Gets the marks deriver path if set.void
setAdditionalBackgrounds
(List<DerivePath> additionalBackgrounds) Additional background-stacks that are possible to use while annotating.void
setMarkEvaluator
(NamedBean<MarkEvaluator> markEvaluator) A mark-evaluator that is added to the GUI to support this annotationvoid
setMarkProposer
(String markProposer) Name of theMarkProposer
to use.void
setMultipleComparer
(MultipleComparer multipleComparer) Multiple comparer for comparing annotations.void
setPathDefaultMarks
(DerivePath pathDefaultMarks) Path to derive default marks from.void
setPathDictionary
(DerivePath pathDictionary) Path to derive dictionary from.void
setPointsFitter
(String pointsFitter) Name of thePointsFitter
to use.int
The 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, 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
-
Constructor Details
-
MarkProposerStrategy
public MarkProposerStrategy()
-
-
Method Details
-
dictionaryDeriver
Gets the dictionary deriver path if set.- Returns:
- an
Optional
containing theDerivePath
for the dictionary, or empty if not set.
-
marksDeriver
Gets the marks deriver path if set.- Returns:
- an
Optional
containing theDerivePath
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 fromAnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext)
can be.The higher the number, the lengthier
AnnotatorStrategy.annotationLabelFor(ProvidesStackInput, OperationContext)
can be.- Specified by:
weightWidthDescription
in classAnnotatorStrategy
- 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, orOptional.empty()
if no label is available.- Specified by:
annotationLabelFor
in classAnnotatorStrategy
- Parameters:
item
- the input to find an annotation label for.operationContext
- theOperationContext
for the operation.- Returns:
- the label, if available.
-
getMarkProposer
Name of theMarkProposer
to use. -
setMarkProposer
Name of theMarkProposer
to use. -
getPointsFitter
Name of thePointsFitter
to use. -
setPointsFitter
Name of thePointsFitter
to 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
-