Class DescriptiveNameContainsImageLabeller

Object
AnchorBean<ImageLabeller<NoSharedState>>
ImageLabeller<NoSharedState>
BinaryOutcomeImageLabeller
DescriptiveNameContainsImageLabeller

public class DescriptiveNameContainsImageLabeller extends BinaryOutcomeImageLabeller
Labels images based on whether their descriptive name contains a specific string.
  • Constructor Details

    • DescriptiveNameContainsImageLabeller

      public DescriptiveNameContainsImageLabeller()
  • Method Details

    • labelFor

      public String labelFor(NoSharedState sharedState, ProvidesStackInput input, InputOutputContext context) throws OperationFailedException
      Description copied from class: ImageLabeller
      Determines a particular group-identifier (label) for an input.
      Specified by:
      labelFor in class ImageLabeller<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:
      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.