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 Name | Default? | Description |
|---|---|---|
| "images" | yes | a directory where copies of input images are placed in subdirectories corresponding to their label. |
| "mapping" | yes | a single CSV file where each row is an image-label correspondence. |
inherited from Task |
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAllJobsAreExecuted(SharedStateFilteredImageOutput<T> sharedState, InputOutputContext context) beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<ProvidesStackInput> inputs, ParametersExperiment parameters) OutputEnabledMutablevoiddoJobOnInput(InputBound<ProvidesStackInput, SharedStateFilteredImageOutput<T>> input) Maps a label to an imageStackProviderIf it's set, a stack is generated that is outputted into subdirectory corresponding to the groupIdentifier.booleanInputTypesExpectedvoidsetImageLabeller(ImageLabeller<T> imageLabeller) Maps a label to an imagevoidsetOutputStackProvider(StackProvider outputStackProvider) If it's set, a stack is generated that is outputted into subdirectory corresponding to the groupIdentifier.Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWithMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
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:
beforeAnyJobIsExecutedin classTask<ProvidesStackInput, SharedStateFilteredImageOutput<T>>- Throws:
ExperimentExecutionException
-
defaultOutputs
public OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classTask<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
-
inputTypesExpected
public InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classTask<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
-
doJobOnInput
public void doJobOnInput(InputBound<ProvidesStackInput, SharedStateFilteredImageOutput<T>> input) throws JobExecutionException - Specified by:
doJobOnInputin classTask<ProvidesStackInput, SharedStateFilteredImageOutput<T>>- Throws:
JobExecutionException
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classTask<ProvidesStackInput, SharedStateFilteredImageOutput<T>>
-
getImageLabeller
Maps a label to an image -
setImageLabeller
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.
-