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.StackProvider getStackEnergy()
    Provider for the energy stack.
    String labelFor​(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.
    void setClassifierProvider​(org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> classifierProvider)
    Provider for the classifier feature list.
    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.
    void setStackEnergy​(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

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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.OperationFailedException
      Determines the label for a given input image.
      Specified by:
      labelFor in class ImageLabeller<org.anchoranalysis.experiment.task.NoSharedState>
      Parameters:
      sharedState - shared state (unused in this implementation)
      input - the input image provider
      context - 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.