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
    String getContains()
    The string to search for in the image's descriptive name.
    String labelFor​(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.
    void setContains​(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

    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
      Description copied from class: ImageLabeller
      Determines a particular group-identifier (label) for an input.
      Specified by:
      labelFor in class ImageLabeller<org.anchoranalysis.experiment.task.NoSharedState>
      Parameters:
      sharedState - the shared-state returned by ImageLabeller.initialize(Path)
      input - the ProvidesStackInput to be labelled
      context - the InputOutputContext for the operation
      Returns:
      the label as a String
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the labelling operation fails
    • getContains

      public String getContains()
      The string to search for in the image's descriptive name.
    • setContains

      public void setContains​(String contains)
      The string to search for in the image's descriptive name.