Class BinaryOutcomeImageLabeller
- Direct Known Subclasses:
BinaryClassifierImageLabeller,DescriptiveNameContainsImageLabeller
Abstract base class for image labellers that produce binary outcomes (positive or negative).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallLabels(NoSharedState sharedState) Returns a set of identifiers for all groups that can be outputted by the labeller.protected static StringclassificationString(boolean positive) Converts a boolean classification result to its string representation.initialize(Path pathForBinding) Initializes the labeller.Methods inherited from class org.anchoranalysis.plugin.image.task.bean.labeller.ImageLabeller
labelForMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BinaryOutcomeImageLabeller
public BinaryOutcomeImageLabeller()
-
-
Method Details
-
initialize
Description copied from class:ImageLabellerInitializes the labeller. Should be called once before calling any other methods.- Specified by:
initializein classImageLabeller<NoSharedState>- Parameters:
pathForBinding- aPaththat can be used by the labeller to make file path decisions- Returns:
- the initialized shared-state of type
T - Throws:
InitializeException- if initialization fails
-
classificationString
Converts a boolean classification result to its string representation.- Parameters:
positive- true if the classification is positive, false if negative- Returns:
POSITIVEif true,NEGATIVEif false
-