Class ImageAssignLabel<T>

Object
AnchorBean<Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>>
Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
ImageAssignLabel<T>
Type Parameters:
T - type of initialization associated with the filter.

public class ImageAssignLabel<T> extends Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
Assigns a label to each image and copies into subdirectories for each label, and creates a labelling CSV.

The following outputs are produced:

Output NameDefault?Description
"images"yesa directory where copies of input images are placed in subdirectories corresponding to their label.
"mapping"yesa single CSV file where each row is an image-label correspondence.
inherited from Task
Author:
Owen Feehan
  • Constructor Details

    • ImageAssignLabel

      public ImageAssignLabel()
  • Method Details

    • beforeAnyJobIsExecuted

      public SharedStateFilteredImageOutput<T> beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<ProvidesStackInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
      Specified by:
      beforeAnyJobIsExecuted in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
      Throws:
      ExperimentExecutionException
    • defaultOutputs

      public OutputEnabledMutable defaultOutputs()
      Overrides:
      defaultOutputs in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
    • inputTypesExpected

      public InputTypesExpected inputTypesExpected()
      Specified by:
      inputTypesExpected in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
    • doJobOnInput

      public void doJobOnInput(InputBound<ProvidesStackInput, SharedStateFilteredImageOutput<T>> input) throws JobExecutionException
      Specified by:
      doJobOnInput in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
      Throws:
      JobExecutionException
    • hasVeryQuickPerInputExecution

      public boolean hasVeryQuickPerInputExecution()
      Specified by:
      hasVeryQuickPerInputExecution in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
    • afterAllJobsAreExecuted

      public void afterAllJobsAreExecuted(SharedStateFilteredImageOutput<T> sharedState, InputOutputContext context) throws ExperimentExecutionException
      Specified by:
      afterAllJobsAreExecuted in class Task<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
      Throws:
      ExperimentExecutionException
    • getImageLabeller

      public ImageLabeller<T> getImageLabeller()
      Maps a label to an image
    • setImageLabeller

      public void setImageLabeller(ImageLabeller<T> imageLabeller)
      Maps a label to an image
    • getOutputStackProvider

      public StackProvider getOutputStackProvider()
      If it's set, a stack is generated that is outputted into subdirectory corresponding to the groupIdentifier.
    • setOutputStackProvider

      public void setOutputStackProvider(StackProvider outputStackProvider)
      If it's set, a stack is generated that is outputted into subdirectory corresponding to the groupIdentifier.