Class ImageLabelStrategy
Object
AnchorBean<AnnotatorStrategy>
AnnotatorStrategy
SinglePathStrategy
ImageLabelStrategy
Assigns a single label per image, as a whole.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationLabelFor(ProvidesStackInput item, OperationContext context) List ofAnnotationLabels available for annotation.intThe weight to use for the width of the description.Creates aGroupedAnnotationLabelsfrom the current labels.voidsetLabels(List<AnnotationLabel> labels) List ofAnnotationLabels available for annotation.voidsetWeightWidthDescription(int weightWidthDescription) The weight to use for the width of the description.intMethods 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
-
ImageLabelStrategy
public ImageLabelStrategy()
-
-
Method Details
-
annotationLabelFor
-
groupedLabels
Creates aGroupedAnnotationLabelsfrom the current labels.This is actually called twice during a typical opening of an annotation. But overhead is minor (assuming not very many labels).
- Returns:
- a new
GroupedAnnotationLabelsinstance.
-
weightWidthDescription
public int weightWidthDescription()- Specified by:
weightWidthDescriptionin classAnnotatorStrategy
-
getLabels
List ofAnnotationLabels available for annotation. -
setLabels
List ofAnnotationLabels available for annotation. -
getWeightWidthDescription
public int getWeightWidthDescription()The weight to use for the width of the description. -
setWeightWidthDescription
public void setWeightWidthDescription(int weightWidthDescription) The weight to use for the width of the description.
-