public class ExportObjectsFromCSV extends ExportObjectsBase<FromCSVInput,FromCSVSharedState>
The CSV file-path should be the same for all rasters passed as input. It gets cached between the threads.
The following outputs are produced:
Output Name | Default? | Description |
---|---|---|
yes | RGB image displaying the outline of the extracted object in a cropped region around the objects. | |
no | A XML file that stores a unique point on each extracted object (uniqueness only guaranteed if no objects overlap). | |
inherited from Task |
Constructor and Description |
---|
ExportObjectsFromCSV() |
Modifier and Type | Method and Description |
---|---|
void |
afterAllJobsAreExecuted(FromCSVSharedState sharedState,
InputOutputContext context)
Called once after all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
FromCSVSharedState |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<FromCSVInput> 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<FromCSVInput,FromCSVSharedState> inputBound)
Performs the task on a particular input.
|
ColumnDefinition |
getColumnDefinition()
Column definition for the CSV files
|
StackDisplayer |
getDisplayer()
How to convert an image to be displayed to the user.
|
DerivePath |
getIdGenerator() |
StackProvider |
getStack()
The stack that is the background for our objects
|
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 |
setColumnDefinition(ColumnDefinition columnDefinition)
Column definition for the CSV files
|
void |
setDisplayer(StackDisplayer displayer)
How to convert an image to be displayed to the user.
|
void |
setIdGenerator(DerivePath idGenerator) |
void |
setStack(StackProvider stack)
The stack that is the background for our objects
|
getObjects, getPadding, inputs, setObjects, setPadding
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public InputTypesExpected inputTypesExpected()
Task
This is usually the class of T (or sometimes the absolute base class InputFromManager).
inputTypesExpected
in class Task<FromCSVInput,FromCSVSharedState>
public FromCSVSharedState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<FromCSVInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<FromCSVInput,FromCSVSharedState>
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 boolean hasVeryQuickPerInputExecution()
Task
hasVeryQuickPerInputExecution
in class Task<FromCSVInput,FromCSVSharedState>
public void doJobOnInput(InputBound<FromCSVInput,FromCSVSharedState> inputBound) throws JobExecutionException
Task
doJobOnInput
in class Task<FromCSVInput,FromCSVSharedState>
inputBound
- the input for the job.JobExecutionException
- if an error occurs executing a particular job, that is not
otherwise suppressed.public void afterAllJobsAreExecuted(FromCSVSharedState sharedState, InputOutputContext context) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.afterAllJobsAreExecuted
in class Task<FromCSVInput,FromCSVSharedState>
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 OutputEnabledMutable defaultOutputs()
Task
defaultOutputs
in class Task<FromCSVInput,FromCSVSharedState>
public DerivePath getIdGenerator()
public void setIdGenerator(DerivePath idGenerator)
public StackProvider getStack()
public void setStack(StackProvider stack)
public ColumnDefinition getColumnDefinition()
public void setColumnDefinition(ColumnDefinition columnDefinition)
public StackDisplayer getDisplayer()
public void setDisplayer(StackDisplayer displayer)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.