Class DescriptiveNameContainsImageLabeller
Object
org.anchoranalysis.bean.AnchorBean<ImageLabeller<T>>
org.anchoranalysis.plugin.image.task.bean.labeller.ImageLabeller<org.anchoranalysis.experiment.task.NoSharedState>
org.anchoranalysis.plugin.image.task.bean.labeller.BinaryOutcomeImageLabeller
org.anchoranalysis.plugin.image.task.bean.labeller.DescriptiveNameContainsImageLabeller
public class DescriptiveNameContainsImageLabeller extends BinaryOutcomeImageLabeller
Labels images based on whether their descriptive name contains a specific string.
-
Constructor Summary
Constructors Constructor Description DescriptiveNameContainsImageLabeller() -
Method Summary
Modifier and Type Method Description StringgetContains()The string to search for in the image's descriptive name.StringlabelFor(org.anchoranalysis.experiment.task.NoSharedState sharedState, org.anchoranalysis.image.io.stack.input.ProvidesStackInput input, org.anchoranalysis.io.output.outputter.InputOutputContext context)Determines a particular group-identifier (label) for an input.voidsetContains(String contains)The string to search for in the image's descriptive name.Methods inherited from class org.anchoranalysis.plugin.image.task.bean.labeller.BinaryOutcomeImageLabeller
allLabels, classificationString, initialize
-
Constructor Details
-
DescriptiveNameContainsImageLabeller
public DescriptiveNameContainsImageLabeller()
-
-
Method Details
-
labelFor
public String labelFor(org.anchoranalysis.experiment.task.NoSharedState sharedState, org.anchoranalysis.image.io.stack.input.ProvidesStackInput input, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.core.exception.OperationFailedExceptionDescription copied from class:ImageLabellerDetermines a particular group-identifier (label) for an input.- Specified by:
labelForin classImageLabeller<org.anchoranalysis.experiment.task.NoSharedState>- Parameters:
sharedState- the shared-state returned byImageLabeller.initialize(Path)input- theProvidesStackInputto be labelledcontext- theInputOutputContextfor the operation- Returns:
- the label as a
String - Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the labelling operation fails
-
getContains
The string to search for in the image's descriptive name. -
setContains
The string to search for in the image's descriptive name.
-