Class BinaryClassifierImageLabeller
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.BinaryClassifierImageLabeller
public class BinaryClassifierImageLabeller extends BinaryOutcomeImageLabeller
Labels images using a binary classifier.
-
Constructor Summary
Constructors Constructor Description BinaryClassifierImageLabeller() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>getClassifierProvider()Provider for the classifier feature list.List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>>>getListFeatures()List of named feature list providers for additional features.org.anchoranalysis.image.bean.provider.stack.StackProvidergetStackEnergy()Provider for the energy stack.StringlabelFor(org.anchoranalysis.experiment.task.NoSharedState sharedState, org.anchoranalysis.image.io.stack.input.ProvidesStackInput input, org.anchoranalysis.io.output.outputter.InputOutputContext context)Determines the label for a given input image.voidsetClassifierProvider(org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> classifierProvider)Provider for the classifier feature list.voidsetListFeatures(List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>>> listFeatures)List of named feature list providers for additional features.voidsetStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy)Provider for the energy stack.Methods inherited from class org.anchoranalysis.plugin.image.task.bean.labeller.BinaryOutcomeImageLabeller
allLabels, classificationString, initialize
-
Constructor Details
-
BinaryClassifierImageLabeller
public BinaryClassifierImageLabeller()
-
-
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.OperationFailedExceptionDetermines the label for a given input image.- Specified by:
labelForin classImageLabeller<org.anchoranalysis.experiment.task.NoSharedState>- Parameters:
sharedState- shared state (unused in this implementation)input- the input image providercontext- the input/output context- Returns:
- the label ("positive" or "negative") based on the classification result
- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the labeling operation fails
-
getClassifierProvider
public org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> getClassifierProvider()Provider for the classifier feature list. -
setClassifierProvider
public void setClassifierProvider(org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> classifierProvider)Provider for the classifier feature list. -
getListFeatures
public List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>>> getListFeatures()List of named feature list providers for additional features. -
setListFeatures
public void setListFeatures(List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>>> listFeatures)List of named feature list providers for additional features. -
getStackEnergy
public org.anchoranalysis.image.bean.provider.stack.StackProvider getStackEnergy()Provider for the energy stack. -
setStackEnergy
public void setStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy)Provider for the energy stack.
-