T
- type of initialization associated with the filter.public class ImageAssignLabel<T> extends Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
The following outputs are produced:
Output Name | Default? | Description |
---|---|---|
yes | a directory where copies of input images are placed in subdirectories corresponding to their label. | |
yes | a single CSV file where each row is an image-label correspondence. | |
inherited from Task |
Constructor and Description |
---|
ImageAssignLabel() |
Modifier and Type | Method and Description |
---|---|
void |
afterAllJobsAreExecuted(SharedStateFilteredImageOutput<T> sharedState,
InputOutputContext context)
Called once after all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
SharedStateFilteredImageOutput<T> |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<ProvidesStackInput> inputs,
ParametersExperiment parameters)
Called once before all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
OutputEnabledMutable |
defaultOutputs()
If specified, default rules for determine which outputs are enabled or not.
|
void |
doJobOnInput(InputBound<ProvidesStackInput,SharedStateFilteredImageOutput<T>> input)
Performs the task on a particular input.
|
ImageLabeller<T> |
getImageLabeller()
Maps a label to an image
|
StackProvider |
getOutputStackProvider()
If it's set, a stack is generated that is outputted into subdirectory corresponding to the
groupIdentifier.
|
boolean |
hasVeryQuickPerInputExecution()
Is the execution-time of the task per-input expected to be very quick to execute?
|
InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
void |
setImageLabeller(ImageLabeller<T> imageLabeller)
Maps a label to an image
|
void |
setOutputStackProvider(StackProvider outputStackProvider)
If it's set, a stack is generated that is outputted into subdirectory corresponding to the
groupIdentifier.
|
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public SharedStateFilteredImageOutput<T> beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<ProvidesStackInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
outputter
- the output-manager for the experiment (not for an individual job)concurrencyPlan
- available numbers of processors that can call Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
inputs
- a list of inputs, each will result in at least one call to Task.executeJob(ParametersUnbound)
.parameters
- the experiment-parameters.Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
and to Task.afterAllJobsAreExecuted(S, org.anchoranalysis.io.output.outputter.InputOutputContext)
.ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public OutputEnabledMutable defaultOutputs()
Task
defaultOutputs
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
public InputTypesExpected inputTypesExpected()
Task
This is usually the class of T (or sometimes the absolute base class InputFromManager).
inputTypesExpected
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
public void doJobOnInput(InputBound<ProvidesStackInput,SharedStateFilteredImageOutput<T>> input) throws JobExecutionException
Task
doJobOnInput
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
input
- the input for the job.JobExecutionException
- if an error occurs executing a particular job, that is not
otherwise suppressed.public boolean hasVeryQuickPerInputExecution()
Task
hasVeryQuickPerInputExecution
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
public void afterAllJobsAreExecuted(SharedStateFilteredImageOutput<T> sharedState, InputOutputContext context) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.afterAllJobsAreExecuted
in class Task<ProvidesStackInput,SharedStateFilteredImageOutput<T>>
sharedState
- the shared-statecontext
- IO-context for experiment (not for an individual job)ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public ImageLabeller<T> getImageLabeller()
public void setImageLabeller(ImageLabeller<T> imageLabeller)
public StackProvider getOutputStackProvider()
public void setOutputStackProvider(StackProvider outputStackProvider)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.