Class ExtractSlice
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>
org.anchoranalysis.plugin.image.task.bean.slice.ExtractSlice
public class ExtractSlice extends org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>
Reduces a z-stack to a single-slice by taking the optima of a feature calculated for each slice.
Expects a second-level output "stack" to determine which slices are outputted or not.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ExtractSlice() -
Method Summary
Modifier and Type Method Description voidafterAllJobsAreExecuted(SharedStateSelectedSlice sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context)SharedStateSelectedSlicebeforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.image.io.channel.input.NamedChannelsInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)org.anchoranalysis.io.output.enabled.OutputEnabledMutabledefaultOutputs()voiddoJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice> input)org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>getScoreProvider()org.anchoranalysis.image.bean.provider.stack.StackProvidergetStackEnergy()booleanhasVeryQuickPerInputExecution()org.anchoranalysis.experiment.task.InputTypesExpectedinputTypesExpected()booleanisFindMaxima()If true, the maxima of the score is searched for.voidsetFindMaxima(boolean findMaxima)If true, the maxima of the score is searched for.voidsetScoreProvider(org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> scoreProvider)voidsetStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy)Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWith
-
Constructor Details
-
ExtractSlice
public ExtractSlice()
-
-
Method Details
-
beforeAnyJobIsExecuted
public SharedStateSelectedSlice beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.image.io.channel.input.NamedChannelsInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
inputTypesExpected
public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>
-
doJobOnInput
public void doJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice> input) throws org.anchoranalysis.experiment.JobExecutionException- Specified by:
doJobOnInputin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>- Throws:
org.anchoranalysis.experiment.JobExecutionException
-
afterAllJobsAreExecuted
public void afterAllJobsAreExecuted(SharedStateSelectedSlice sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
afterAllJobsAreExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
defaultOutputs
public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateSelectedSlice>
-
getScoreProvider
public org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> getScoreProvider() -
setScoreProvider
public void setScoreProvider(org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack> scoreProvider) -
getStackEnergy
public org.anchoranalysis.image.bean.provider.stack.StackProvider getStackEnergy() -
setStackEnergy
public void setStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy) -
isFindMaxima
public boolean isFindMaxima()If true, the maxima of the score is searched for. If false, rather the minima. -
setFindMaxima
public void setFindMaxima(boolean findMaxima)If true, the maxima of the score is searched for. If false, rather the minima.
-