public class SegmentMarksFromImage extends Task<MultiInput,ExperimentState>
Mark
s.
The following outputs are produced:
Output Name | Default? | Description |
---|---|---|
yes | The segmented outcome as serialized XML using XStream. | |
yes | A RGB image showing outline-colored segmented marks on a background. | |
no | A RGB image showing solidly-colored segmented marks on a background. | |
any outputs produced by SegmentIntoMarks in segment . | ||
inherited from Task |
Constructor and Description |
---|
SegmentMarksFromImage() |
Modifier and Type | Method and Description |
---|---|
void |
afterAllJobsAreExecuted(ExperimentState sharedState,
InputOutputContext context)
Called once after all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
ExperimentState |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<MultiInput> 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<MultiInput,ExperimentState> inputBound)
Performs the task on a particular input.
|
DictionaryProvider |
getDictionary()
If non-empty, a dictionary that is passed to the segmentation procedure.
|
StackDisplayer |
getDisplayer()
How to convert an image to be displayed to the user.
|
SegmentIntoMarks |
getSegment()
How to perform the segmentation.
|
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 |
setDictionary(DictionaryProvider dictionary)
If non-empty, a dictionary that is passed to the segmentation procedure.
|
void |
setDisplayer(StackDisplayer displayer)
How to convert an image to be displayed to the user.
|
void |
setSegment(SegmentIntoMarks segment)
How to perform the segmentation.
|
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public boolean hasVeryQuickPerInputExecution()
Task
hasVeryQuickPerInputExecution
in class Task<MultiInput,ExperimentState>
public InputTypesExpected inputTypesExpected()
Task
This is usually the class of T (or sometimes the absolute base class InputFromManager).
inputTypesExpected
in class Task<MultiInput,ExperimentState>
public OutputEnabledMutable defaultOutputs()
Task
defaultOutputs
in class Task<MultiInput,ExperimentState>
public ExperimentState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<MultiInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<MultiInput,ExperimentState>
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 void doJobOnInput(InputBound<MultiInput,ExperimentState> inputBound) throws JobExecutionException
Task
doJobOnInput
in class Task<MultiInput,ExperimentState>
inputBound
- the input for the job.JobExecutionException
- if an error occurs executing a particular job, that is not
otherwise suppressed.public void afterAllJobsAreExecuted(ExperimentState sharedState, InputOutputContext context) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.afterAllJobsAreExecuted
in class Task<MultiInput,ExperimentState>
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 SegmentIntoMarks getSegment()
public void setSegment(SegmentIntoMarks segment)
public DictionaryProvider getDictionary()
public void setDictionary(DictionaryProvider dictionary)
public StackDisplayer getDisplayer()
public void setDisplayer(StackDisplayer displayer)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.