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 String
classificationString
(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
labelFor
Methods 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:ImageLabeller
Initializes the labeller. Should be called once before calling any other methods.- Specified by:
initialize
in classImageLabeller<NoSharedState>
- Parameters:
pathForBinding
- aPath
that 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:
POSITIVE
if true,NEGATIVE
if false
-